JS backend: drop Kotlin.keys
This commit is contained in:
@@ -231,8 +231,6 @@ var Kotlin = {};
|
|||||||
return obj;
|
return obj;
|
||||||
};
|
};
|
||||||
|
|
||||||
Kotlin.keys = Object.keys; // TODO drop
|
|
||||||
|
|
||||||
Kotlin.isType = function (object, klass) {
|
Kotlin.isType = function (object, klass) {
|
||||||
if (object == null || klass == null) {
|
if (object == null || klass == null) {
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
@@ -416,7 +416,7 @@ Kotlin.ComplexHashMap = Kotlin.HashMap;
|
|||||||
this.map = map;
|
this.map = map;
|
||||||
}, {
|
}, {
|
||||||
iterator: function () {
|
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 () {
|
isEmpty: function () {
|
||||||
return this.map.$size === 0;
|
return this.map.$size === 0;
|
||||||
@@ -538,7 +538,7 @@ Kotlin.PrimitiveHashSet = Kotlin.createClass(Kotlin.AbstractCollection,
|
|||||||
this.map = {};
|
this.map = {};
|
||||||
},
|
},
|
||||||
toArray: function () {
|
toArray: function () {
|
||||||
return Kotlin.keys(this.map);
|
return Object.keys(this.map);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user