Skip to content

Commit 307a937

Browse files
authored
Merge pull request phaserjs#3749 from iamchristopher/fix-changedata-event-value
Fixed DataManager changedata event emits original value instead of new value
2 parents d66daa6 + 321ab9b commit 307a937

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/data/DataManager.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -318,8 +318,8 @@ var DataManager = new Class({
318318
{
319319
list[key] = value;
320320

321-
events.emit('changedata', parent, key, data);
322-
events.emit('changedata_' + key, parent, data);
321+
events.emit('changedata', parent, key, value);
322+
events.emit('changedata_' + key, parent, value);
323323
}
324324
}
325325

0 commit comments

Comments
 (0)