diff --git a/lodash.js b/lodash.js index cd2117d8a..d9b2c0b96 100644 --- a/lodash.js +++ b/lodash.js @@ -7695,12 +7695,10 @@ /** * Creates a compiled template function that can interpolate data properties - * in "interpolate" delimiters, HTML-escaped interpolated data properties in - * "escape" delimiters, and execute JavaScript in "evaluate" delimiters. If - * a data object is provided the interpolated template string is returned. - * Data properties may be accessed as free variables in the template. If a - * settings object is provided it overrides `_.templateSettings` for the - * template. + * in "interpolate" delimiters, HTML-escape interpolated data properties in + * "escape" delimiters, and execute JavaScript in "evaluate" delimiters. Data + * properties may be accessed as free variables in the template. If a setting + * object is provided it overrides `_.templateSettings` for the template. * * Note: In the development build, `_.template` utilizes sourceURLs for easier debugging. * See the [HTML5 Rocks article on sourcemaps](http://www.html5rocks.com/en/tutorials/developertools/sourcemaps/#toc-sourceurl) @@ -7716,7 +7714,6 @@ * @memberOf _ * @category Strings * @param {string} [string=''] The template string. - * @param {Object} [data] The data object used to populate the template string. * @param {Object} [options] The options object. * @param {RegExp} [options.escape] The HTML "escape" delimiter. * @param {RegExp} [options.evaluate] The "evaluate" delimiter. @@ -7724,8 +7721,7 @@ * @param {RegExp} [options.interpolate] The "interpolate" delimiter. * @param {string} [options.sourceURL] The sourceURL of the template's compiled source. * @param {string} [options.variable] The data object variable name. - * @returns {Function|string} Returns the interpolated string if a data object - * is provided, else the compiled template function. + * @returns {Function} Returns the compiled template function. * @example * * // using the "interpolate" delimiter to create a compiled template @@ -7734,39 +7730,44 @@ * // => 'hello fred' * * // using the HTML "escape" delimiter to escape data property values - * _.template('<%- value %>', { 'value': '