Skip to content

Commit 232614c

Browse files
authored
Merge pull request #102 from bbojanowski/master
fixed destroy method, added 'chocolat' parameter to removeData()
2 parents ab742f9 + f82a0b4 commit 232614c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/js/jquery.chocolat.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@
288288
},
289289

290290
destroy: function() {
291-
this.element.removeData()
291+
this.element.removeData('chocolat')
292292
this.element.find(this.settings.imageSelector).off('click.chocolat')
293293

294294
if (!this.settings.initialized) {

0 commit comments

Comments
 (0)