aboutsummaryrefslogtreecommitdiffstats
path: root/bower.json
diff options
context:
space:
mode:
authorBoris Serdyuk2013-09-21 12:38:09 +0400
committerPete Bacon Darwin2013-09-23 11:16:16 +0100
commit6c59e770084912d2345e7f83f983092a2d305ae3 (patch)
treec4e16da4ad29ac552026d94e3aa7a5eea212a63c /bower.json
parente2751292dac5f7f4813bd2a3f0e8bbe3dcf4d6d9 (diff)
downloadangular.js-6c59e770084912d2345e7f83f983092a2d305ae3.tar.bz2
refactor(angular.toJson): use charAt instead of regexp
Provides a performance improvement when serializing to JSON strings. Closes #4093
Diffstat (limited to 'bower.json')
0 files changed, 0 insertions, 0 deletions
e('qq'); function identity($) {return $;} function appCache(path) { if(!path) { return appCacheTemplate(); } var blackList = ["build/docs/offline.html", "build/docs/sitemap.xml", "build/docs/robots.txt", "build/docs/docs-scenario.html", "build/docs/docs-scenario.js", "build/docs/appcache.manifest", "build/docs/.htaccess" ]; var result = ["CACHE MANIFEST", "# " + new Date().toISOString(), "", "# cache all of these", "CACHE:", "../angular.min.js"]; var resultPostfix = ["", "FALLBACK:", "/ /build/docs/index.html", "", "# allow access to google analytics and twitter when we are online", "NETWORK:", "*"]; var promise = fs.listTree(path).then(function(files){ var fileFutures = []; files.forEach(function(file){ fileFutures.push(fs.isFile(file).then(function(isFile){ if (isFile && blackList.indexOf(file) == -1) { return file.replace('build/docs/',''); } })); }); return Q.deep(fileFutures); }).then(function(files){ return result.concat(files.filter(identity)).concat(resultPostfix).join('\n'); }); return promise; } function appCacheTemplate() { return ["CACHE MANIFEST", "# " + new Date().toISOString(), "", "# cache all of these", "CACHE:", "syntaxhighlighter/syntaxhighlighter-combined.js", "../angular.min.js", "docs-combined.js", "docs-data.js", "docs-combined.css", "syntaxhighlighter/syntaxhighlighter-combined.css", "img/texture_1.png", "img/yellow_bkgnd.jpg", "", "FALLBACK:", "/ /build/docs/offline.html", "", "# allow access to google analytics and twitter when we are online", "NETWORK:", "*"].join('\n'); }