diff --git a/src/core/controller/controller.drawer.js b/src/core/controller/controller.drawer.js index b808699c2..c288d019f 100644 --- a/src/core/controller/controller.drawer.js +++ b/src/core/controller/controller.drawer.js @@ -106,9 +106,7 @@ export default class DrawerController extends Controller { }] }); this.floatManager[name] = popover; - (function (key) { - popover.on(BI.Drawer.EVENT_CLOSE, () => this.close(key)); - })(name); + popover.on(BI.Drawer.EVENT_CLOSE, () => this.close(name)); BI.createWidget({ type: "bi.absolute", element: options.container || this.options.render,