diff options
| author | Pawel Kozlowski | 2013-08-03 17:57:37 +0200 |
|---|---|---|
| committer | Pawel Kozlowski | 2013-08-07 19:09:04 +0200 |
| commit | ac5b9055f6d7224e5e8e49941c0fc9cb16c64a7e (patch) | |
| tree | 90857173398a4901dd6779ca15d23c116b4375ed /src | |
| parent | c18074a3104fc31d39f91c6a70b81cc2081184c4 (diff) | |
| download | angular.js-ac5b9055f6d7224e5e8e49941c0fc9cb16c64a7e.tar.bz2 | |
fix(jqLite): forgive unregistration of a non-registered handler
Diffstat (limited to 'src')
| -rw-r--r-- | src/jqLite.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/jqLite.js b/src/jqLite.js index fc8fba07..1bcd9224 100644 --- a/src/jqLite.js +++ b/src/jqLite.js @@ -205,7 +205,7 @@ function JQLiteUnbind(element, type, fn) { removeEventListenerFn(element, type, events[type]); delete events[type]; } else { - arrayRemove(events[type], fn); + arrayRemove(events[type] || [], fn); } } } |
