From ac5e92c879cffe5631772fbc0eeb691b39378777 Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Wed, 13 Nov 2013 00:20:17 -0800 Subject: [PATCH] Update doc whitespace and `_.template` doc example. [ci skip] --- dist/lodash.compat.js | 10 +++++----- dist/lodash.js | 10 +++++----- dist/lodash.underscore.js | 10 +++++----- doc/README.md | 8 ++++---- lodash.js | 10 +++++----- 5 files changed, 24 insertions(+), 24 deletions(-) diff --git a/dist/lodash.compat.js b/dist/lodash.compat.js index 9117a0a83..392d3f0db 100644 --- a/dist/lodash.compat.js +++ b/dist/lodash.compat.js @@ -2505,7 +2505,7 @@ * @returns {Object} Returns the created inverted object. * @example * - * _.invert({ 'first': 'fred', 'second': 'barney' }); + * _.invert({ 'first': 'fred', 'second': 'barney' }); * // => { 'fred': 'first', 'barney': 'second' } */ function invert(object) { @@ -5409,8 +5409,8 @@ * @example * * var view = { - * 'label': 'docs', - * 'onClick': function() { console.log('clicked ' + this.label); } + * 'label': 'docs', + * 'onClick': function() { console.log('clicked ' + this.label); } * }; * * _.bindAll(view); @@ -6335,8 +6335,8 @@ * // => 'hello mustache!' * * // using the `imports` option to import jQuery - * var list = '<% $.each(people, function(name) { %>
  • <%- name %>
  • <% }); %>'; - * _.template(list, { 'people': ['fred', 'barney'] }, { 'imports': { '$': jQuery } }); + * var list = '<% jq.each(people, function(name) { %>
  • <%- name %>
  • <% }); %>'; + * _.template(list, { 'people': ['fred', 'barney'] }, { 'imports': { 'jq': jQuery } }); * // => '
  • fred
  • barney
  • ' * * // using the `sourceURL` option to specify a custom sourceURL for the template diff --git a/dist/lodash.js b/dist/lodash.js index 00aa8d50b..5026d40a9 100644 --- a/dist/lodash.js +++ b/dist/lodash.js @@ -2172,7 +2172,7 @@ * @returns {Object} Returns the created inverted object. * @example * - * _.invert({ 'first': 'fred', 'second': 'barney' }); + * _.invert({ 'first': 'fred', 'second': 'barney' }); * // => { 'fred': 'first', 'barney': 'second' } */ function invert(object) { @@ -5070,8 +5070,8 @@ * @example * * var view = { - * 'label': 'docs', - * 'onClick': function() { console.log('clicked ' + this.label); } + * 'label': 'docs', + * 'onClick': function() { console.log('clicked ' + this.label); } * }; * * _.bindAll(view); @@ -5996,8 +5996,8 @@ * // => 'hello mustache!' * * // using the `imports` option to import jQuery - * var list = '<% $.each(people, function(name) { %>
  • <%- name %>
  • <% }); %>'; - * _.template(list, { 'people': ['fred', 'barney'] }, { 'imports': { '$': jQuery } }); + * var list = '<% jq.each(people, function(name) { %>
  • <%- name %>
  • <% }); %>'; + * _.template(list, { 'people': ['fred', 'barney'] }, { 'imports': { 'jq': jQuery } }); * // => '
  • fred
  • barney
  • ' * * // using the `sourceURL` option to specify a custom sourceURL for the template diff --git a/dist/lodash.underscore.js b/dist/lodash.underscore.js index cb6c1898e..cc8d5685c 100644 --- a/dist/lodash.underscore.js +++ b/dist/lodash.underscore.js @@ -1237,7 +1237,7 @@ * @returns {Object} Returns the created inverted object. * @example * - * _.invert({ 'first': 'fred', 'second': 'barney' }); + * _.invert({ 'first': 'fred', 'second': 'barney' }); * // => { 'fred': 'first', 'barney': 'second' } */ function invert(object) { @@ -3681,8 +3681,8 @@ * @example * * var view = { - * 'label': 'docs', - * 'onClick': function() { console.log('clicked ' + this.label); } + * 'label': 'docs', + * 'onClick': function() { console.log('clicked ' + this.label); } * }; * * _.bindAll(view); @@ -4423,8 +4423,8 @@ * // => 'hello mustache!' * * // using the `imports` option to import jQuery - * var list = '<% $.each(people, function(name) { %>
  • <%- name %>
  • <% }); %>'; - * _.template(list, { 'people': ['fred', 'barney'] }, { 'imports': { '$': jQuery } }); + * var list = '<% jq.each(people, function(name) { %>
  • <%- name %>
  • <% }); %>'; + * _.template(list, { 'people': ['fred', 'barney'] }, { 'imports': { 'jq': jQuery } }); * // => '
  • fred
  • barney
  • ' * * // using the `sourceURL` option to specify a custom sourceURL for the template diff --git a/doc/README.md b/doc/README.md index 7cfe6570d..5ef59b1cd 100644 --- a/doc/README.md +++ b/doc/README.md @@ -2254,8 +2254,8 @@ Binds methods of an object to the object itself, overwriting the existing method #### Example ```js var view = { - 'label': 'docs', - 'onClick': function() { console.log('clicked ' + this.label); } + 'label': 'docs', + 'onClick': function() { console.log('clicked ' + this.label); } }; _.bindAll(view); @@ -4237,8 +4237,8 @@ _.template('hello {{ name }}!', { 'name': 'mustache' }); // => 'hello mustache!' // using the `imports` option to import jQuery -var list = '<% $.each(people, function(name) { %>
  • <%- name %>
  • <% }); %>'; -_.template(list, { 'people': ['fred', 'barney'] }, { 'imports': { '$': jQuery } }); +var list = '<% jq.each(people, function(name) { %>
  • <%- name %>
  • <% }); %>'; +_.template(list, { 'people': ['fred', 'barney'] }, { 'imports': { 'jq': jQuery } }); // => '
  • fred
  • barney
  • ' // using the `sourceURL` option to specify a custom sourceURL for the template diff --git a/lodash.js b/lodash.js index a715a2ab5..41b1a966a 100644 --- a/lodash.js +++ b/lodash.js @@ -2523,7 +2523,7 @@ * @returns {Object} Returns the created inverted object. * @example * - * _.invert({ 'first': 'fred', 'second': 'barney' }); + * _.invert({ 'first': 'fred', 'second': 'barney' }); * // => { 'fred': 'first', 'barney': 'second' } */ function invert(object) { @@ -5427,8 +5427,8 @@ * @example * * var view = { - * 'label': 'docs', - * 'onClick': function() { console.log('clicked ' + this.label); } + * 'label': 'docs', + * 'onClick': function() { console.log('clicked ' + this.label); } * }; * * _.bindAll(view); @@ -6353,8 +6353,8 @@ * // => 'hello mustache!' * * // using the `imports` option to import jQuery - * var list = '<% $.each(people, function(name) { %>
  • <%- name %>
  • <% }); %>'; - * _.template(list, { 'people': ['fred', 'barney'] }, { 'imports': { '$': jQuery } }); + * var list = '<% jq.each(people, function(name) { %>
  • <%- name %>
  • <% }); %>'; + * _.template(list, { 'people': ['fred', 'barney'] }, { 'imports': { 'jq': jQuery } }); * // => '
  • fred
  • barney
  • ' * * // using the `sourceURL` option to specify a custom sourceURL for the template