When we have more than one instances of Sly and one of it's is destroyed, destroy method will unbindkeyboardHandler 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.
When we have more than one instances of Sly and one of it's is destroyed,
destroy
method willunbind
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 ofdestroy
call.