floating-live 0.17.0-alpha.1 → 0.17.0-alpha.2
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/plugin/manager.js +2 -2
- package/package.json +1 -1
package/dist/plugin/manager.js
CHANGED
|
@@ -189,8 +189,8 @@ export class PluginManager {
|
|
|
189
189
|
this.whenRegisterMap.set(pluginName, new Map([[callback, null]]));
|
|
190
190
|
}
|
|
191
191
|
else {
|
|
192
|
-
//
|
|
193
|
-
if (
|
|
192
|
+
// 确保回调函数不重复注册,如果重复,则直接返回
|
|
193
|
+
if (this.whenRegisterMap.get(pluginName).has(callback)) {
|
|
194
194
|
return;
|
|
195
195
|
}
|
|
196
196
|
// 如果目标插件的回调列表已存在,直接添加回调函数
|