Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

handle confirmation closed through overlay click + unbind keydown #54

Merged
merged 1 commit into from
Jul 11, 2012
Merged

handle confirmation closed through overlay click + unbind keydown #54

merged 1 commit into from
Jul 11, 2012

Conversation

pgherveou
Copy link
Contributor

  • emit close when user click on overlay
  • unbind document keydown on remove

- unbind document keydown on remove
@pgherveou pgherveou mentioned this pull request Jul 11, 2012
@@ -248,5 +249,6 @@ Dialog.prototype.hide = function(ms){
Dialog.prototype.remove = function(){
this.emit('hide');
this.el.remove();
$(document).unbind('keydown.dialog');
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i dont remember off hand where this binding is, in overlay? if so maybe it should be moved there

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nvm it's not

tj added a commit that referenced this pull request Jul 11, 2012
handle confirmation closed through overlay click + unbind keydown
@tj tj merged commit d75189a into visionmedia:master Jul 11, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants