Skip to content

Commit d49cf59

Browse files
committed
Ignore unbind() methods resulting in -1 index - those are caused by the cleanup in the method.
1 parent fe21841 commit d49cf59

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

app/directives/master.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,12 @@
5959

6060
var index = listeners.indexOf( listener );
6161

62+
if ( index === -1 ) {
63+
64+
return;
65+
66+
}
67+
6268
listeners.splice( index, 1 );
6369

6470
}

0 commit comments

Comments
 (0)