diff options
Diffstat (limited to 'docs/src/templates/docs.js')
| -rw-r--r-- | docs/src/templates/docs.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/src/templates/docs.js b/docs/src/templates/docs.js index 7efb2a5e..de6130dc 100644 --- a/docs/src/templates/docs.js +++ b/docs/src/templates/docs.js @@ -17,7 +17,7 @@ function DocsController($location, $browser, $window, $cookies) { $location.hashPath = '!/api'; } - this.$watch('$location.hashPath', function(hashPath) { + this.$watch('$location.hashPath', function(scope, hashPath) { if (hashPath.match(/^!/)) { var parts = hashPath.substring(1).split('/'); self.sectionId = parts[1]; @@ -36,7 +36,7 @@ function DocsController($location, $browser, $window, $cookies) { delete self.partialId; } } - }); + })(); this.getUrl = function(page){ return '#!/' + page.section + '/' + page.id; |
