vendor/assets/javascripts/angular-scenario.js in angularjs-rails-1.0.1 vs vendor/assets/javascripts/angular-scenario.js in angularjs-rails-1.0.1.1

- old
+ new

@@ -9402,11 +9402,11 @@ })( window ); /** - * @license AngularJS v1.0.0 + * @license AngularJS v1.0.1 * (c) 2010-2012 Google, Inc. http://angularjs.org * License: MIT */ (function(window, document){ var _jQuery = window.jQuery.noConflict(true); @@ -10650,15 +10650,15 @@ * - `minor` – `{number}` – Minor version number, such as "9". * - `dot` – `{number}` – Dot version number, such as "18". * - `codeName` – `{string}` – Code name of the release, such as "jiggling-armfat". */ var version = { - full: '1.0.0', // all of these placeholder strings will be replaced by rake's + full: '1.0.1', // all of these placeholder strings will be replaced by rake's major: 1, // compile task minor: 0, - dot: 0, - codeName: 'temporal-domination' + dot: 1, + codeName: 'thorium-shielding' }; function publishExternalAPI(angular){ extend(angular, { @@ -12433,10 +12433,11 @@ * @param {boolean=} replace Should new url replace current history record ? */ self.url = function(url, replace) { // setter if (url) { + if (lastBrowserUrl == url) return; lastBrowserUrl = url; if ($sniffer.history) { if (replace) history.replaceState(null, '', url); else { history.pushState(null, '', url); @@ -14757,11 +14758,11 @@ var elm = jqLite(event.target); // traverse the DOM up to find first A tag while (lowercase(elm[0].nodeName) !== 'a') { - if (elm[0] === $rootElement[0]) return; - elm = elm.parent(); + // ignore rewriting if no A tag (reached root element, or no parent - removed from document) + if (elm[0] === $rootElement[0] || !(elm = elm.parent())[0]) return; } var absHref = elm.prop('href'), rewrittenUrl = $location.$$rewriteAppUrl(absHref); \ No newline at end of file