underscore-source 1.0.0 → 1.0.1

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.0"
3
+ VERSION = "1.0.1"
4
4
  end
5
5
  end
@@ -55,7 +55,7 @@
55
55
  root._ = _;
56
56
 
57
57
  // Current version.
58
- _.VERSION = '1.0.0';
58
+ _.VERSION = '1.0.1';
59
59
 
60
60
  // ------------------------ Collection Functions: ---------------------------
61
61
 
@@ -485,7 +485,7 @@
485
485
  // Different object sizes?
486
486
  if (aKeys.length != bKeys.length) return false;
487
487
  // Recursive comparison of contents.
488
- for (var key in a) if (!_.isEqual(a[key], b[key])) return false;
488
+ for (var key in a) if (!(key in b) || !_.isEqual(a[key], b[key])) return false;
489
489
  return true;
490
490
  };
491
491
 
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.0
5
+ version: 1.0.1
6
6
  platform: ruby
7
7
  authors:
8
8
  - Daniel X. Moore