underscore-source 1.0.1 → 1.0.2

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 = "1.0.1"
3
+ VERSION = "1.0.2"
4
4
  end
5
5
  end
@@ -55,7 +55,7 @@
55
55
  root._ = _;
56
56
 
57
57
  // Current version.
58
- _.VERSION = '1.0.1';
58
+ _.VERSION = '1.0.2';
59
59
 
60
60
  // ------------------------ Collection Functions: ---------------------------
61
61
 
@@ -504,12 +504,12 @@
504
504
  // Is a given value an array?
505
505
  // Delegates to ECMA5's native Array.isArray
506
506
  _.isArray = nativeIsArray || function(obj) {
507
- return !!(obj && obj.concat && obj.unshift);
507
+ return !!(obj && obj.concat && obj.unshift && !obj.callee);
508
508
  };
509
509
 
510
510
  // Is a given variable an arguments object?
511
511
  _.isArguments = function(obj) {
512
- return obj && _.isNumber(obj.length) && !obj.concat && !obj.substr && !obj.apply && !propertyIsEnumerable.call(obj, 'length');
512
+ return obj && obj.callee;
513
513
  };
514
514
 
515
515
  // Is a given value a function?
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: underscore-source
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 1.0.1
5
+ version: 1.0.2
6
6
  platform: ruby
7
7
  authors:
8
8
  - Daniel X. Moore