diff options
| author | Igor Minar | 2010-11-16 13:39:50 -0800 |
|---|---|---|
| committer | Igor Minar | 2010-11-16 13:45:45 -0800 |
| commit | 4af32de84a264e05eebfa6dbc09ce10fac1e1417 (patch) | |
| tree | 83dd60159ed27d183a6274be306b7891ef37588f /docs/docs.js | |
| parent | a130bb899d790dc11393276b34d59b2ddd5cc680 (diff) | |
| download | angular.js-4af32de84a264e05eebfa6dbc09ce10fac1e1417.tar.bz2 | |
docs should use ng:include onload
Diffstat (limited to 'docs/docs.js')
| -rw-r--r-- | docs/docs.js | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/docs/docs.js b/docs/docs.js index 96fba9cc..99b2aa2f 100644 --- a/docs/docs.js +++ b/docs/docs.js @@ -1,7 +1,7 @@ SyntaxHighlighter['defaults'].toolbar = false; -DocsController.$inject = ['$location', '$browser']; -function DocsController($location, $browser) { +DocsController.$inject = ['$location', '$browser', '$window']; +function DocsController($location, $browser, $window) { this.pages = NG_PAGES; window.$root = this.$root; @@ -26,6 +26,11 @@ function DocsController($location, $browser) { return 'level-' + depth + (page.name == this.getTitle() ? ' selected' : ''); }; + + this.afterPartialLoaded = function() { + $window.scroll(0,0); + SyntaxHighlighter.highlight(); + }; } |
