Jump to content

Phaser.Signal boundDispatch


wrath
 Share

Recommended Posts

Hello,

Phaser.Signal.boundDispatch isn't working properly for me.

var signal = new Phaser.Signal();
var dispatch = signal.boundDispatch;

console.log(dispatch);  // true
dispatch('hello');  // Uncaught TypeError: dispatch is not a function

 

I think this line should be the following:

_boundDispatch: false,

So that the initializer properly creates the closure.

Thanks!

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...