We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 186abc8 + c812fd5 commit 8ff1a2bCopy full SHA for 8ff1a2b
jquery.lightbox_me.js
@@ -92,8 +92,10 @@
92
93
$(window).resize(setOverlayHeight)
94
.resize(setSelfPosition)
95
- .scroll(setSelfPosition)
96
- .keyup(observeKeyPress);
+ .scroll(setSelfPosition);
+
97
+ $(window).bind('keyup.lightbox_me', observeKeyPress);
98
99
if (opts.closeClick) {
100
$overlay.click(function(e) { closeLightbox(); e.preventDefault; });
101
}
@@ -135,7 +137,7 @@
135
137
$(window).unbind('reposition', setOverlayHeight);
136
138
$(window).unbind('reposition', setSelfPosition);
139
$(window).unbind('scroll', setSelfPosition);
- $(document).unbind('keyup', observeKeyPress);
140
+ $(window).unbind('keyup.lightbox_me');
141
if (ie6)
142
s.removeExpression('top');
143
opts.onClose();
0 commit comments