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 /test | |
| parent | c18074a3104fc31d39f91c6a70b81cc2081184c4 (diff) | |
| download | angular.js-ac5b9055f6d7224e5e8e49941c0fc9cb16c64a7e.tar.bz2 | |
fix(jqLite): forgive unregistration of a non-registered handler
Diffstat (limited to 'test')
| -rw-r--r-- | test/jqLiteSpec.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/jqLiteSpec.js b/test/jqLiteSpec.js index 6aafd1f8..5b9a122c 100644 --- a/test/jqLiteSpec.js +++ b/test/jqLiteSpec.js @@ -843,6 +843,12 @@ describe('jqLite', function() { aElem.unbind('click', function() {}); }); + it('should do nothing when a specific listener was not registered', function () { + var aElem = jqLite(a); + aElem.bind('click', function() {}); + + aElem.unbind('mouseenter', function() {}); + }); it('should deregister all listeners', function() { var aElem = jqLite(a), |
