Skip to content

Commit d66daa6

Browse files
authored
Merge pull request phaserjs#3744 from rexrainbow/master
Pass `this.parent` instead of `this` in callback of removedata event
2 parents 468b61d + ae9ca08 commit d66daa6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/data/DataManager.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,7 @@ var DataManager = new Class({
456456
delete this.list[key];
457457
delete this.values[key];
458458

459-
this.events.emit('removedata', this, key, data);
459+
this.events.emit('removedata', this.parent, key, data);
460460
}
461461

462462
return this;

0 commit comments

Comments
 (0)