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

Commit

Permalink
fix(jqLite): remove exposed dealoc method
Browse files Browse the repository at this point in the history
The method doesn't exist in jQuery,
and there's shouldn't be any need for it
  • Loading branch information
rodyhaddad committed Jul 10, 2014
1 parent 38bdb40 commit 9c5b407
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions src/jqLite.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');

Expand Down
2 changes: 1 addition & 1 deletion test/ng/browserSpecs.js
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,7 @@ describe('browser', function() {
});

afterEach(function() {
if (!jQuery) jqLite(fakeWindow).dealoc();
if (!jQuery) jqLiteDealoc(fakeWindow);
});

it('should return registered callback', function() {
Expand Down

0 comments on commit 9c5b407

Please sign in to comment.