underscore-source 0.5.4 → 0.5.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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
|
|