Add note about Chrome extensions to _.template.

Former-commit-id: 97b5220ebc3dbbd30b0e52f6c804b449b8d451ca
This commit is contained in:
John-David Dalton
2012-08-06 08:03:54 -07:00
parent a35139bb61
commit 4d85a79fd1

View File

@@ -364,8 +364,7 @@
' var length = iteratee.length; index = -1;\n' +
' if (length && isArguments(iteratee)) {\n' +
' while (++index < length) {\n' +
' value = iteratee[index];\n' +
' index += \'\';\n' +
' value = iteratee[index += \'\'];\n' +
' <%= objectBranch.inLoop %>\n' +
' }\n' +
' } else {' +
@@ -1446,6 +1445,7 @@
/**
* Checks if `value` is a finite number.
*
* Note: This is not the same as native `isFinite`, which will return true for
* booleans and other values. See http://es5.github.com/#x15.1.2.5.
*
@@ -1512,6 +1512,7 @@
/**
* Checks if `value` is `NaN`.
*
* Note: This is not the same as native `isNaN`, which will return true for
* `undefined` and other values. See http://es5.github.com/#x15.1.2.4.
*
@@ -3562,6 +3563,7 @@
/**
* This function returns the first argument passed to it.
*
* Note: It is used throughout Lo-Dash as a default callback.
*
* @static
@@ -3678,6 +3680,9 @@
* A micro-templating method that handles arbitrary delimiters, preserves
* whitespace, and correctly escapes quotes within interpolated code.
*
* Note: For Chrome extensions use the `lodash csp` build and see
* http://code.google.com/chrome/extensions/trunk/sandboxingEval.html
*
* @static
* @memberOf _
* @category Utilities