Don't tidy an empty set of bindings.

This commit is contained in:
Richard Davey 2017-02-07 18:41:35 +00:00
parent 47a6434abb
commit 41f0b51b08

View file

@ -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;