Skip to content

Commit fdeee4f

Browse files
committed
feat(coords): add destroy method
1 parent 720d487 commit fdeee4f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/jquery.coords.js

+4
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,10 @@
9393
return this.coords;
9494
};
9595

96+
fn.destroy = function() {
97+
this.el.removeData('coords');
98+
delete this.el;
99+
};
96100

97101
//jQuery adapter
98102
$.fn.coords = function() {

0 commit comments

Comments
 (0)