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:
parent
4631768d6f
commit
00feed5272
1 changed files with 3 additions and 1 deletions
|
@ -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++) {
|
||||
|
|
Loading…
Reference in a new issue