mirror of
https://github.com/photonstorm/phaser
synced 2024-11-16 01:38:23 +00:00
Corrected jsdocs. Fix #6113
This commit is contained in:
parent
40546012b3
commit
0f4bd028ce
4 changed files with 5 additions and 5 deletions
|
@ -10,7 +10,7 @@
|
|||
* This event is dispatched by a Data Manager when an item in the data store is changed.
|
||||
*
|
||||
* Game Objects with data enabled have an instance of a Data Manager under the `data` property. So, to listen for
|
||||
* a change data event from a Game Object you would use: `sprite.data.on('changedata', listener)`.
|
||||
* a change data event from a Game Object you would use: `sprite.on('changedata', listener)`.
|
||||
*
|
||||
* This event is dispatched for all items that change in the Data Manager.
|
||||
* To listen for the change of a specific item, use the `CHANGE_DATA_KEY_EVENT` event.
|
||||
|
|
|
@ -10,9 +10,9 @@
|
|||
* This event is dispatched by a Data Manager when an item in the data store is changed.
|
||||
*
|
||||
* Game Objects with data enabled have an instance of a Data Manager under the `data` property. So, to listen for
|
||||
* the change of a specific data item from a Game Object you would use: `sprite.data.on('changedata-key', listener)`,
|
||||
* the change of a specific data item from a Game Object you would use: `sprite.on('changedata-key', listener)`,
|
||||
* where `key` is the unique string key of the data item. For example, if you have a data item stored called `gold`
|
||||
* then you can listen for `sprite.data.on('changedata-gold')`.
|
||||
* then you can listen for `sprite.on('changedata-gold')`.
|
||||
*
|
||||
* @event Phaser.Data.Events#CHANGE_DATA_KEY
|
||||
* @type {string}
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
* This event is dispatched by a Data Manager when an item is removed from it.
|
||||
*
|
||||
* Game Objects with data enabled have an instance of a Data Manager under the `data` property. So, to listen for
|
||||
* the removal of a data item on a Game Object you would use: `sprite.data.on('removedata', listener)`.
|
||||
* the removal of a data item on a Game Object you would use: `sprite.on('removedata', listener)`.
|
||||
*
|
||||
* @event Phaser.Data.Events#REMOVE_DATA
|
||||
* @type {string}
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
* This event is dispatched by a Data Manager when a new item is added to the data store.
|
||||
*
|
||||
* Game Objects with data enabled have an instance of a Data Manager under the `data` property. So, to listen for
|
||||
* the addition of a new data item on a Game Object you would use: `sprite.data.on('setdata', listener)`.
|
||||
* the addition of a new data item on a Game Object you would use: `sprite.on('setdata', listener)`.
|
||||
*
|
||||
* @event Phaser.Data.Events#SET_DATA
|
||||
* @type {string}
|
||||
|
|
Loading…
Reference in a new issue