|
1 | | -/*! SpringRoll Container 1.1.1 */ |
| 1 | +/*! SpringRoll Container 1.1.2 */ |
2 | 2 | /** |
3 | 3 | * @module Core |
4 | 4 | * @namespace window |
|
1389 | 1389 | * @property {String} version |
1390 | 1390 | * @static |
1391 | 1391 | * @readOnly |
1392 | | - * @default "1.1.1" |
| 1392 | + * @default "1.1.2" |
1393 | 1393 | */ |
1394 | | - Container.version = "1.1.1"; |
| 1394 | + Container.version = "1.1.2"; |
1395 | 1395 |
|
1396 | 1396 | //Reference to the prototype |
1397 | 1397 | var s = EventDispatcher.prototype; |
|
1521 | 1521 | this.client.connect(this.dom); |
1522 | 1522 |
|
1523 | 1523 | //Handle bellhop events coming from the application |
1524 | | - this.client.on( |
1525 | | - { |
1526 | | - loading: onLoading.bind(this), |
1527 | | - progress: onProgress.bind(this), |
1528 | | - loadDone: onLoadDone.bind(this), // @deprecated use 'loaded' instead |
1529 | | - loaded: onLoadDone.bind(this), |
1530 | | - endGame: onEndGame.bind(this), |
1531 | | - localError: onLocalError.bind(this) |
1532 | | - }); |
| 1524 | + this.client.on('loading', onLoading.bind(this)); |
| 1525 | + this.client.on('progress', onProgress.bind(this)); |
| 1526 | + this.client.on('loaded', onLoadDone.bind(this)); |
| 1527 | + this.client.on('endGame', onEndGame.bind(this)); |
| 1528 | + this.client.on('localError', onLocalError.bind(this)); |
1533 | 1529 | }; |
1534 | 1530 |
|
1535 | 1531 | /** |
|
2422 | 2418 |
|
2423 | 2419 | plugin.open = function() |
2424 | 2420 | { |
2425 | | - this.client.on( |
2426 | | - { |
2427 | | - focus: onFocus.bind(this), |
2428 | | - keepFocus: onKeepFocus.bind(this) |
2429 | | - }); |
| 2421 | + this.client.on('focus', onFocus.bind(this)); |
| 2422 | + this.client.on('keepFocus', onKeepFocus.bind(this)); |
2430 | 2423 | }; |
2431 | 2424 |
|
2432 | 2425 | plugin.opened = function() |
|
3182 | 3175 |
|
3183 | 3176 | plugin.open = function() |
3184 | 3177 | { |
3185 | | - this.client.on( |
3186 | | - { |
3187 | | - userDataRemove: onUserDataRemove.bind(this), |
3188 | | - userDataRead: onUserDataRead.bind(this), |
3189 | | - userDataWrite: onUserDataWrite.bind(this), |
3190 | | - }); |
| 3178 | + this.client.on('userDataRemove', onUserDataRemove.bind(this)); |
| 3179 | + this.client.on('userDataRead', onUserDataRead.bind(this)); |
| 3180 | + this.client.on('userDataWrite', onUserDataWrite.bind(this)); |
3191 | 3181 | }; |
3192 | 3182 |
|
3193 | 3183 | /** |
|
0 commit comments