Skip to content

Commit 81b553d

Browse files
committed
Ok let's start removing these 'typeof' checks.
1 parent d663d29 commit 81b553d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/gameobjects/GameObjectCreator.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -390,8 +390,8 @@ Phaser.GameObjectCreator.prototype = {
390390
*/
391391
bitmapData: function (width, height, key, addToCache) {
392392

393-
if (typeof addToCache === 'undefined') { addToCache = false; }
394-
if (typeof key === 'undefined' || key === '') { key = this.game.rnd.uuid(); }
393+
if (addToCache === undefined) { addToCache = false; }
394+
if (key === undefined || key === '') { key = this.game.rnd.uuid(); }
395395

396396
var texture = new Phaser.BitmapData(this.game, key, width, height);
397397

0 commit comments

Comments
 (0)