Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 9c5b407

Browse files
committed
fix(jqLite): remove exposed dealoc method
The method doesn't exist in jQuery, and there's shouldn't be any need for it
1 parent 38bdb40 commit 9c5b407

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

src/jqLite.js

-2
Original file line numberDiff line numberDiff line change
@@ -752,8 +752,6 @@ function createEventHandler(element, events) {
752752
forEach({
753753
removeData: jqLiteRemoveData,
754754

755-
dealoc: jqLiteDealoc,
756-
757755
on: function onFn(element, type, fn, unsupported){
758756
if (isDefined(unsupported)) throw jqLiteMinErr('onargs', 'jqLite#on() does not support the `selector` or `eventData` parameters');
759757

test/ng/browserSpecs.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -478,7 +478,7 @@ describe('browser', function() {
478478
});
479479

480480
afterEach(function() {
481-
if (!jQuery) jqLite(fakeWindow).dealoc();
481+
if (!jQuery) jqLiteDealoc(fakeWindow);
482482
});
483483

484484
it('should return registered callback', function() {

0 commit comments

Comments
 (0)