mirror of
https://github.com/photonstorm/phaser
synced 2024-11-23 13:13:43 +00:00
defs typo fix
This commit is contained in:
parent
cb541beba9
commit
a8256f4ef7
2 changed files with 3 additions and 3 deletions
2
build/phaser.d.ts
vendored
2
build/phaser.d.ts
vendored
|
@ -2652,7 +2652,7 @@ declare module Phaser {
|
|||
mouseOverCallback: Function;
|
||||
mouseUpCallback: Function;
|
||||
pointerLock: Phaser.Signal;
|
||||
spotOnGameOut: boolean;
|
||||
stopOnGameOut: boolean;
|
||||
|
||||
onMouseDown(event: MouseEvent): void;
|
||||
onMouseMove(event: MouseEvent): void;
|
||||
|
|
|
@ -101,7 +101,7 @@ Phaser.AnimationManager.prototype = {
|
|||
*/
|
||||
add: function (name, frames, frameRate, loop, useNumericIndex) {
|
||||
|
||||
if (this._frameData == null)
|
||||
if (this._frameData === null)
|
||||
{
|
||||
console.warn('No FrameData available for Phaser.Animation ' + name);
|
||||
return;
|
||||
|
@ -126,7 +126,7 @@ Phaser.AnimationManager.prototype = {
|
|||
}
|
||||
|
||||
// Create the signals the AnimationManager will emit
|
||||
if (this.sprite.events.onAnimationStart == null)
|
||||
if (this.sprite.events.onAnimationStart === null)
|
||||
{
|
||||
this.sprite.events.onAnimationStart = new Phaser.Signal();
|
||||
this.sprite.events.onAnimationComplete = new Phaser.Signal();
|
||||
|
|
Loading…
Reference in a new issue