Cleanup _.template comments.

Former-commit-id: cff1c86d3a7e9c5ee32e00762ce522690726ef09
This commit is contained in:
John-David Dalton
2013-02-19 08:07:34 -08:00
parent 088c621862
commit b8f39cbfdf
4 changed files with 16 additions and 19 deletions

View File

@@ -4684,7 +4684,7 @@
interpolate = options.interpolate || reNoMatch,
source = "__p += '";
// compile regexp to match each delimiter
// compile the regexp to match each delimiter
var reDelimiters = RegExp(
(options.escape || reNoMatch).source + '|' +
interpolate.source + '|' +
@@ -4718,9 +4718,8 @@
source += "';\n";
// if `variable` is not specified and the template contains "evaluate"
// delimiters, wrap a with-statement around the generated code to add the
// data object to the top of the scope chain
// if `variable` is not specified, wrap a with-statement around the generated
// code to add the data object to the top of the scope chain
var variable = options.variable,
hasVariable = variable;

7
dist/lodash.js vendored
View File

@@ -4534,7 +4534,7 @@
interpolate = options.interpolate || reNoMatch,
source = "__p += '";
// compile regexp to match each delimiter
// compile the regexp to match each delimiter
var reDelimiters = RegExp(
(options.escape || reNoMatch).source + '|' +
interpolate.source + '|' +
@@ -4568,9 +4568,8 @@
source += "';\n";
// if `variable` is not specified and the template contains "evaluate"
// delimiters, wrap a with-statement around the generated code to add the
// data object to the top of the scope chain
// if `variable` is not specified, wrap a with-statement around the generated
// code to add the data object to the top of the scope chain
var variable = options.variable,
hasVariable = variable;