From fdeee4f636266c7a0579ced833f04fec013b6863 Mon Sep 17 00:00:00 2001 From: vieron Date: Wed, 5 Mar 2014 17:33:04 +0100 Subject: [PATCH] feat(coords): add destroy method --- src/jquery.coords.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/jquery.coords.js b/src/jquery.coords.js index e3bd5e65d..58a707265 100644 --- a/src/jquery.coords.js +++ b/src/jquery.coords.js @@ -93,6 +93,10 @@ return this.coords; }; + fn.destroy = function() { + this.el.removeData('coords'); + delete this.el; + }; //jQuery adapter $.fn.coords = function() {