diff options
author | 2013-06-09 16:08:59 +0200 | |
---|---|---|
committer | 2013-06-09 16:08:59 +0200 | |
commit | ecfef4a560dece9dd911017efdfc63fcc04bedfc (patch) | |
tree | 42d00f155c47a8a80e3a023c841a59f87b73885c /module/web/app/scripts/utils/initHB.js | |
parent | restructured webui to single-page-app, removed jinja (diff) | |
download | pyload-ecfef4a560dece9dd911017efdfc63fcc04bedfc.tar.xz |
adapted to jshint config
Diffstat (limited to 'module/web/app/scripts/utils/initHB.js')
-rw-r--r-- | module/web/app/scripts/utils/initHB.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/module/web/app/scripts/utils/initHB.js b/module/web/app/scripts/utils/initHB.js index c977f063d..d7f582521 100644 --- a/module/web/app/scripts/utils/initHB.js +++ b/module/web/app/scripts/utils/initHB.js @@ -2,6 +2,7 @@ define(['underscore', 'handlebars', 'helpers/formatSize', 'helpers/fileHelper', 'helpers/formatTime'], function(_, Handlebars) { + 'use strict'; // Replace with own lexer rules compiled from handlebars.l Handlebars.Parser.lexer.rules = [/^(?:[^\x00]*?(?=(<%)))/, /^(?:[^\x00]+)/, /^(?:[^\x00]{2,}?(?=(\{\{|$)))/, /^(?:\{\{>)/, /^(?:<%=)/, /^(?:<%\/)/, /^(?:\{\{\^)/, /^(?:<%\s*else\b)/, /^(?:\{<%%)/, /^(?:\{\{&)/, /^(?:<%![\s\S]*?%>)/, /^(?:<%)/, /^(?:=)/, /^(?:\.(?=[%} ]))/, /^(?:\.\.)/, /^(?:[\/.])/, /^(?:\s+)/, /^(?:%%>)/, /^(?:%>)/, /^(?:"(\\["]|[^"])*")/, /^(?:'(\\[']|[^'])*')/, /^(?:@[a-zA-Z]+)/, /^(?:true(?=[%}\s]))/, /^(?:false(?=[%}\s]))/, /^(?:[0-9]+(?=[%}\s]))/, /^(?:[a-zA-Z0-9_$-]+(?=[=%}\s\/.]))/, /^(?:\[[^\]]*\])/, /^(?:.)/, /^(?:$)/]; _.compile = Handlebars.compile; |