mirror of
https://github.com/konvajs/konva.git
synced 2026-01-09 20:14:41 +08:00
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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user