Comparing version 0.2.10 to 0.2.11
@@ -565,8 +565,12 @@ // Generated by CoffeeScript 1.6.3 | ||
subset: function(small, big) { | ||
var isSubset; | ||
isSubset = true; | ||
h.walk(small, function(v, k, c) { | ||
return isSubset = v === h.props(big, c); | ||
}); | ||
return isSubset; | ||
try { | ||
h.walk(small, function(v, k, c) { | ||
if (!(v === h.props(big, c))) { | ||
throw new Error(); | ||
} | ||
}); | ||
} catch (_error) { | ||
return false; | ||
} | ||
return true; | ||
}, | ||
@@ -573,0 +577,0 @@ truth: function(v) { |
@@ -42,3 +42,3 @@ { | ||
}, | ||
"version" : "0.2.10" | ||
"version" : "0.2.11" | ||
} |
@@ -1152,5 +1152,5 @@ // Generated by CoffeeScript 1.6.3 | ||
small = { | ||
x: 'wrong!', | ||
a: 1, | ||
b: 2, | ||
x: 'wrong!' | ||
b: 2 | ||
}; | ||
@@ -1157,0 +1157,0 @@ big = { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
380324
10364
936