projects
/
Portfolio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
bugfix.
[Portfolio.git]
/
skins
/
photo_lightbox_viewer.js
diff --git
a/skins/photo_lightbox_viewer.js
b/skins/photo_lightbox_viewer.js
index
97c7f79
..
3438151
100644
(file)
--- a/
skins/photo_lightbox_viewer.js
+++ b/
skins/photo_lightbox_viewer.js
@@
-482,10
+482,10
@@
Lightbox.prototype.onDragStart = function(evt) {
Lightbox.prototype.onDragOver = function(evt) {
var target = getTargetedObject(evt);
Lightbox.prototype.onDragOver = function(evt) {
var target = getTargetedObject(evt);
- if (!target) {return;}
- while(target.className !== 'slide') {
+ while(target && target.className !== 'slide') {
target = target.parentNode;
}
target = target.parentNode;
}
+ if (!target) {return;}
target = target.parentNode;
if (target !== this.dragged) {
target.classList.add('dragover');
target = target.parentNode;
if (target !== this.dragged) {
target.classList.add('dragover');