@vpmedia/phaser 1.0.15 → 1.0.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vpmedia/phaser",
3
- "version": "1.0.15",
3
+ "version": "1.0.16",
4
4
  "description": "@vpmedia/phaser is the modern ECMAScript port of the popular Phaser game engine v2.6.2",
5
5
  "author": "Andras Csizmadia <andras@vpmedia.hu> (www.vpmedia.hu)",
6
6
  "license": "MIT",
@@ -92,7 +92,7 @@ export default class {
92
92
  this.game.input.onUp.addOnce(() => {
93
93
  if (this.context.state === 'suspended') {
94
94
  this.context.resume().catch((e) => {
95
- this.game.exceptionHandler(e, { state: this.context.state, trigger: 'check' });
95
+ this.game.exceptionHandler(e, { state: this.context.state, reason: 'check' });
96
96
  });
97
97
  }
98
98
  }, this);
@@ -116,7 +116,7 @@ export default class {
116
116
  }
117
117
  if (this.context.state === 'suspended') {
118
118
  this.context.resume().catch((e) => {
119
- this.game.exceptionHandler(e, { state: this.context.state, trigger: 'unlock' });
119
+ this.game.exceptionHandler(e, { state: this.context.state, reason: 'unlock' });
120
120
  });
121
121
  }
122
122
  return true;
@@ -206,12 +206,12 @@ export default class {
206
206
  this._unlockSource = null;
207
207
  if (this.context.state === 'suspended') {
208
208
  this.context.resume().catch((e) => {
209
- this.game.exceptionHandler(e, { state: this.context.state, trigger: 'update' });
209
+ this.game.exceptionHandler(e, { state: this.context.state, reason: 'update_suspended' });
210
210
  });
211
211
  }
212
212
  } else if (this.context.state === 'interrupted') {
213
213
  this.context.resume().catch((e) => {
214
- this.game.exceptionHandler(e, { state: this.context.state });
214
+ this.game.exceptionHandler(e, { state: this.context.state, reason: 'update_interrupted' });
215
215
  });
216
216
  }
217
217
  for (let i = 0; i < this._sounds.length; i += 1) {