0
0
Fork 0
mirror of https://github.com/liabru/matter-js.git synced 2025-03-14 00:38:41 -04:00
This commit is contained in:
Sebastian 2024-07-19 21:14:13 +02:00 committed by GitHub
commit 83c55d98ea
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -62,7 +62,7 @@ var Common = require('./Common');
if (callback && callbacks) {
for (var j = 0; j < callbacks.length; j++) {
if (callbacks[j] !== callback)
if (callbacks[j].toString() !== callback.toString())
newCallbacks.push(callbacks[j]);
}
}
@ -85,7 +85,7 @@ var Common = require('./Common');
eventClone;
var events = object.events;
if (events && Common.keys(events).length > 0) {
if (!event)
event = {};