Permalink
Browse files

Merge pull request #129 from unstoppable/master

API for unbind event
  • Loading branch information...
2 parents c188af9 + 98d5dff commit 5051639c3ff2372d1f8ea7e7a3c92acf6a94e4f8 @asual committed May 8, 2012
Showing with 7 additions and 0 deletions.
  1. +7 −0 src/jquery.address.js
View
@@ -40,6 +40,10 @@
$().bind.apply($($.address), Array.prototype.slice.call(arguments));
return $.address;
},
+ _unbind = function(value, fn) {
+ $().unbind.apply($($.address), Array.prototype.slice.call(arguments));
+ return $.address;
+ },
_supportsState = function() {
return (_h.pushState && _opts.state !== UNDEFINED);
},
@@ -350,6 +354,9 @@
bind: function(type, data, fn) {
return _bind.apply(this, _array(arguments));
},
+ unbind: function(type, fn) {
+ return _unbind.apply(this, _array(arguments));
+ },
init: function(data, fn) {
return _bind.apply(this, [INIT].concat(_array(arguments)));
},

0 comments on commit 5051639

Please sign in to comment.