davetayls/jquery.kinetic

Memory Cleanup for GC

Closed this issue · 2 comments

Im getting a leak using kinetic on my div:

Its only keeping around elements after using kinetic on my scrollable content:

`$content.kinetic({
x:false,
y:true,
cursor:"pointer",
filterTarget: function(target, e){
return true;
}
});
$content.kinetic('detach');

`
Detach is the only thing i see that does a kind of cleanup.
Is there a better to destroy this , its keeping my element around in the JS heap ?

Added a pull request , not sure if that does the trick entirely but it got rid of the detached nodes held in memory after the kinetic element was removed from the dom.

#100

Merged