Fixing a few more Pixi issues.

This commit is contained in:
photonstorm
2013-11-17 12:31:57 +00:00
parent 7ad4164e3a
commit a5f2d65d23
6 changed files with 166 additions and 97 deletions
+15 -18
View File
@@ -13,21 +13,15 @@
*/
Phaser.RequestAnimationFrame = function(game) {
/**
* @property {Phaser.Game} game - The currently running game.
*/
/**
* @property {Phaser.Game} game - The currently running game.
*/
this.game = game;
/**
* @property {boolean} _isSetTimeOut - Description.
* @private
*/
this._isSetTimeOut = false;
/**
* @property {boolean} isRunning - Description.
* @default
*/
/**
* @property {boolean} isRunning - true if RequestAnimationFrame is running, otherwise false.
* @default
*/
this.isRunning = false;
var vendors = [
@@ -44,15 +38,19 @@ Phaser.RequestAnimationFrame = function(game) {
}
/**
* The function called by the update
* @property _onLoop
* @property {boolean} _isSetTimeOut - true if the browser is using setTimeout instead of raf.
* @private
*/
this._isSetTimeOut = false;
/**
* @property {function} _onLoop - The function called by the update.
* @private
*/
this._onLoop = null;
/**
* The callback ID used when calling cancel
* @property _timeOutID
* @property {number} _timeOutID - The callback ID used when calling cancel.
* @private
*/
this._timeOutID = null;
@@ -61,7 +59,6 @@ Phaser.RequestAnimationFrame = function(game) {
Phaser.RequestAnimationFrame.prototype = {
/**
* Starts the requestAnimatioFrame running or setTimeout if unavailable in browser
* @method Phaser.RequestAnimationFrame#start