aboutsummaryrefslogtreecommitdiffstats
path: root/test/jqLiteSpec.js
diff options
context:
space:
mode:
authorMisko Hevery2012-04-20 11:27:35 -0700
committerMisko Hevery2012-04-20 17:04:21 -0700
commit43d15f830f9d419c41c41f0682e47e86839e3917 (patch)
treeb940ad2e13acb8b84f9d55862e12b7381f6ad40d /test/jqLiteSpec.js
parent1d26acb8746533433d247f986128a142e627c320 (diff)
downloadangular.js-43d15f830f9d419c41c41f0682e47e86839e3917.tar.bz2
fix(mouseenter): FF no longer throws exceptions
Diffstat (limited to 'test/jqLiteSpec.js')
-rw-r--r--test/jqLiteSpec.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/jqLiteSpec.js b/test/jqLiteSpec.js
index afbb6836..34b5decd 100644
--- a/test/jqLiteSpec.js
+++ b/test/jqLiteSpec.js
@@ -691,13 +691,13 @@ describe('jqLite', function() {
parent.bind('mouseenter', function() { log += 'parentEnter;'; });
parent.bind('mouseleave', function() { log += 'parentLeave;'; });
- parent.mouseover = function(event) { parent.data('bind').mouseover(event || {}); };
- parent.mouseout = function(event) { parent.data('bind').mouseout(event || {}); };
+ parent.mouseover = function() { browserTrigger(parent, 'mouseover'); };
+ parent.mouseout = function() { browserTrigger(parent, 'mouseout'); };
child.bind('mouseenter', function() { log += 'childEnter;'; });
child.bind('mouseleave', function() { log += 'childLeave;'; });
- child.mouseover = function(event) { child.data('bind').mouseover(event || {}); };
- child.mouseout = function(event) { child.data('bind').mouseout(event || {}); };
+ child.mouseover = function() { browserTrigger(child, 'mouseover'); };
+ child.mouseout = function() { browserTrigger(child, 'mouseout'); };
});
afterEach(function() {