@zhongguo168a/yxeditor-common 0.0.108 → 0.0.109
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.esm.js +4 -4
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -2863,11 +2863,11 @@ class Dictionary {
|
|
|
2863
2863
|
* 如果使用了 onSet or onDelete,需要注意清理
|
|
2864
2864
|
*/
|
|
2865
2865
|
clear(useIter = true) {
|
|
2866
|
-
|
|
2866
|
+
this._data;
|
|
2867
2867
|
if (useIter) {
|
|
2868
|
-
|
|
2869
|
-
|
|
2870
|
-
this.delete(
|
|
2868
|
+
let keys = this.keys();
|
|
2869
|
+
for (const key of keys) {
|
|
2870
|
+
this.delete(key);
|
|
2871
2871
|
}
|
|
2872
2872
|
}
|
|
2873
2873
|
else {
|