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