Permalink
Browse files

Stop bubbling events on custom events. Closes #15

  • Loading branch information...
1 parent 3af6de1 commit ecbfb31512d770b305091116d6ef3c7585471d12 @nyroDev committed Jan 13, 2011
Showing with 3 additions and 3 deletions.
  1. +3 −3 js/jquery.nyroModal.js
@@ -559,9 +559,9 @@ jQuery(function($, undefined) {
nm.opener
.unbind('nyroModal.nyroModal nmClose.nyroModal nmResize.nyroModal')
.bind({
- 'nyroModal.nyroModal': function() { nm.open(); },
- 'nmClose.nyroModal': function() { nm.close(); },
- 'nmResize.nyroModal': function() { nm.resize(); }
+ 'nyroModal.nyroModal': function(e) { nm.open(); return false;},
+ 'nmClose.nyroModal': function() { nm.close(); return false;},
+ 'nmResize.nyroModal': function() { nm.resize(); return false;}
});
},

0 comments on commit ecbfb31

Please sign in to comment.