aboutsummaryrefslogtreecommitdiffstats
path: root/src/service/location.js
diff options
context:
space:
mode:
authorVojta Jina2011-11-15 11:56:13 -0800
committerVojta Jina2011-11-21 17:49:49 -0800
commit3548fe31398c1287817e486577a08902cf916a61 (patch)
treeeb27a7dc3d697be15c235aaccdb4a61bf390befa /src/service/location.js
parent29f9e2665d8b771a6226870fc8fd2c4c94d7a2c0 (diff)
downloadangular.js-3548fe31398c1287817e486577a08902cf916a61.tar.bz2
feat(service.$autoScroll): scroll to hash fragment
- whenever hash part of the url changes - after ng:view / ng:include load
Diffstat (limited to 'src/service/location.js')
-rw-r--r--src/service/location.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/service/location.js b/src/service/location.js
index a29a1a15..f5928eb2 100644
--- a/src/service/location.js
+++ b/src/service/location.js
@@ -195,7 +195,7 @@ function LocationHashbangUrl(url, hashPrefix) {
}
-LocationUrl.prototype = LocationHashbangUrl.prototype = {
+LocationUrl.prototype = {
/**
* Has any change been replacing ?
@@ -374,6 +374,7 @@ LocationUrl.prototype = LocationHashbangUrl.prototype = {
}
};
+LocationHashbangUrl.prototype = inherit(LocationUrl.prototype);
function locationGetter(property) {
return function() {