Stereobit / dragend

dragend JS – a touch ready, full responsive, content swipe script
http://stereobit.github.com/dragend/
MIT License
485 stars 114 forks source link

Add Ability To Call Destroy From jQuery Function #32

Closed EricMaibach closed 10 years ago

EricMaibach commented 10 years ago

Adds the ability to call the destroy method from the jQuery function

To call the destroy method using jQuery just call the dragend method and pass in a setting the sets the destroy property to true. For example:

$("#dragendcont").dragend( {destroy: true } );

Without this change you need a instance of the dragend object to call the destory method. For example:

var instance = new Dragend();
instance.destroy();