Merge pull request #220 from wikimedia/215

Call onCancel from hide
This commit is contained in:
Niklas Laxström
2016-05-03 14:11:15 +03:00

View File

@@ -189,6 +189,10 @@
hide: function () {
this.$menu.hide();
this.shown = false;
if ( this.options.onCancel ) {
this.options.onCancel.call( this );
}
},
/**
@@ -310,10 +314,6 @@
}
this.hide();
if ( this.options.onCancel ) {
this.options.onCancel.call( this );
}
},
keyup: function ( e ) {