Skip to content

Click on 'Scene Tree' == Uncaught TypeError #9

@doggan

Description

@doggan

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) {

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions