removed simulate method. refactoring also fixed bug in which if you fire a custom event that has not been registered, the script no longer fails

This commit is contained in:
Eric Rowell
2013-03-21 19:43:17 -07:00
parent d010c5fa42
commit 9db24812bd
3 changed files with 42 additions and 37 deletions

View File

@@ -247,9 +247,9 @@ Test.Modules.CONTAINER = {
shapes.on('mouseover', function() {
a++;
});
circle.simulate('mouseover');
circle.fire('mouseover');
test(a === 1, 'listener should have fired for circle');
rect.simulate('mouseover');
rect.fire('mouseover');
test(a === 2, 'listener should have fired for rect');
},
'test ids and names hashes': function(containerId) {