From 04343eda8c2f870b0da55cfdc8003c99fe1cc4de Mon Sep 17 00:00:00 2001 From: Kris Kowal Date: Fri, 6 Jul 2012 11:53:10 -0700 Subject: Remove trailing spaces --- js/helper-classes/RDGE/src/core/script/engine.js | 44 ++++++++++++------------ 1 file changed, 22 insertions(+), 22 deletions(-) (limited to 'js/helper-classes/RDGE/src/core/script/engine.js') diff --git a/js/helper-classes/RDGE/src/core/script/engine.js b/js/helper-classes/RDGE/src/core/script/engine.js index b2191197..96c3d502 100755 --- a/js/helper-classes/RDGE/src/core/script/engine.js +++ b/js/helper-classes/RDGE/src/core/script/engine.js @@ -36,21 +36,21 @@ var RDGE = RDGE || {}; RDGE.stateManager = function () { // a stack of states this.stateStack = []; - + // number of states on the stack this.stateTop = undefined; - + // the states of the context this.RDGEInitState = null; this.RDGERunState = null; - + this.currentState = function () { if(this.stateTop != undefined) return this.stateStack[this.stateTop]; - + return null; }; - + /* * Push new IRuntime state - engine executes the new state */ @@ -58,10 +58,10 @@ RDGE.stateManager = function () { if (state != null && typeof state.Init == 'function') { if(this.stateTop != undefined) this.stateStack[this.stateTop].LeaveState(); - + if(flags == undefined || flags != "noInit") state.Init(); - + this.stateTop = this.stateStack.push(state) - 1; } }; @@ -74,9 +74,9 @@ RDGE.stateManager = function () { if (state != null) { state.Shutdown(); } - + this.stateTop = this.stateTop > 0 ? this.stateTop - 1 : 0; - + if (this.stateStack[this.stateTop]) { this.stateStack[this.stateTop].ReInit(); } @@ -90,7 +90,7 @@ RDGE.stateManager = function () { this.PopState(); } }; - + this.tick = function (dt) { if (this.stateStack[this.stateTop] != null) { this.stateStack[this.stateTop].Update(dt); @@ -256,7 +256,7 @@ RDGE.Engine.prototype.init = function (userInitState, userRunState, canvasObject globalParamFuncSet = function (param) { this.data = param.data; this.type =param.type; - + this.set = function (v) { var len = this.data ? this.data.length : 0; for(var i=0;i