From f1b94b4b599ab701bc75b55bbbbb73c5ef329a93 Mon Sep 17 00:00:00 2001 From: Michał Gołębiowski Date: Wed, 19 Jun 2013 20:52:50 +0100 Subject: feat(jqLite): switch bind/unbind to more recent jQuery on/off jQuery switched to a completely new event binding implementation as of 1.7.0, centering around on/off methods instead of previous bind/unbind. This patch makes jqLite match this implementation while still supporting previous bind/unbind methods. --- test/jQueryPatchSpec.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/jQueryPatchSpec.js') diff --git a/test/jQueryPatchSpec.js b/test/jQueryPatchSpec.js index 0680a0c3..0efbb8d1 100644 --- a/test/jQueryPatchSpec.js +++ b/test/jQueryPatchSpec.js @@ -14,8 +14,8 @@ if (window.jQuery) { spy1 = jasmine.createSpy('span1.$destroy'); spy2 = jasmine.createSpy('span2.$destroy'); doc = $('
abcxyz
'); - doc.find('span.first').bind('$destroy', spy1); - doc.find('span.second').bind('$destroy', spy2); + doc.find('span.first').on('$destroy', spy1); + doc.find('span.second').on('$destroy', spy2); }); afterEach(function() { -- cgit v1.2.3