avoid failure on equals() call passing in null/undefined and updated the issues for failing JS unit tests

This commit is contained in:
James Strachan
2012-07-20 07:14:20 +01:00
parent 14abbc9e5f
commit 3ef4ff690c
2 changed files with 11 additions and 2 deletions
+2
View File
@@ -124,6 +124,7 @@ var kotlin = {set:function (receiver, key, value) {
}
},
equals: function (o) {
if (o === null || o === undefined) return false;
if (this.size() === o.size()) {
var iter1 = this.iterator();
var iter2 = o.iterator();
@@ -909,6 +910,7 @@ var kotlin = {set:function (receiver, key, value) {
};
this.equals = function (o) {
if (o === null || o === undefined) return false;
if (this.size() === o.size()) {
var iter1 = this.iterator();
var iter2 = o.iterator();