Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Popup: use widget factory to trigger events

  • Loading branch information...
commit e4b0aca0538004aaaad92594287791c99d101995 1 parent 6ec2690
@jaspermdegroot jaspermdegroot authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 js/widgets/popup.js
View
8 js/widgets/popup.js
@@ -88,7 +88,7 @@ define( [ "jquery",
_resizeTimeout: function() {
if ( !this._maybeRefreshTimeout() ) {
// effectively rapid-open the popup while leaving the screen intact
- this.element.trigger( "popupbeforeposition" );
+ this._trigger( "beforeposition" );
this._ui.container
.removeClass( "ui-selectmenu-hidden" )
.offset( this._placementCoords( this._desiredCoords( undefined, undefined, "window" ) ) )
@@ -476,7 +476,7 @@ define( [ "jquery",
this._ui.container.addClass( "ui-popup-active" );
this._isOpen = true;
this._ui.container.attr( "tabindex", "0" ).focus();
- this.element.trigger( "popupafteropen" );
+ this._trigger( "afteropen" );
},
_open: function( options ) {
@@ -489,7 +489,7 @@ define( [ "jquery",
transition = options.transition;
// Give applications a chance to modify the contents of the container before it appears
- this.element.trigger( "popupbeforeposition" );
+ this._trigger( "beforeposition" );
coords = this._placementCoords( this._desiredCoords( options.x, options.y, options.positionTo || this.options.positionTo || "origin" ) );
@@ -544,7 +544,7 @@ define( [ "jquery",
_closePrereqsDone: function() {
this._ui.container.removeAttr( "tabindex" );
- this.element.trigger( "popupafterclose" );
+ this._trigger( "afterclose" );
},
_close: function() {
Please sign in to comment.
Something went wrong with that request. Please try again.