mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-02 08:07:50 +00:00
Underscore 0.5.5, with a fix for OOP-wrapping in MobileSafari, thanks to terrcin.
This commit is contained in:
@@ -38,7 +38,7 @@
|
||||
propertyIsEnumerable = Object.prototype.propertyIsEnumerable;
|
||||
|
||||
// Current version.
|
||||
_.VERSION = '0.5.4';
|
||||
_.VERSION = '0.5.5';
|
||||
|
||||
// ------------------------ Collection Functions: ---------------------------
|
||||
|
||||
@@ -600,8 +600,9 @@
|
||||
_.each(_.functions(_), function(name) {
|
||||
var method = _[name];
|
||||
wrapper.prototype[name] = function() {
|
||||
unshift.call(arguments, this._wrapped);
|
||||
return result(method.apply(_, arguments), this._chain);
|
||||
var args = _.toArray(arguments);
|
||||
unshift.call(args, this._wrapped);
|
||||
return result(method.apply(_, args), this._chain);
|
||||
};
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user