underscore-source 0.5.4 → 0.5.5
Sign up to get free protection for your applications and to get access to all the features.
@@ -38,7 +38,7 @@
|
|
38
38
|
propertyIsEnumerable = Object.prototype.propertyIsEnumerable;
|
39
39
|
|
40
40
|
// Current version.
|
41
|
-
_.VERSION = '0.5.
|
41
|
+
_.VERSION = '0.5.5';
|
42
42
|
|
43
43
|
// ------------------------ Collection Functions: ---------------------------
|
44
44
|
|
@@ -600,8 +600,9 @@
|
|
600
600
|
_.each(_.functions(_), function(name) {
|
601
601
|
var method = _[name];
|
602
602
|
wrapper.prototype[name] = function() {
|
603
|
-
|
604
|
-
|
603
|
+
var args = _.toArray(arguments);
|
604
|
+
unshift.call(args, this._wrapped);
|
605
|
+
return result(method.apply(_, args), this._chain);
|
605
606
|
};
|
606
607
|
});
|
607
608
|
|