Rename Lo-Dash references to lodash. [ci skip]

This commit is contained in:
jdalton
2015-01-24 11:56:29 -08:00
parent 4c8f3bd392
commit 7bec7ba49d
13 changed files with 83 additions and 83 deletions

View File

@@ -1,6 +1,6 @@
# Contributing to Lo-Dash # Contributing to lodash
If youd like to contribute a feature or bug fix, you can [fork](https://help.github.com/articles/fork-a-repo/) Lo-Dash, commit your changes, & [send a pull request](https://help.github.com/articles/using-pull-requests/). If youd like to contribute a feature or bug fix, you can [fork](https://help.github.com/articles/fork-a-repo/) lodash, commit your changes, & [send a pull request](https://help.github.com/articles/using-pull-requests/).
Please make sure to [search the issue tracker](https://github.com/lodash/lodash/issues) first; your issue may have already been discussed or fixed in `master`. Please make sure to [search the issue tracker](https://github.com/lodash/lodash/issues) first; your issue may have already been discussed or fixed in `master`.
## Tests ## Tests
@@ -14,7 +14,7 @@ The [Backbone](http://backbonejs.org/) & [Underscore](http://underscorejs.org/)
## Contributor License Agreement ## Contributor License Agreement
Lo-Dash is a member of the [Dojo Foundation](http://dojofoundation.org/). lodash is a member of the [Dojo Foundation](http://dojofoundation.org/).
As such, we request that all contributors sign the Dojo Foundation [contributor license agreement](http://dojofoundation.org/about/claForm). As such, we request that all contributors sign the Dojo Foundation [contributor license agreement](http://dojofoundation.org/about/claForm).
For more information about CLAs, please check out Alex Russells excellent post, [“Why Do I Need to Sign This?”](http://infrequently.org/2008/06/why-do-i-need-to-sign-this/). For more information about CLAs, please check out Alex Russells excellent post, [“Why Do I Need to Sign This?”](http://infrequently.org/2008/06/why-do-i-need-to-sign-this/).

View File

@@ -1,6 +1,6 @@
# lodash v3.0.0-pre # lodash v3.0.0-pre
The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [Lo-Dash](https://lodash.com/) with packages for [Bower](http://bower.io/), [Component](http://component.github.io/), & [Volo](http://volojs.org/). The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash](https://lodash.com/) with packages for [Bower](http://bower.io/), [Component](http://component.github.io/), & [Volo](http://volojs.org/).
Generated using [lodash-cli](https://www.npmjs.com/package/lodash-cli): Generated using [lodash-cli](https://www.npmjs.com/package/lodash-cli):
```bash ```bash
@@ -9,7 +9,7 @@ $ lodash modern -o ./lodash.js
## Module formats ## Module formats
Lo-Dash is also available in a variety of other builds & module formats. lodash is also available in a variety of other builds & module formats.
* npm packages for [modern](https://www.npmjs.com/package/lodash), [compatibility](https://www.npmjs.com/package/lodash-compat), & [per method](https://www.npmjs.com/browse/keyword/lodash-modularized) builds * npm packages for [modern](https://www.npmjs.com/package/lodash), [compatibility](https://www.npmjs.com/package/lodash-compat), & [per method](https://www.npmjs.com/browse/keyword/lodash-modularized) builds
* AMD modules for [modern](https://github.com/lodash/lodash/tree/3.0.0-amd) & [compatibility](https://github.com/lodash/lodash-compat/tree/3.0.0-amd) builds * AMD modules for [modern](https://github.com/lodash/lodash/tree/3.0.0-amd) & [compatibility](https://github.com/lodash/lodash-compat/tree/3.0.0-amd) builds

View File

@@ -2,7 +2,7 @@
"name": "lodash", "name": "lodash",
"repo": "lodash/lodash", "repo": "lodash/lodash",
"version": "3.0.0", "version": "3.0.0",
"description": "The modern build of Lo-Dash.", "description": "The modern build of lodash.",
"license": "MIT", "license": "MIT",
"main": "lodash.js", "main": "lodash.js",
"keywords": ["stdlib", "util"], "keywords": ["stdlib", "util"],

View File

@@ -1,6 +1,6 @@
/** /**
* @license * @license
* Lo-Dash 3.0.0-pre <https://lodash.com/> * lodash 3.0.0-pre <https://lodash.com/>
* Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/> * Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/>
* Based on Underscore.js 1.7.0 <http://underscorejs.org/LICENSE> * Based on Underscore.js 1.7.0 <http://underscorejs.org/LICENSE>
* Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
@@ -849,7 +849,7 @@
* Chaining is supported in custom builds as long as the `_#value` method is * Chaining is supported in custom builds as long as the `_#value` method is
* directly or indirectly included in the build. * directly or indirectly included in the build.
* *
* In addition to Lo-Dash methods, wrappers also have the following `Array` methods: * In addition to lodash methods, wrappers also have the following `Array` methods:
* `concat`, `join`, `pop`, `push`, `reverse`, `shift`, `slice`, `sort`, `splice`, * `concat`, `join`, `pop`, `push`, `reverse`, `shift`, `slice`, `sort`, `splice`,
* and `unshift` * and `unshift`
* *
@@ -1103,7 +1103,7 @@
}(0, 0)); }(0, 0));
/** /**
* By default, the template delimiters used by Lo-Dash are like those in * By default, the template delimiters used by lodash are like those in
* embedded Ruby (ERB). Change the following template settings to use * embedded Ruby (ERB). Change the following template settings to use
* alternative delimiters. * alternative delimiters.
* *
@@ -8818,7 +8818,7 @@
while (++index < length) { while (++index < length) {
result[index] = (index + ''); result[index] = (index + '');
} }
// Lo-Dash skips the `constructor` property when it infers it is iterating // lodash skips the `constructor` property when it infers it is iterating
// over a `prototype` object because IE < 9 can't set the `[[Enumerable]]` // over a `prototype` object because IE < 9 can't set the `[[Enumerable]]`
// attribute of an existing property and the `constructor` property of a // attribute of an existing property and the `constructor` property of a
// prototype defaults to non-enumerable. // prototype defaults to non-enumerable.
@@ -9683,7 +9683,7 @@
* for more details. * for more details.
* *
* For more information on precompiling templates see * For more information on precompiling templates see
* [Lo-Dash's custom builds documentation](https://lodash.com/custom-builds). * [lodash's custom builds documentation](https://lodash.com/custom-builds).
* *
* For more information on Chrome extension sandboxes see * For more information on Chrome extension sandboxes see
* [Chrome's extensions documentation](https://developer.chrome.com/extensions/sandboxingEval). * [Chrome's extensions documentation](https://developer.chrome.com/extensions/sandboxingEval).
@@ -10986,13 +10986,13 @@
/*--------------------------------------------------------------------------*/ /*--------------------------------------------------------------------------*/
// Export Lo-Dash. // Export lodash.
var _ = runInContext(); var _ = runInContext();
// Some AMD build optimizers like r.js check for condition patterns like the following: // Some AMD build optimizers like r.js check for condition patterns like the following:
if (typeof define == 'function' && typeof define.amd == 'object' && define.amd) { if (typeof define == 'function' && typeof define.amd == 'object' && define.amd) {
// Expose Lo-Dash to the global object when an AMD loader is present to avoid // Expose lodash to the global object when an AMD loader is present to avoid
// errors in cases where Lo-Dash is loaded by a script tag and not intended // errors in cases where lodash is loaded by a script tag and not intended
// as an AMD module. See http://requirejs.org/docs/errors.html#mismatch. // as an AMD module. See http://requirejs.org/docs/errors.html#mismatch.
root._ = _; root._ = _;

View File

@@ -1,10 +1,10 @@
;(function(window) { ;(function(window) {
'use strict'; 'use strict';
/** The base path of the Lo-Dash builds. */ /** The base path of the lodash builds. */
var basePath = '../'; var basePath = '../';
/** The Lo-Dash build to load. */ /** The lodash build to load. */
var build = (build = /build=([^&]+)/.exec(location.search)) && decodeURIComponent(build[1]); var build = (build = /build=([^&]+)/.exec(location.search)) && decodeURIComponent(build[1]);
/** The other library to load. */ /** The other library to load. */
@@ -58,10 +58,10 @@
span1.innerHTML = span1.innerHTML =
'<label for="perf-build">Build: </label>' + '<label for="perf-build">Build: </label>' +
'<select id="perf-build">' + '<select id="perf-build">' +
'<option value="lodash-compat">Lo-Dash (compat)</option>' + '<option value="lodash-compat">lodash (compat)</option>' +
'<option value="lodash-modern">Lo-Dash (modern)</option>' + '<option value="lodash-modern">lodash (modern)</option>' +
'<option value="lodash-custom-dev">Lo-Dash (custom development)</option>' + '<option value="lodash-custom-dev">lodash (custom development)</option>' +
'<option value="lodash-custom">Lo-Dash (custom production)</option>' + '<option value="lodash-custom">lodash (custom production)</option>' +
'</select>'; '</select>';
var span2 = document.createElement('span'); var span2 = document.createElement('span');
@@ -71,10 +71,10 @@
'<select id="perf-other">' + '<select id="perf-other">' +
'<option value="underscore-dev">Underscore (development)</option>' + '<option value="underscore-dev">Underscore (development)</option>' +
'<option value="underscore">Underscore (production)</option>' + '<option value="underscore">Underscore (production)</option>' +
'<option value="lodash-compat">Lo-Dash (compat)</option>' + '<option value="lodash-compat">lodash (compat)</option>' +
'<option value="lodash-modern">Lo-Dash (modern)</option>' + '<option value="lodash-modern">lodash (modern)</option>' +
'<option value="lodash-custom-dev">Lo-Dash (custom development)</option>' + '<option value="lodash-custom-dev">lodash (custom development)</option>' +
'<option value="lodash-custom">Lo-Dash (custom production)</option>' + '<option value="lodash-custom">lodash (custom production)</option>' +
'</select>'; '</select>';
var buildList = span1.lastChild, var buildList = span1.lastChild,
@@ -112,7 +112,7 @@
addListener(otherList, 'change', eventHandler); addListener(otherList, 'change', eventHandler);
}); });
// The Lo-Dash build file path. // The lodash build file path.
ui.buildPath = (function() { ui.buildPath = (function() {
var result; var result;
switch (build) { switch (build) {

View File

@@ -2,7 +2,7 @@
<html lang="en"> <html lang="en">
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<title>Lo-Dash Performance Suite</title> <title>lodash Performance Suite</title>
<style> <style>
html, body { html, body {
margin: 0; margin: 0;

View File

@@ -21,7 +21,7 @@
/** Add `console.log()` support for Narwhal, Rhino, and RingoJS. */ /** Add `console.log()` support for Narwhal, Rhino, and RingoJS. */
var console = root.console || (root.console = { 'log': root.print }); var console = root.console || (root.console = { 'log': root.print });
/** The file path of the Lo-Dash file to test. */ /** The file path of the lodash file to test. */
var filePath = (function() { var filePath = (function() {
var min = 0, var min = 0,
result = []; result = [];
@@ -67,7 +67,7 @@
'otherPath': 'underscore' 'otherPath': 'underscore'
}); });
/** The Lo-Dash build basename. */ /** The lodash build basename. */
var buildName = root.buildName = basename(ui.buildPath, '.js'); var buildName = root.buildName = basename(ui.buildPath, '.js');
/** The other library basename. */ /** The other library basename. */
@@ -96,7 +96,7 @@
? require ? require
: (isJava && root.load) || noop; : (isJava && root.load) || noop;
/** Load Lo-Dash. */ /** Load lodash. */
var lodash = root.lodash || (root.lodash = ( var lodash = root.lodash || (root.lodash = (
lodash = load(filePath) || root._, lodash = load(filePath) || root._,
lodash = lodash._ || lodash, lodash = lodash._ || lodash,

View File

@@ -1,10 +1,10 @@
;(function(window) { ;(function(window) {
'use strict'; 'use strict';
/** The base path of the Lo-Dash builds. */ /** The base path of the lodash builds. */
var basePath = '../'; var basePath = '../';
/** The Lo-Dash build to load. */ /** The lodash build to load. */
var build = (build = /build=([^&]+)/.exec(location.search)) && decodeURIComponent(build[1]); var build = (build = /build=([^&]+)/.exec(location.search)) && decodeURIComponent(build[1]);
/** The module loader to use. */ /** The module loader to use. */
@@ -95,12 +95,12 @@
span1.innerHTML = span1.innerHTML =
'<label for="qunit-build">Build: </label>' + '<label for="qunit-build">Build: </label>' +
'<select id="qunit-build">' + '<select id="qunit-build">' +
'<option value="lodash-compat-dev">Lo-Dash (compat development)</option>' + '<option value="lodash-compat-dev">lodash (compat development)</option>' +
'<option value="lodash-compat">Lo-Dash (compat production)</option>' + '<option value="lodash-compat">lodash (compat production)</option>' +
'<option value="lodash-modern-dev">Lo-Dash (modern development)</option>' + '<option value="lodash-modern-dev">lodash (modern development)</option>' +
'<option value="lodash-modern">Lo-Dash (modern production)</option>' + '<option value="lodash-modern">lodash (modern production)</option>' +
'<option value="lodash-custom-dev">Lo-Dash (custom development)</option>' + '<option value="lodash-custom-dev">lodash (custom development)</option>' +
'<option value="lodash-custom">Lo-Dash (custom production)</option>' + '<option value="lodash-custom">lodash (custom production)</option>' +
'</select>'; '</select>';
var span2 = document.createElement('span'); var span2 = document.createElement('span');
@@ -133,10 +133,10 @@
// Used to indicate testing in Sauce Labs' automated test cloud. // Used to indicate testing in Sauce Labs' automated test cloud.
ui.isSauceLabs = location.port == '9001'; ui.isSauceLabs = location.port == '9001';
// Used to indicate that Lo-Dash is in strict mode. // Used to indicate that lodash is in strict mode.
ui.isStrict = /\bes6?\b/.test([location.pathname, location.search]); ui.isStrict = /\bes6?\b/.test([location.pathname, location.search]);
// The Lo-Dash build file path. // The lodash build file path.
ui.buildPath = (function() { ui.buildPath = (function() {
var result; var result;
switch (build) { switch (build) {

View File

@@ -49,7 +49,7 @@
document.getElementById('qunit-urlconfig-hidepassed').checked = true; document.getElementById('qunit-urlconfig-hidepassed').checked = true;
}); });
// load Lo-Dash // load lodash
if (!ui.isModularize) { if (!ui.isModularize) {
document.write('<script src="' + ui.buildPath + '"><\/script>'); document.write('<script src="' + ui.buildPath + '"><\/script>');
} }

View File

@@ -2,7 +2,7 @@
<html lang="en"> <html lang="en">
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<title>Lo-Dash Test Suite</title> <title>lodash Test Suite</title>
<link rel="stylesheet" href="../node_modules/qunitjs/qunit/qunit.css"> <link rel="stylesheet" href="../node_modules/qunitjs/qunit/qunit.css">
<style> <style>
#exports { #exports {
@@ -247,14 +247,14 @@
delete objectProto._propertyIsEnumerable; delete objectProto._propertyIsEnumerable;
} }
// load Lo-Dash and expose it to the bad extensions/shims // load lodash and expose it to the bad extensions/shims
if (!ui.isModularize) { if (!ui.isModularize) {
addBizarroMethods(); addBizarroMethods();
document.write('<script src="' + ui.buildPath + '"><\/script>'); document.write('<script src="' + ui.buildPath + '"><\/script>');
} }
</script> </script>
<script> <script>
// store Lo-Dash to test for bad extensions/shims // store lodash to test for bad extensions/shims
if (!ui.isModularize) { if (!ui.isModularize) {
var lodashBizarro = window._; var lodashBizarro = window._;
window._ = undefined; window._ = undefined;

View File

@@ -24,7 +24,7 @@
/** Used as a reference to the global object. */ /** Used as a reference to the global object. */
var root = (typeof global == 'object' && global) || this; var root = (typeof global == 'object' && global) || this;
/** Used to store Lo-Dash to test for bad extensions/shims. */ /** Used to store lodash to test for bad extensions/shims. */
var lodashBizarro = root.lodashBizarro; var lodashBizarro = root.lodashBizarro;
/** Used for native method references. */ /** Used for native method references. */
@@ -64,7 +64,7 @@
return result; return result;
}()); }());
/** The file path of the Lo-Dash file to test. */ /** The file path of the lodash file to test. */
var filePath = (function() { var filePath = (function() {
var min = 0, var min = 0,
result = []; result = [];
@@ -104,7 +104,7 @@
'urlParams': {} 'urlParams': {}
}); });
/** The basename of the Lo-Dash file to test. */ /** The basename of the lodash file to test. */
var basename = /[\w.-]+$/.exec(filePath)[0]; var basename = /[\w.-]+$/.exec(filePath)[0];
/** Detect if in a Java environment. */ /** Detect if in a Java environment. */
@@ -122,7 +122,7 @@
/** Detect if running in Rhino. */ /** Detect if running in Rhino. */
var isRhino = isJava && typeof global == 'function' && global().Array === root.Array; var isRhino = isJava && typeof global == 'function' && global().Array === root.Array;
/** Detect if Lo-Dash is in strict mode. */ /** Detect if lodash is in strict mode. */
var isStrict = ui.isStrict; var isStrict = ui.isStrict;
/** Used to test Web Workers. */ /** Used to test Web Workers. */
@@ -517,10 +517,10 @@
// Fake `WinRTError`. // Fake `WinRTError`.
setProperty(root, 'WinRTError', Error); setProperty(root, 'WinRTError', Error);
// Clear cache so Lo-Dash can be reloaded. // Clear cache so lodash can be reloaded.
emptyObject(require.cache); emptyObject(require.cache);
// Load Lo-Dash and expose it to the bad extensions/shims. // Load lodash and expose it to the bad extensions/shims.
lodashBizarro = (lodashBizarro = require(filePath))._ || lodashBizarro['default'] || lodashBizarro; lodashBizarro = (lodashBizarro = require(filePath))._ || lodashBizarro['default'] || lodashBizarro;
// Restore native methods. // Restore native methods.

View File

@@ -71,11 +71,11 @@
* http://www.itl.nist.gov/div898/handbook/eda/section3/eda3672.htm * http://www.itl.nist.gov/div898/handbook/eda/section3/eda3672.htm
*/ */
var tTable = { var tTable = {
'1': 12.706,'2': 4.303, '3': 3.182, '4': 2.776, '5': 2.571, '6': 2.447, '1': 12.706, '2': 4.303, '3': 3.182, '4': 2.776, '5': 2.571, '6': 2.447,
'7': 2.365, '8': 2.306, '9': 2.262, '10': 2.228, '11': 2.201, '12': 2.179, '7': 2.365, '8': 2.306, '9': 2.262, '10': 2.228, '11': 2.201, '12': 2.179,
'13': 2.16, '14': 2.145, '15': 2.131, '16': 2.12, '17': 2.11, '18': 2.101, '13': 2.16, '14': 2.145, '15': 2.131, '16': 2.12, '17': 2.11, '18': 2.101,
'19': 2.093, '20': 2.086, '21': 2.08, '22': 2.074, '23': 2.069, '24': 2.064, '19': 2.093, '20': 2.086, '21': 2.08, '22': 2.074, '23': 2.069, '24': 2.064,
'25': 2.06, '26': 2.056, '27': 2.052, '28': 2.048, '29': 2.045, '30': 2.042, '25': 2.06, '26': 2.056, '27': 2.052, '28': 2.048, '29': 2.045, '30': 2.042,
'infinity': 1.96 'infinity': 1.96
}; };
@@ -123,7 +123,7 @@
* @returns {Function} Returns a new `Benchmark` function. * @returns {Function} Returns a new `Benchmark` function.
*/ */
function runInContext(context) { function runInContext(context) {
// exit early if unable to acquire Lo-Dash // exit early if unable to acquire lodash
var _ = context && context._ || req('lodash') || root._; var _ = context && context._ || req('lodash') || root._;
if (!_) { if (!_) {
Benchmark.runInContext = runInContext; Benchmark.runInContext = runInContext;
@@ -257,31 +257,31 @@
*/ */
var timer = { var timer = {
/** /**
* The timer namespace object or constructor. * The timer namespace object or constructor.
* *
* @private * @private
* @memberOf timer * @memberOf timer
* @type {Function|Object} * @type {Function|Object}
*/ */
'ns': Date, 'ns': Date,
/** /**
* Starts the deferred timer. * Starts the deferred timer.
* *
* @private * @private
* @memberOf timer * @memberOf timer
* @param {Object} deferred The deferred instance. * @param {Object} deferred The deferred instance.
*/ */
'start': null, // lazy defined in `clock()` 'start': null, // lazy defined in `clock()`
/** /**
* Stops the deferred timer. * Stops the deferred timer.
* *
* @private * @private
* @memberOf timer * @memberOf timer
* @param {Object} deferred The deferred instance. * @param {Object} deferred The deferred instance.
*/ */
'stop': null // lazy defined in `clock()` 'stop': null // lazy defined in `clock()`
}; };
@@ -290,8 +290,8 @@
/** /**
* The Benchmark constructor. * The Benchmark constructor.
* *
* Note: The Benchmark constructor exposes a handful of Lo-Dash methods to * Note: The Benchmark constructor exposes a handful of lodash methods to
* make working with arrays, collections, and objects easier. The Lo-Dash * make working with arrays, collections, and objects easier. The lodash
* methods are: * methods are:
* [`each/forEach`](https://lodash.com/docs#forEach), [`forOwn`](https://lodash.com/docs#forOwn), * [`each/forEach`](https://lodash.com/docs#forEach), [`forOwn`](https://lodash.com/docs#forOwn),
* [`has`](https://lodash.com/docs#has), [`indexOf`](https://lodash.com/docs#indexOf), * [`has`](https://lodash.com/docs#has), [`indexOf`](https://lodash.com/docs#indexOf),
@@ -441,8 +441,8 @@
/** /**
* The Suite constructor. * The Suite constructor.
* *
* Note: Each Suite instance has a handful of wrapped Lo-Dash methods to * Note: Each Suite instance has a handful of wrapped lodash methods to
* make working with Suites easier. The wrapped Lo-Dash methods are: * make working with Suites easier. The wrapped lodash methods are:
* [`each/forEach`](https://lodash.com/docs#forEach), [`indexOf`](https://lodash.com/docs#indexOf), * [`each/forEach`](https://lodash.com/docs#forEach), [`indexOf`](https://lodash.com/docs#indexOf),
* [`map`](https://lodash.com/docs#map), [`pluck`](https://lodash.com/docs#pluck), * [`map`](https://lodash.com/docs#map), [`pluck`](https://lodash.com/docs#pluck),
* and [`reduce`](https://lodash.com/docs#reduce) * and [`reduce`](https://lodash.com/docs#reduce)
@@ -2354,7 +2354,7 @@
'support': support 'support': support
}); });
// Add Lo-Dash methods to Benchmark // Add lodash methods to Benchmark
_.each(['each', 'forEach', 'forOwn', 'has', 'indexOf', 'map', 'pluck', 'reduce'], function(methodName) { _.each(['each', 'forEach', 'forOwn', 'has', 'indexOf', 'map', 'pluck', 'reduce'], function(methodName) {
Benchmark[methodName] = _[methodName]; Benchmark[methodName] = _[methodName];
}); });
@@ -2802,7 +2802,7 @@
/*------------------------------------------------------------------------*/ /*------------------------------------------------------------------------*/
// add Lo-Dash methods as Suite methods // add lodash methods as Suite methods
_.each(['each', 'forEach', 'indexOf', 'map', 'pluck', 'reduce'], function(methodName) { _.each(['each', 'forEach', 'indexOf', 'map', 'pluck', 'reduce'], function(methodName) {
var func = _[methodName]; var func = _[methodName];
Suite.prototype[methodName] = function() { Suite.prototype[methodName] = function() {