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. --- src/ng/location.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ng/location.js') diff --git a/src/ng/location.js b/src/ng/location.js index de629d42..ba3901b2 100644 --- a/src/ng/location.js +++ b/src/ng/location.js @@ -511,7 +511,7 @@ function $LocationProvider(){ $location = new LocationMode(appBase, '#' + hashPrefix); $location.$$parse($location.$$rewrite(initialUrl)); - $rootElement.bind('click', function(event) { + $rootElement.on('click', function(event) { // TODO(vojta): rewrite link when opening in new tab/window (in legacy browser) // currently we open nice url link and redirect then -- cgit v1.2.3