Skip to content

Commit 41f0b51

Browse files
committed
Don't tidy an empty set of bindings.
1 parent 47a6434 commit 41f0b51

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

v3/src/events/EventBinding.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,15 @@ EventBinding.prototype = {
223223

224224
tidy: function ()
225225
{
226+
// Nothing to do ...
227+
if (this.active.length === 0)
228+
{
229+
return;
230+
}
231+
232+
console.log('EventBinding.tidy');
233+
console.dir(this.active);
234+
226235
var added = 0;
227236

228237
var i = this.active.length - 1;

0 commit comments

Comments
 (0)