underscore
Advanced tools
Comparing version 1.5.0 to 1.5.1
## How to contribute to Underscore.js | ||
* Before you open a ticket or send a pull request, [search](https://github.com/documentcloud/underscore/issues) for previous discussions about the same feature or issue. Add to the earlier ticket if you find one. | ||
* Before you open a ticket or send a pull request, [search](https://github.com/jashkenas/underscore/issues) for previous discussions about the same feature or issue. Add to the earlier ticket if you find one. | ||
* Before sending a pull request for a feature, be sure to have [tests](http://underscorejs.org/test/). | ||
* Use the same coding style as the rest of the [codebase](https://github.com/documentcloud/underscore/blob/master/underscore.js). | ||
* Use the same coding style as the rest of the [codebase](https://github.com/jashkenas/underscore/blob/master/underscore.js). | ||
* In your pull request, do not add documentation or re-build the minified `underscore-min.js` file. We'll do those things before cutting a new release. |
@@ -7,5 +7,5 @@ { | ||
"author" : "Jeremy Ashkenas <jeremy@documentcloud.org>", | ||
"repository" : {"type": "git", "url": "git://github.com/documentcloud/underscore.git"}, | ||
"repository" : {"type": "git", "url": "git://github.com/jashkenas/underscore.git"}, | ||
"main" : "underscore.js", | ||
"version" : "1.5.0", | ||
"version" : "1.5.1", | ||
"devDependencies": { | ||
@@ -12,0 +12,0 @@ "phantomjs": "1.9.0-1" |
@@ -18,3 +18,6 @@ __ | ||
Underscore is an open-sourced component of DocumentCloud: | ||
https://github.com/documentcloud | ||
Many thanks to our contributors: | ||
https://github.com/documentcloud/underscore/contributors | ||
https://github.com/jashkenas/underscore/contributors |
@@ -1,5 +0,4 @@ | ||
// Underscore.js 1.5.0 | ||
// Underscore.js 1.5.1 | ||
// http://underscorejs.org | ||
// (c) 2009-2011 Jeremy Ashkenas, DocumentCloud Inc. | ||
// (c) 2011-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors | ||
// (c) 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors | ||
// Underscore may be freely distributed under the MIT license. | ||
@@ -69,3 +68,3 @@ | ||
// Current version. | ||
_.VERSION = '1.5.0'; | ||
_.VERSION = '1.5.1'; | ||
@@ -499,12 +498,2 @@ // Collection Functions | ||
_.zip = function() { | ||
return _.unzip.apply(_, slice.call(arguments)); | ||
}; | ||
// The inverse operation to `_.zip`. If given an array of pairs it | ||
// returns an array of the paired elements split into two left and | ||
// right element arrays, if given an array of triples it returns a | ||
// three element array and so on. For example, `_.unzip` given | ||
// `[['a',1],['b',2],['c',3]]` returns the array | ||
// [['a','b','c'],[1,2,3]]. | ||
_.unzip = function() { | ||
var length = _.max(_.pluck(arguments, "length").concat(0)); | ||
@@ -667,3 +656,3 @@ var results = new Array(length); | ||
var later = function() { | ||
previous = new Date; | ||
previous = options.leading === false ? 0 : new Date; | ||
timeout = null; | ||
@@ -670,0 +659,0 @@ result = func.apply(context, args); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
23
69831
1111