From 71927e11f71ce716ca8c5a5312e5d1fe4b193c87 Mon Sep 17 00:00:00 2001 From: Georgios Kalpakas Date: Thu, 9 Oct 2014 18:02:11 +0300 Subject: [PATCH 1/2] docs($location): fix description for `rewriteLinks` --- src/ng/location.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ng/location.js b/src/ng/location.js index 266cdc9a07cb..5ece3fd8c3d3 100644 --- a/src/ng/location.js +++ b/src/ng/location.js @@ -659,8 +659,8 @@ function $LocationProvider(){ * whether or not a tag is required to be present. If `enabled` and `requireBase` are * true, and a base tag is not present, an error will be thrown when `$location` is injected. * See the {@link guide/$location $location guide for more information} - * - **rewriteLinks** - `{boolean}` - (default: `false`) When html5Mode is enabled, disables - * url rewriting for relative linksTurns off url rewriting for relative links. + * - **rewriteLinks** - `{boolean}` - (default: `true`) When html5Mode is enabled, + * enables/disables url rewriting for relative links. * * @returns {Object} html5Mode object if used as getter or itself (chaining) if used as setter */ From 616d568f5ddc95fb290767b220baff8e53e07e1c Mon Sep 17 00:00:00 2001 From: Georgios Kalpakas Date: Thu, 9 Oct 2014 18:03:20 +0300 Subject: [PATCH 2/2] refactor($location): remove redundant spaces --- src/ng/location.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ng/location.js b/src/ng/location.js index 5ece3fd8c3d3..fdb58cf4742f 100644 --- a/src/ng/location.js +++ b/src/ng/location.js @@ -671,7 +671,7 @@ function $LocationProvider(){ } else if (isObject(mode)) { if (isBoolean(mode.enabled)) { - html5Mode.enabled = mode.enabled; + html5Mode.enabled = mode.enabled; } if (isBoolean(mode.requireBase)) { @@ -679,7 +679,7 @@ function $LocationProvider(){ } if (isBoolean(mode.rewriteLinks)) { - html5Mode.rewriteLinks = mode.rewriteLinks; + html5Mode.rewriteLinks = mode.rewriteLinks; } return this;