mirror of
https://github.com/photonstorm/phaser
synced 2025-02-17 14:38:30 +00:00
Don't tidy an empty set of bindings.
This commit is contained in:
parent
47a6434abb
commit
41f0b51b08
1 changed files with 9 additions and 0 deletions
|
@ -223,6 +223,15 @@ EventBinding.prototype = {
|
|||
|
||||
tidy: function ()
|
||||
{
|
||||
// Nothing to do ...
|
||||
if (this.active.length === 0)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
console.log('EventBinding.tidy');
|
||||
console.dir(this.active);
|
||||
|
||||
var added = 0;
|
||||
|
||||
var i = this.active.length - 1;
|
||||
|
|
Loading…
Add table
Reference in a new issue