mirror of
https://github.com/photonstorm/phaser
synced 2024-11-11 07:34:43 +00:00
Updated TS defs (fix #650)
This commit is contained in:
parent
75cc6a7365
commit
953ae83350
2 changed files with 3 additions and 6 deletions
2
build/phaser.d.ts
vendored
2
build/phaser.d.ts
vendored
|
@ -1959,7 +1959,7 @@ declare module Phaser {
|
|||
createMultiple(quantity: number, key: string, frame?: any, exists?: boolean): Phaser.Sprite;
|
||||
destroy(destroyChildren?: boolean, soft?:boolean): void;
|
||||
divideAll(property: string, amount: number, checkAlive?: boolean, checkVisible?: boolean): void;
|
||||
forEach(callback: Function, callbackContext: Object, checkExists: boolean): void;
|
||||
forEach(callback: Function, callbackContext: Object, checkExists?: boolean): void;
|
||||
forEachAlive(callback: Function, callbackContext: Object): void;
|
||||
forEachDead(callback: Function, callbackContext: Object): void;
|
||||
forEachExists(callback: Function, callbackContext: Object): void;
|
||||
|
|
|
@ -1021,14 +1021,11 @@ Phaser.Group.prototype.postUpdate = function () {
|
|||
* @method Phaser.Group#forEach
|
||||
* @param {function} callback - The function that will be called. Each child of the Group will be passed to it as its first parameter.
|
||||
* @param {Object} callbackContext - The context in which the function should be called (usually 'this').
|
||||
* @param {boolean} checkExists - If set only children with exists=true will be passed to the callback, otherwise all children will be passed.
|
||||
* @param {boolean} [checkExists=false] - If set only children with exists=true will be passed to the callback, otherwise all children will be passed.
|
||||
*/
|
||||
Phaser.Group.prototype.forEach = function (callback, callbackContext, checkExists) {
|
||||
|
||||
if (typeof checkExists === 'undefined')
|
||||
{
|
||||
checkExists = false;
|
||||
}
|
||||
if (typeof checkExists === 'undefined') { checkExists = false; }
|
||||
|
||||
var args = Array.prototype.splice.call(arguments, 3);
|
||||
args.unshift(null);
|
||||
|
|
Loading…
Reference in a new issue