Skip to content

Commit 3490b29

Browse files
committed
Tidying up
1 parent be29c69 commit 3490b29

1 file changed

Lines changed: 1 addition & 12 deletions

File tree

src/physics/matter-js/World.js

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -216,8 +216,7 @@ var World = new Class({
216216
this.createDebugGraphic();
217217
}
218218

219-
scene.sys.events.on('start', this.setEventsProxy, this);
220-
// this.setEventsProxy();
219+
this.setEventsProxy();
221220
},
222221

223222
/**
@@ -233,21 +232,16 @@ var World = new Class({
233232

234233
MatterEvents.on(engine, 'beforeUpdate', function (event)
235234
{
236-
237235
_this.emit('beforeupdate', event);
238-
239236
});
240237

241238
MatterEvents.on(engine, 'afterUpdate', function (event)
242239
{
243-
244240
_this.emit('afterupdate', event);
245-
246241
});
247242

248243
MatterEvents.on(engine, 'collisionStart', function (event)
249244
{
250-
251245
var pairs = event.pairs;
252246
var bodyA;
253247
var bodyB;
@@ -259,12 +253,10 @@ var World = new Class({
259253
}
260254

261255
_this.emit('collisionstart', event, bodyA, bodyB);
262-
263256
});
264257

265258
MatterEvents.on(engine, 'collisionActive', function (event)
266259
{
267-
268260
var pairs = event.pairs;
269261
var bodyA;
270262
var bodyB;
@@ -276,12 +268,10 @@ var World = new Class({
276268
}
277269

278270
_this.emit('collisionactive', event, bodyA, bodyB);
279-
280271
});
281272

282273
MatterEvents.on(engine, 'collisionEnd', function (event)
283274
{
284-
285275
var pairs = event.pairs;
286276
var bodyA;
287277
var bodyB;
@@ -293,7 +283,6 @@ var World = new Class({
293283
}
294284

295285
_this.emit('collisionend', event, bodyA, bodyB);
296-
297286
});
298287
},
299288

0 commit comments

Comments
 (0)