Fix for incorrect chain received mouseEntered events.

Closes #199.

Reviewed by me.
This commit is contained in:
Saikat Chakrabarti authored and Francisco Ryan Tolmasky I committed 2009-06-20 17:12:03 -07:00
1 parent c7f81691bf
commit 7d158de356
1 file changed
+3 -3
+3 -3
View File
@@ -1234,10 +1234,10 @@ CPTexturedBackgroundWindowMask
var deviation = MIN(_mouseEnteredStack.length, mouseEnteredStack.length);
while (deviation--)
if (_mouseEnteredStack[deviation] !== mouseEnteredStack[deviation])
if (_mouseEnteredStack[deviation] === mouseEnteredStack[deviation])
break;
var index = deviation,
var index = deviation + 1,
count = _mouseEnteredStack.length;
if (index < count)
@@ -1248,7 +1248,7 @@ CPTexturedBackgroundWindowMask
[_mouseEnteredStack[index] mouseExited:event];
}
index = deviation;
index = deviation + 1;
count = mouseEnteredStack.length;
if (index < count)