@@ -102,8 +102,8 @@ Phaser.StateManager.prototype = {
102102
103103 if ( this . _pendingState !== null )
104104 {
105- console . log ( '_pendingState found' ) ;
106- console . log ( typeof this . _pendingState ) ;
105+ // console.log('_pendingState found');
106+ // console.log(typeof this._pendingState);
107107
108108 if ( typeof this . _pendingState === 'string' )
109109 {
@@ -129,26 +129,26 @@ Phaser.StateManager.prototype = {
129129
130130 if ( typeof autoStart === "undefined" ) { autoStart = false ; }
131131
132- console . log ( 'Phaser.StateManager.addState' , key ) ;
133- console . log ( typeof state ) ;
134- console . log ( 'autoStart?' , autoStart ) ;
132+ // console.log('Phaser.StateManager.addState', key);
133+ // console.log(typeof state);
134+ // console.log('autoStart?', autoStart);
135135
136136 var newState ;
137137
138138 if ( state instanceof Phaser . State )
139139 {
140- console . log ( 'Phaser.StateManager.addState: Phaser.State given' ) ;
140+ // console.log('Phaser.StateManager.addState: Phaser.State given');
141141 newState = state ;
142142 newState . link ( this . game ) ;
143143 }
144144 else if ( typeof state === 'object' )
145145 {
146- console . log ( 'Phaser.StateManager.addState: Object given' ) ;
146+ // console.log('Phaser.StateManager.addState: Object given');
147147 newState = state ;
148148 }
149149 else if ( typeof state === 'function' )
150150 {
151- console . log ( 'Phaser.StateManager.addState: Function given' ) ;
151+ // console.log('Phaser.StateManager.addState: Function given');
152152 newState = new state ( this . game ) ;
153153 }
154154
@@ -158,12 +158,12 @@ Phaser.StateManager.prototype = {
158158 {
159159 if ( this . game . isBooted )
160160 {
161- console . log ( 'Game is booted, so we can start the state now' ) ;
161+ // console.log('Game is booted, so we can start the state now');
162162 this . start ( key ) ;
163163 }
164164 else
165165 {
166- console . log ( 'Game is NOT booted, so set the current state as pending' ) ;
166+ // console.log('Game is NOT booted, so set the current state as pending');
167167 this . _pendingState = key ;
168168 }
169169 }
@@ -203,7 +203,7 @@ Phaser.StateManager.prototype = {
203203 */
204204 start : function ( key , clearWorld , clearCache ) {
205205
206- console . log ( 'Phaser.StateManager.start' , key ) ;
206+ // console.log('Phaser.StateManager.start', key);
207207 // console.log(this);
208208 // console.log(this.callbackContext);
209209
@@ -212,7 +212,7 @@ Phaser.StateManager.prototype = {
212212
213213 if ( this . game . isBooted == false )
214214 {
215- console . log ( 'Game is NOT booted, so set the requested state as pending' ) ;
215+ // console.log('Game is NOT booted, so set the requested state as pending');
216216 this . _pendingState = key ;
217217 return ;
218218 }
@@ -243,14 +243,14 @@ Phaser.StateManager.prototype = {
243243
244244 if ( this . onPreloadCallback )
245245 {
246- console . log ( 'Preload Callback found' ) ;
246+ // console.log('Preload Callback found');
247247 this . game . load . reset ( ) ;
248248 this . onPreloadCallback . call ( this . callbackContext ) ;
249249
250250 // Is the loader empty?
251251 if ( this . game . load . queueSize == 0 )
252252 {
253- console . log ( 'Loader queue empty' ) ;
253+ // console.log('Loader queue empty');
254254 this . game . loadComplete ( ) ;
255255
256256 if ( this . onCreateCallback )
@@ -260,18 +260,18 @@ Phaser.StateManager.prototype = {
260260 }
261261 else
262262 {
263- console . log ( 'Loader started' ) ;
263+ // console.log('Loader started');
264264 // Start the loader going as we have something in the queue
265265 this . game . load . start ( ) ;
266266 }
267267 }
268268 else
269269 {
270- console . log ( 'Preload callback not found' ) ;
270+ // console.log('Preload callback not found');
271271 // No init? Then there was nothing to load either
272272 if ( this . onCreateCallback )
273273 {
274- console . log ( 'Create callback found' ) ;
274+ // console.log('Create callback found');
275275 this . onCreateCallback . call ( this . callbackContext ) ;
276276 }
277277
@@ -343,10 +343,10 @@ Phaser.StateManager.prototype = {
343343
344344 loadComplete : function ( ) {
345345
346- console . log ( 'Phaser.StateManager.loadComplete' ) ;
346+ // console.log('Phaser.StateManager.loadComplete');
347347
348348 if ( this . onCreateCallback ) {
349- console . log ( 'Create callback found' ) ;
349+ // console.log('Create callback found');
350350 this . onCreateCallback . call ( this . callbackContext ) ;
351351 }
352352
0 commit comments