i'
						}
					}
				}
			} );

			// Put the view in the display for this demo
			$( '#lookup [data-wikilookup]' ).each( function () {
				var widget = $( this ).data( 'wl-widget' );

					popup = new OO.ui.PopupWidget( {
						width: 700,
						$floatableContainer: $( this ),
						$content: widget.$element,
						autoFlip: true,
						autoClose: true
					} );

				$( 'body' ).append( popup.$element );

				$( this ).on( 'click', popup.toggle.bind( popup ) );
			} );
		} );
	</script>


</body>
</html>
