@zhongguo168a/yxeditor-common 0.0.110 → 0.0.111
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +1 -1
- package/dist/index.esm.js +4 -4
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
package/dist/index.esm.js
CHANGED
|
@@ -2669,7 +2669,7 @@ class ListSource extends EventDispatcher {
|
|
|
2669
2669
|
last() {
|
|
2670
2670
|
return this._data[this._data.length - 1];
|
|
2671
2671
|
}
|
|
2672
|
-
length() {
|
|
2672
|
+
get length() {
|
|
2673
2673
|
return this._data.length;
|
|
2674
2674
|
}
|
|
2675
2675
|
/**
|
|
@@ -2763,7 +2763,7 @@ class ListSource extends EventDispatcher {
|
|
|
2763
2763
|
this.dispatch(ListSource.EVENT_REFRESH, { node: node });
|
|
2764
2764
|
}
|
|
2765
2765
|
walk(f) {
|
|
2766
|
-
for (let i = 0; i < this.length
|
|
2766
|
+
for (let i = 0; i < this.length; i++) {
|
|
2767
2767
|
let item = this._data[i];
|
|
2768
2768
|
if (!f(item)) {
|
|
2769
2769
|
return false;
|
|
@@ -2939,7 +2939,7 @@ class Dictionary {
|
|
|
2939
2939
|
}
|
|
2940
2940
|
}
|
|
2941
2941
|
deleteDictionary(other) {
|
|
2942
|
-
if (other.length
|
|
2942
|
+
if (other.length == 0) {
|
|
2943
2943
|
return;
|
|
2944
2944
|
}
|
|
2945
2945
|
for (const key in other._data) {
|
|
@@ -2990,7 +2990,7 @@ class Dictionary {
|
|
|
2990
2990
|
return [value, value !== undefined];
|
|
2991
2991
|
}
|
|
2992
2992
|
isEmpty() {
|
|
2993
|
-
return this.length
|
|
2993
|
+
return this.length === 0;
|
|
2994
2994
|
}
|
|
2995
2995
|
items() {
|
|
2996
2996
|
const items = [];
|