JS backend: drop Kotlin.keys

This commit is contained in:
Erokhin Stanislav
2013-09-19 21:00:38 +04:00
parent bdb338a271
commit 649318a6c6
2 changed files with 2 additions and 4 deletions
@@ -231,8 +231,6 @@ var Kotlin = {};
return obj;
};
Kotlin.keys = Object.keys; // TODO drop
Kotlin.isType = function (object, klass) {
if (object == null || klass == null) {
return false;
+2 -2
View File
@@ -416,7 +416,7 @@ Kotlin.ComplexHashMap = Kotlin.HashMap;
this.map = map;
}, {
iterator: function () {
return new PrimitiveHashMapValuesIterator(this.map.map, Kotlin.keys(this.map.map));
return new PrimitiveHashMapValuesIterator(this.map.map, Object.keys(this.map.map));
},
isEmpty: function () {
return this.map.$size === 0;
@@ -538,7 +538,7 @@ Kotlin.PrimitiveHashSet = Kotlin.createClass(Kotlin.AbstractCollection,
this.map = {};
},
toArray: function () {
return Kotlin.keys(this.map);
return Object.keys(this.map);
}
});