Browse files

MDL-33891 Ensure that listen events are cancelled correctly when clos…

…ing the dialogue
  • Loading branch information...
1 parent 3262f54 commit dfe15e0ef9b05849c68a96e8dfd3edd3981303f4 @andrewnicols andrewnicols committed Jun 20, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/yui/chooserdialogue/chooserdialogue.js
View
4 lib/yui/chooserdialogue/chooserdialogue.js
@@ -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) {

0 comments on commit dfe15e0

Please sign in to comment.