0
0
Fork 0
mirror of https://github.com/liabru/matter-js.git synced 2024-11-23 09:26:51 -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;
if (object.events) {
event = event || {};
if (!event)
event = {};
names = eventNames.split(' ');
for (var i = 0; i < names.length; i++) {