Permalink
Browse files

Added function removeData just like jQuery's.

  • Loading branch information...
1 parent 5eaef37 commit 7927adf04b4374d8a8e506dce3ee7b8a5314d5a8 Martin Drapeau committed Jan 24, 2012
Showing with 5 additions and 0 deletions.
  1. +5 −0 src/data.js
View
@@ -30,4 +30,9 @@
value.call(this, idx, getData(this, name)) : value);
});
};
+ $.fn.removeData = function(name) {
+ this.each(function(idx) {
+ setData(this, name, null);
+ });
+ };
})(Zepto);

0 comments on commit 7927adf

Please sign in to comment.