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/ngScenario/dslSpec.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/ngScenario/dslSpec.js') diff --git a/test/ngScenario/dslSpec.js b/test/ngScenario/dslSpec.js index d89d6ebf..642e2d37 100644 --- a/test/ngScenario/dslSpec.js +++ b/test/ngScenario/dslSpec.js @@ -306,7 +306,7 @@ describe("angular.scenario.dsl", function() { elm = jqLite(''); doc.append(elm); - elm.bind('click', function(event) { + elm.on('click', function(event) { event.preventDefault(); }); @@ -338,7 +338,7 @@ describe("angular.scenario.dsl", function() { elm = jqLite(''); doc.append(elm); - elm.bind('dblclick', function(event) { + elm.on('dblclick', function(event) { event.preventDefault(); }); -- cgit v1.2.3