MDL-33891 Ensure that listen events are cancelled correctly when closing the dialogue

This commit is contained in:
Andrew Robert Nicols
2012-06-20 10:18:19 +01:00
parent 3262f547fc
commit dfe15e0ef9
+2 -2
View File
@@ -249,8 +249,8 @@ YUI.add('moodle-core-chooserdialogue', function(Y) {
},
hide : function() {
// Detach the global keypress handler before hiding
Y.one('document').detach('keyup', this.handle_key_press, this);
// Cancel all listen events
this.cancel_listenevents();
// Re-enable the page scrollbars
if (Y.UA.ie > 0) {