Closed cjaoude closed 7 years ago
when hitting escKey, the cleanup or close bindings doesn't seem to take effect?
$('document').bind('cbox_cleanup', function() { alert('cleanup'); });
It's document (a global object), not 'document' (a string used as a selector). Passing 'document' as a string to jQuery isn't going to match anything because it's not a valid selector.
document
'document'
when hitting escKey, the cleanup or close bindings doesn't seem to take effect?
$('document').bind('cbox_cleanup', function() { alert('cleanup'); });