darsain / sly

JavaScript library for one-directional scrolling with item based navigation support.
http://darsa.in/sly
2.87k stars 497 forks source link

keyboard navigation stops working on all sly instances if only one is destroyed #166

Closed flexphperia closed 9 years ago

flexphperia commented 9 years ago

When we have more than one instances of Sly and one of it's is destroyed, destroy method will unbind keyboardHandler function from $doc element like this: $doc.unbind('.' + namespace);

This will remove keyboardHandler function from all instances of sly even those that are not the part of destroy call.

darsain commented 9 years ago

Tru. I'll fix it when I'll have some time.