Skip to content

Commit

Permalink
When you use namespace in events, you don't need to unbind events one…
Browse files Browse the repository at this point in the history
… by one. You can use .unbind('.yournamespace') to automatically clean all binded events with this namespace.
  • Loading branch information
pbalduino committed May 10, 2011
1 parent 1e0aa6a commit 62ed1c0
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions jquery.maskMoney.js
Original file line number Diff line number Diff line change
Expand Up @@ -251,10 +251,7 @@
input.bind('mask', mask);

input.one('unmaskMoney',function() {
input.unbind('focus.maskMoney',focusEvent);
input.unbind('blur.maskMoney',blurEvent);
input.unbind('keydown.maskMoney',keydownEvent);
input.unbind('keypress.maskMoney',keypressEvent);
input.unbind('.maskMoney');

if ($.browser.msie) {
this.onpaste= null;
Expand Down

0 comments on commit 62ed1c0

Please sign in to comment.