Bump to v3.1.1.

This commit is contained in:
jdalton
2015-02-04 20:53:49 -08:00
committed by John-David Dalton
parent 27d65e814a
commit 971ec866a8
208 changed files with 1053 additions and 846 deletions

View File

@@ -1,5 +1,5 @@
Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/>
Based on Underscore.js 1.7.0, copyright 2009-2015 Jeremy Ashkenas,
Based on Underscore.js, copyright 2009-2015 Jeremy Ashkenas,
DocumentCloud and Investigative Reporters & Editors <http://underscorejs.org/>
Permission is hereby granted, free of charge, to any person obtaining

View File

@@ -1,4 +1,4 @@
# lodash.sortbyall v3.1.0
# lodash.sortbyall v3.1.1
The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodashs](https://lodash.com/) `_.sortByAll` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module.
@@ -17,4 +17,4 @@ In Node.js/io.js:
var sortByAll = require('lodash.sortbyall');
```
See the [documentation](https://lodash.com/docs#sortByAll) or [package source](https://github.com/lodash/lodash/blob/3.1.0-npm-packages/lodash.sortbyall) for more details.
See the [documentation](https://lodash.com/docs#sortByAll) or [package source](https://github.com/lodash/lodash/blob/3.1.1-npm-packages/lodash.sortbyall) for more details.

View File

@@ -1,5 +1,5 @@
/**
* lodash 3.1.0 (Custom Build) <https://lodash.com/>
* lodash 3.1.1 (Custom Build) <https://lodash.com/>
* Build: `lodash modern modularize exports="npm" -o ./`
* Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/>
* Based on Underscore.js 1.8.2 <http://underscorejs.org/LICENSE>
@@ -36,17 +36,24 @@ var baseEach = require('lodash._baseeach'),
* _.map(_.sortByAll(users, ['user', 'age']), _.values);
* // => [['barney', 26], ['barney', 36], ['fred', 30], ['fred', 40]]
*/
function sortByAll(collection) {
function sortByAll() {
var args = arguments,
collection = args[0],
guard = args[3],
index = 0,
length = args.length - 1;
if (collection == null) {
return [];
}
var args = arguments,
guard = args[3];
if (guard && isIterateeCall(args[1], args[2], guard)) {
args = [collection, args[1]];
var props = Array(length);
while (index < length) {
props[index] = args[++index];
}
return baseSortByOrder(collection, baseFlatten(args, false, false, 1), []);
if (guard && isIterateeCall(args[1], args[2], guard)) {
props = args[1];
}
return baseSortByOrder(collection, baseFlatten(props), []);
}
module.exports = sortByAll;

View File

@@ -1,6 +1,6 @@
{
"name": "lodash.sortbyall",
"version": "3.1.0",
"version": "3.1.1",
"description": "The modern build of lodashs `_.sortByAll` as a module.",
"homepage": "https://lodash.com/",
"icon": "https://lodash.com/icon.svg",