Created
April 19, 2010 08:25
-
-
Save aron/370844 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/riot.js b/riot.js | |
index 27e5162..fa0d017 100644 | |
--- a/riot.js | |
+++ b/riot.js | |
@@ -491,7 +491,7 @@ | |
} | |
} | |
} | |
- for (var key in a) { | |
+ for (var key in b) { | |
if (!this.isEqual(a[key], b[key])) { | |
return; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Riot.context('Riot.Assertion', function() { | |
given('isEqual()', function () { | |
should('return falsy when an empty object is supplied as the first param', function() { | |
return ! Riot.Assertion.prototype.isEqual({}, {a: 'a', b: 'b'}); | |
}).isTrue(); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment