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:
rodyhaddad
2014-07-10 10:38:24 -07:00
parent 38bdb40675
commit 9c5b407fd1
2 changed files with 1 additions and 3 deletions

View File

@@ -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');

View File

@@ -478,7 +478,7 @@ describe('browser', function() {
});
afterEach(function() {
if (!jQuery) jqLite(fakeWindow).dealoc();
if (!jQuery) jqLiteDealoc(fakeWindow);
});
it('should return registered callback', function() {