didInsertElement() {
		this._super(...arguments);

		let idString = "#" + this.get("modalID");
		$modal = $(idString);

		let that = this;
		// When the user clicks anywhere outside of the modal, close it
		$modal.off("click").click(event => {
			$modal = $(idString);
			if (event.target == $modal[0]) {
				that.send("close");
			}
		});
	}
// After the element has been inserted into the DOM
After the element has been inserted into the DOM
After the element has been inserted into the DOM
didInsertElement() {
		this._super(...arguments);
		let idString = "#" + this.get("modalID");
		$modal = $(idString);
		let that = this;
		$modal.off("click").click(event => {
			$modal = $(idString);
			if (event.target == $modal[0]) {
				that.send("close");
			}
		});
	}
didInsertElement ( ) { this . _super ( ... arguments ) ; let idString = "#" + this . get ( "modalID" ) ; $modal = $ ( idString ) ; let that = this ; $modal . off ( "click" ) . click ( event => { $modal = $ ( idString ) ; if ( event . target == $modal [ 0 ] ) { that . send ( "close" ) ; } } ) ; }
After the element has been inserted into the DOM
After the element has been inserted into the DOM
// When the user clicks anywhere outside of the modal, close it