Revert 'isEmpty' transformation

This commit is contained in:
Denis Zharkov
2015-10-13 20:49:31 +03:00
committed by Mikhail Glukhikh
parent 17c906658d
commit 6322198a11
71 changed files with 127 additions and 156 deletions
+3 -5
View File
@@ -398,10 +398,8 @@
}
return true;
},
isEmpty: {
get: function () {
return this.size === 0;
}
isEmpty: function () {
return this.size === 0;
},
iterator: function () {
// TODO: Do not implement mutable iterator() this way, make abstract
@@ -972,7 +970,7 @@
});
Kotlin.collectionsMax = function (c, comp) {
if (c.isEmpty) {
if (c.isEmpty()) {
//TODO: which exception?
throw new Error();
}