mobify / pinny

A mobile-first content fly-in UI plugin
MIT License
23 stars 4 forks source link

Destroy should remove the data instance from the element #65

Closed scalvert closed 9 years ago

scalvert commented 9 years ago

Currently in destroy, we don't remove the instance from the data of the element. We need to add this.

this.$element.removeData(this.name).appendTo(document.body);