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.
@@ -1,5 +1,5 @@
1
1
  module Underscore
2
2
  module Source
3
- VERSION = "0.5.4"
3
+ VERSION = "0.5.5"
4
4
  end
5
5
  end
@@ -38,7 +38,7 @@
38
38
  propertyIsEnumerable = Object.prototype.propertyIsEnumerable;
39
39
 
40
40
  // Current version.
41
- _.VERSION = '0.5.4';
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
- unshift.call(arguments, this._wrapped);
604
- return result(method.apply(_, arguments), this._chain);
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
 
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: underscore-source
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.5.4
5
+ version: 0.5.5
6
6
  platform: ruby
7
7
  authors:
8
8
  - Daniel X. Moore