From ab59cc6c44705b1244a77eba999d736f9eb3c6ae Mon Sep 17 00:00:00 2001 From: Pawel Kozlowski Date: Sat, 3 Aug 2013 17:57:37 +0200 Subject: fix(jqLite): forgive unregistration of a non-registered handler --- test/jqLiteSpec.js | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'test') diff --git a/test/jqLiteSpec.js b/test/jqLiteSpec.js index e74c09a5..3648cda4 100644 --- a/test/jqLiteSpec.js +++ b/test/jqLiteSpec.js @@ -890,6 +890,12 @@ describe('jqLite', function() { aElem.off('click', function() {}); }); + it('should do nothing when a specific listener was not registered', function () { + var aElem = jqLite(a); + aElem.on('click', function() {}); + + aElem.off('mouseenter', function() {}); + }); it('should deregister all listeners', function() { var aElem = jqLite(a), -- cgit v1.2.3