Repro:
- Click on Scene Tree button
- Uncaught TypeError is logged:
Uncaught TypeError: Expecting a function in instanceof check, but got undefinedtypeToString @ phaser-debug.js:1292
module.exports.HandlebarsCompiler.template.main @ phaser-debug.js:1021
ret @ phaser-debug.js:732
Scene.rebuildTree @ phaser-debug.js:1222
Scene.show @ phaser-debug.js:1249Panel.toggle @ phaser-debug.js:1073
(anonymous function) @ phaser-debug.js:231
(anonymous function) @ phaser-debug.js:1603
Environment:
- Phaser v2.4.4
- Chrome Version 46.0.2490.80 (64-bit) (Mac OS X)
This seems to fix it (in typeToString):
- if (node instanceof PIXI.Stage) {
+ if (typeof PIXI.Stage !== 'undefined' &&
+ node instanceof PIXI.Stage) {
Repro:
Environment:
This seems to fix it (in
typeToString):