mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-04-24 03:55:49 +08:00
fix(jqLite): forgive unregistration of a non-registered handler
This commit is contained in:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user