mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-06-18 12:14:04 +08:00
fix(jqLite): remove exposed dealoc method
The method doesn't exist in jQuery, and there's shouldn't be any need for it
This commit is contained in:
@@ -752,8 +752,6 @@ function createEventHandler(element, events) {
|
||||
forEach({
|
||||
removeData: jqLiteRemoveData,
|
||||
|
||||
dealoc: jqLiteDealoc,
|
||||
|
||||
on: function onFn(element, type, fn, unsupported){
|
||||
if (isDefined(unsupported)) throw jqLiteMinErr('onargs', 'jqLite#on() does not support the `selector` or `eventData` parameters');
|
||||
|
||||
|
||||
@@ -478,7 +478,7 @@ describe('browser', function() {
|
||||
});
|
||||
|
||||
afterEach(function() {
|
||||
if (!jQuery) jqLite(fakeWindow).dealoc();
|
||||
if (!jQuery) jqLiteDealoc(fakeWindow);
|
||||
});
|
||||
|
||||
it('should return registered callback', function() {
|
||||
|
||||
Reference in New Issue
Block a user