diff options
| author | Igor Minar | 2013-06-06 14:12:28 -0700 |
|---|---|---|
| committer | Igor Minar | 2013-06-06 17:08:50 -0700 |
| commit | 65f5e856a161e7c91b9ebde1360242dc704d0510 (patch) | |
| tree | bedc577227715f36b62449ca669f715b1ff62bba /docs | |
| parent | 63c1e5beff858abae464b5dead80d51d5f2c0ca2 (diff) | |
| download | angular.js-65f5e856a161e7c91b9ebde1360242dc704d0510.tar.bz2 | |
chore(ngdoc): fix deprecated node api path.existsSync -> fs.existsSync
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/src/ngdoc.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/src/ngdoc.js b/docs/src/ngdoc.js index d66f33e6..679dfe15 100644 --- a/docs/src/ngdoc.js +++ b/docs/src/ngdoc.js @@ -145,7 +145,7 @@ Doc.prototype = { example.addSource(name, content); }); content.replace(/<file\s+src="([^"]+)"(?:\s+tag="([^"]+)")?(?:\s+name="([^"]+)")?\s*\/?>/gmi, function(_, file, tag, name) { - if(fspath.existsSync(file)) { + if(fs.existsSync(file)) { var content = fs.readFileSync(file, 'utf8'); if(content && content.length > 0) { if(tag && tag.length > 0) { @@ -160,7 +160,7 @@ Doc.prototype = { return placeholder(example.toHtml()); }). replace(/(?:\*\s+)?<file.+?src="([^"]+)"(?:\s+tag="([^"]+)")?\s*\/?>/i, function(_, file, tag) { - if(fspath.existsSync(file)) { + if(fs.existsSync(file)) { var content = fs.readFileSync(file, 'utf8'); if(tag && tag.length > 0) { content = extractInlineDocCode(content, tag); @@ -361,7 +361,7 @@ Doc.prototype = { html_usage_parameters: function(dom) { var self = this; - var params = this.param ? this.param : []; + var params = this.param ? this.param : []; if(params.length > 0) { dom.html('<h2 id="parameters">Parameters</h2>'); dom.html('<table class="variables-matrix table table-bordered table-striped">'); |
