Signal.removeAll would ignore the context parameter and remove all bindings regardless (thanks @alect #1168)

This commit is contained in:
Richard Davey 2014-09-04 22:24:47 +01:00
parent 55400ce988
commit 7ee1564f2e
2 changed files with 5 additions and 1 deletions

View file

@ -182,6 +182,7 @@ Version 2.1.0 - "Cairhien" - -in development-
* Tween.generateData would skip the end values in the data array. They are now included as the object in the final array element.
* Rectangle.bottom setter swapped the order of the calculation (thanks @JakeCoxon #1165)
* Phaser.Text wouldn't render the text to its local canvas if you passed the text on the constructor and didn't add it to the display list. If a string is given it now updates the local canvas on creation.
* Signal.removeAll would ignore the context parameter and remove all bindings regardless (thanks @alect #1168)
### p2.js 0.6.0 Changes and New Features

View file

@ -257,7 +257,10 @@ Phaser.Signal.prototype = {
}
}
this._bindings.length = 0;
if (!context)
{
this._bindings.length = 0;
}
},