0
0
Fork 0
mirror of https://github.com/liabru/matter-js.git synced 2024-11-27 09:50:52 -05:00

prevented possible redundant object initialisation

This commit is contained in:
liabru 2014-03-17 17:22:49 +00:00
parent 4631768d6f
commit 00feed5272

View file

@ -42,7 +42,9 @@ var Events = {};
eventClone; eventClone;
if (object.events) { if (object.events) {
event = event || {}; if (!event)
event = {};
names = eventNames.split(' '); names = eventNames.split(' ');
for (var i = 0; i < names.length; i++) { for (var i = 0; i < names.length; i++) {