Skip to content

Commit 2b3127c

Browse files
committed
Cutting out the noise.
1 parent 048e11b commit 2b3127c

5 files changed

Lines changed: 16 additions & 37 deletions

File tree

v3/src/checksum.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
var CHECKSUM = {
2-
build: 'b52ef110-bbc6-11e6-b803-3d5519c57e8c'
2+
build: 'ecf1bb90-bbc7-11e6-beca-a9f2e8e0caf0'
33
};
44
module.exports = CHECKSUM;

v3/src/events/EventBinding.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,8 +131,6 @@ EventBinding.prototype = {
131131

132132
dispatch: function (event)
133133
{
134-
console.log('EventBinding.dispatch', this.active.length);
135-
136134
if (this.state !== CONST.DISPATCHER_IDLE)
137135
{
138136
throw new Error('Error: Failed to execute \'EventDispatcher.dispatch\' on \'' + this.type + '\': The event is already being dispatched.');

v3/src/events/EventDispatcher.js

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,6 @@ EventDispatcher.prototype = {
4040
binding.add(listener, priority, false);
4141
}
4242

43-
console.log('on', binding);
44-
4543
return this;
4644
},
4745

@@ -122,8 +120,6 @@ EventDispatcher.prototype = {
122120

123121
_dispatchHandler: function (event)
124122
{
125-
console.log('_dispatchHandler', event.type);
126-
127123
event.reset(this);
128124

129125
// Pass the event through the filters first
@@ -144,9 +140,6 @@ EventDispatcher.prototype = {
144140

145141
var binding = this.getBinding(event.type);
146142

147-
console.log('_dispatchHandler', binding);
148-
console.dir(this.bindings);
149-
150143
if (binding)
151144
{
152145
binding.dispatch(event);

v3/src/loader/BaseLoader.js

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ BaseLoader.prototype = {
8686

8787
start: function ()
8888
{
89-
console.log('BaseLoader start. Files to load:', this.list.size);
89+
// console.log('BaseLoader start. Files to load:', this.list.size);
9090

9191
if (!this.isReady())
9292
{
@@ -120,15 +120,15 @@ BaseLoader.prototype = {
120120

121121
processLoadQueue: function ()
122122
{
123-
console.log('BaseLoader processLoadQueue', this.list.size);
123+
// console.log('BaseLoader processLoadQueue', this.list.size);
124124

125125
var _this = this;
126126

127127
this.list.each(function (file)
128128
{
129129
if (file.state === CONST.FILE_PENDING && _this.inflight.size < _this.maxParallelDownloads)
130130
{
131-
console.log('ADDED TO QUEUE:', file.key);
131+
// console.log('ADDED TO QUEUE:', file.key);
132132

133133
_this.inflight.add(file);
134134

@@ -150,7 +150,7 @@ BaseLoader.prototype = {
150150
// private
151151
loadFile: function (file)
152152
{
153-
console.log('LOADING', file.key);
153+
// console.log('LOADING', file.key);
154154

155155
// If the file doesn't have its own crossOrigin set,
156156
// we'll use the Loaders (which is undefined by default)
@@ -164,7 +164,7 @@ BaseLoader.prototype = {
164164

165165
nextFile: function (previousFile, success)
166166
{
167-
console.log('LOADED:', previousFile.src, success);
167+
// console.log('LOADED:', previousFile.src, success);
168168

169169
// Move the file that just loaded from the inflight list to the queue or failed Set
170170

@@ -181,19 +181,19 @@ BaseLoader.prototype = {
181181

182182
if (this.list.size > 0)
183183
{
184-
console.log('nextFile - still something in the list');
184+
// console.log('nextFile - still something in the list');
185185
this.processLoadQueue();
186186
}
187187
else if (this.inflight.size === 0)
188188
{
189-
console.log('nextFile calling finishedLoading');
189+
// console.log('nextFile calling finishedLoading');
190190
this.finishedLoading();
191191
}
192192
},
193193

194194
finishedLoading: function ()
195195
{
196-
console.log('BaseLoader.finishedLoading PROCESSING');
196+
// console.log('BaseLoader.finishedLoading PROCESSING');
197197

198198
this._state = CONST.LOADER_PROCESSING;
199199

@@ -223,9 +223,7 @@ BaseLoader.prototype = {
223223
this.inflight.clear();
224224
this.queue.clear();
225225

226-
console.log('Loader Complete. Loaded:', storage.size, 'Failed:', this.failed.size);
227-
228-
console.log('BaseLoader COMPLETE - dispatching event');
226+
// console.log('Loader Complete. Loaded:', storage.size, 'Failed:', this.failed.size);
229227

230228
this._state = CONST.LOADER_COMPLETE;
231229

v3/src/state/StateManager.js

Lines changed: 6 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,6 @@ StateManager.prototype = {
7575
// this.game.onPause.add(this.pause, this);
7676
// this.game.onResume.add(this.resume, this);
7777

78-
console.log('StateManager.boot');
79-
8078
for (var i = 0; i < this._pending.length; i++)
8179
{
8280
var entry = this._pending[i];
@@ -137,7 +135,7 @@ StateManager.prototype = {
137135
autoStart: autoStart
138136
});
139137

140-
console.log('StateManager not yet booted, adding to list', this._pending.length);
138+
// console.log('StateManager not yet booted, adding to list', this._pending.length);
141139

142140
return;
143141
}
@@ -148,20 +146,20 @@ StateManager.prototype = {
148146

149147
if (stateConfig instanceof State)
150148
{
151-
console.log('StateManager.add from instance', key);
149+
// console.log('StateManager.add from instance', key);
152150
newState = this.createStateFromInstance(key, stateConfig);
153151
}
154152
else if (typeof stateConfig === 'object')
155153
{
156-
console.log('StateManager.add from object', key);
154+
// console.log('StateManager.add from object', key);
157155

158156
stateConfig.key = key;
159157

160158
newState = this.createStateFromObject(key, stateConfig);
161159
}
162160
else if (typeof stateConfig === 'function')
163161
{
164-
console.log('StateManager.add from function', key);
162+
// console.log('StateManager.add from function', key);
165163

166164
newState = this.createStateFromFunction(key, stateConfig);
167165
}
@@ -319,7 +317,7 @@ StateManager.prototype = {
319317
// if not booted, then put state into a holding pattern
320318
if (!this.game.isBooted)
321319
{
322-
console.log('StateManager not yet booted, setting autoStart on pending list');
320+
// console.log('StateManager not yet booted, setting autoStart on pending list');
323321

324322
for (var i = 0; i < this._pending.length; i++)
325323
{
@@ -361,16 +359,13 @@ StateManager.prototype = {
361359
// Is the loader empty?
362360
if (state.sys.load.list.size === 0)
363361
{
364-
console.log('Loader: Empty queue');
365362
this.startCreate(state);
366363
}
367364
else
368365
{
369-
console.log('-------------------> Loader: Start');
370-
371366
// Start the loader going as we have something in the queue
372367

373-
state.sys.load.events.on('LOADER_COMPLETE_EVENT', this.loadComplete.bind(this));
368+
state.sys.load.events.once('LOADER_COMPLETE_EVENT', this.loadComplete.bind(this));
374369

375370
state.sys.load.start();
376371
}
@@ -386,13 +381,8 @@ StateManager.prototype = {
386381

387382
loadComplete: function (event)
388383
{
389-
console.log('Loader: Complete');
390-
console.log(arguments);
391-
392384
var state = event.loader.state;
393385

394-
console.log(state);
395-
396386
// Make sure to do load-update one last time before state is set to _created
397387

398388
// Stop doing this ...

0 commit comments

Comments
 (0)