Skip to content

Commit

Permalink
Update dialog.js
Browse files Browse the repository at this point in the history
  • Loading branch information
clshortfuse committed Aug 6, 2015
1 parent 0a7c288 commit 95faaeb
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/components/dialog/dialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -560,14 +560,14 @@ function MdDialogProvider($$interimElementProvider) {
}
};

// Add keyup listeners
element.on('keyup', keyHandlerFn);
target.on('keyup', keyHandlerFn);
// Add keydown listeners
element.on('keydown', keyHandlerFn);
target.on('keydown', keyHandlerFn);

// Queue remove listeners function
removeListeners.push(function() {
element.off('keyup', keyHandlerFn);
target.off('keyup', keyHandlerFn);
element.off('keydown', keyHandlerFn);
target.off('keydown', keyHandlerFn);
});
}
if (options.clickOutsideToClose) {
Expand Down

0 comments on commit 95faaeb

Please sign in to comment.