Skip to content

Commit 2293b64

Browse files
committed
Removing debug / console.log output.
1 parent ffd5147 commit 2293b64

7 files changed

Lines changed: 0 additions & 24 deletions

File tree

src/input/Pointer.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,6 @@ Phaser.Pointer.prototype = {
467467
// The pointer isn't currently over anything, check if we've got a lingering previous target
468468
if (this.targetObject)
469469
{
470-
// console.log("The pointer isn't currently over anything, check if we've got a lingering previous target");
471470
this.targetObject._pointerOutHandler(this);
472471
this.targetObject = null;
473472
}
@@ -477,18 +476,15 @@ Phaser.Pointer.prototype = {
477476
if (this.targetObject === null)
478477
{
479478
// And now set the new one
480-
// console.log('And now set the new one');
481479
this.targetObject = this._highestRenderObject;
482480
this._highestRenderObject._pointerOverHandler(this);
483481
}
484482
else
485483
{
486484
// We've got a target from the last update
487-
// console.log("We've got a target from the last update");
488485
if (this.targetObject === this._highestRenderObject)
489486
{
490487
// Same target as before, so update it
491-
// console.log("Same target as before, so update it");
492488
if (this._highestRenderObject.update(this) === false)
493489
{
494490
this.targetObject = null;
@@ -497,7 +493,6 @@ Phaser.Pointer.prototype = {
497493
else
498494
{
499495
// The target has changed, so tell the old one we've left it
500-
// console.log("The target has changed, so tell the old one we've left it");
501496
this.targetObject._pointerOutHandler(this);
502497

503498
// And now set the new one

src/input/Touch.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -262,8 +262,6 @@ Phaser.Touch.prototype = {
262262
*/
263263
onTouchEnter: function (event) {
264264

265-
console.log('touch enter', event);
266-
267265
this.event = event;
268266

269267
if (this.touchEnterCallback)

src/loader/Loader.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1289,8 +1289,6 @@ Phaser.Loader.prototype = {
12891289
*/
12901290
xhrLoad: function (index, url, type, onload, onerror) {
12911291

1292-
// console.log('xhrLoad', index, url, type, onload, onerror);
1293-
12941292
this._xhr.open("GET", url, true);
12951293
this._xhr.responseType = type;
12961294

src/physics/arcade/World.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1114,8 +1114,6 @@ Phaser.Physics.Arcade.prototype = {
11141114
// We only need do this if both axis have checking faces AND we're moving in both directions
11151115
minX = Math.min(Math.abs(body.position.x - tile.right), Math.abs(body.right - tile.left));
11161116
minY = Math.min(Math.abs(body.position.y - tile.bottom), Math.abs(body.bottom - tile.top));
1117-
1118-
// console.log('checking faces', minX, minY);
11191117
}
11201118

11211119
if (minX < minY)

src/physics/ninja/Circle.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,6 @@ Phaser.Physics.Ninja.Circle.prototype = {
328328
}
329329
else
330330
{
331-
// console.log("ResolveCircleTile() was called with an empty (or unknown) tile!: ID=" + t.id + ")");
332331
return false;
333332
}
334333

src/sound/Sound.js

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,6 @@ Phaser.Sound.prototype = {
312312
{
313313
this._sound = this.game.cache.getSoundData(this.key);
314314
this.totalDuration = this._sound.duration;
315-
// console.log('sound has unlocked' + this._sound);
316315
}
317316

318317
},
@@ -382,31 +381,26 @@ Phaser.Sound.prototype = {
382381

383382
if (this.currentTime >= this.durationMS)
384383
{
385-
// console.log(this.currentMarker, 'has hit duration');
386384
if (this.usingWebAudio)
387385
{
388386
if (this.loop)
389387
{
390-
// console.log('loop1');
391388
// won't work with markers, needs to reset the position
392389
this.onLoop.dispatch(this);
393390

394391
if (this.currentMarker === '')
395392
{
396-
// console.log('loop2');
397393
this.currentTime = 0;
398394
this.startTime = this.game.time.now;
399395
}
400396
else
401397
{
402-
// console.log('loop3');
403398
this.onMarkerComplete.dispatch(this.currentMarker, this);
404399
this.play(this.currentMarker, 0, this.volume, true, true);
405400
}
406401
}
407402
else
408403
{
409-
// console.log('stopping, no loop for marker');
410404
this.stop();
411405
}
412406
}
@@ -588,16 +582,13 @@ Phaser.Sound.prototype = {
588582
}
589583
else
590584
{
591-
// console.log('Sound play Audio');
592585
if (this.game.cache.getSound(this.key) && this.game.cache.getSound(this.key).locked)
593586
{
594-
// console.log('tried playing locked sound, pending set, reload started');
595587
this.game.cache.reloadSound(this.key);
596588
this.pendingPlayback = true;
597589
}
598590
else
599591
{
600-
// console.log('sound not locked, state?', this._sound.readyState);
601592
if (this._sound && (this.game.device.cocoonJS || this._sound.readyState === 4))
602593
{
603594
this._sound.play();
@@ -610,7 +601,6 @@ Phaser.Sound.prototype = {
610601
this.durationMS = this.totalDuration * 1000;
611602
}
612603

613-
// console.log('playing', this._sound);
614604
this._sound.currentTime = this.position;
615605
this._sound.muted = this._muted;
616606

src/tilemap/TilemapLayer.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,8 +212,6 @@ Phaser.TilemapLayer.prototype.constructor = Phaser.TilemapLayer;
212212
*/
213213
Phaser.TilemapLayer.prototype.postUpdate = function () {
214214

215-
// console.log('layer pu');
216-
217215
Phaser.Image.prototype.postUpdate.call(this);
218216

219217
// Stops you being able to auto-scroll the camera if it's not following a sprite

0 commit comments

Comments
 (0)