From acbd7cdf320f0570fcc1952c8680d4c78bc8fa2c Mon Sep 17 00:00:00 2001 From: Vojta Jina Date: Fri, 11 Nov 2011 17:15:22 -0800 Subject: style(docs): make jslint happy - fix some warnings --- docs/src/ngdoc.js | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'docs/src/ngdoc.js') diff --git a/docs/src/ngdoc.js b/docs/src/ngdoc.js index 46db34f7..a0536266 100644 --- a/docs/src/ngdoc.js +++ b/docs/src/ngdoc.js @@ -144,7 +144,7 @@ Doc.prototype = { return '' + (isAngular ? '' : '') + - (title || url.replace(/^#/g, '')).replace(/\n/g, ' ') + + (title || url).replace(/^#/g, '').replace(/\n/g, ' ') + (isAngular ? '' : '') + ''; }); @@ -175,7 +175,6 @@ Doc.prototype = { } }); flush(); - this.name = this.name || ''; this.shortName = this.name.split(this.name.match(/#/) ? /#/ : /\./ ).pop(); this.id = this.id || // if we have an id just use it (((this.file||'').match(/.*\/([^\/]*)\.ngdoc/)||{})[1]) || // try to extract it from file name @@ -252,7 +251,7 @@ Doc.prototype = { } dom.h('Dependencies', self.requires, function(require){ dom.tag('code', function() { - dom.tag('a', {href: 'api/angular.module.NG.' + require.name}, require.name); + dom.tag('a', {href: 'api/angular.module.ng.' + require.name}, require.name); }); dom.html(require.text); }); @@ -620,12 +619,12 @@ var KEYWORD_PRIORITY = { '.index': 1, '.guide': 2, '.angular': 7, - '.angular.module.NG.$filter': 7, + '.angular.module.ng.$filter': 7, '.angular.Object': 7, '.angular.directive': 7, - '.angular.module.NG.$filter': 7, - '.angular.module.NG.$rootScope.Scope': 7, - '.angular.module.NG': 7, + '.angular.module.ng.$filter': 7, + '.angular.module.ng.$rootScope.Scope': 7, + '.angular.module.ng': 7, '.angular.inputType': 7, '.angular.widget': 7, '.angular.mock': 8, -- cgit v1.2.3