mirror of
https://gitee.com/layui/layui.git
synced 2025-10-07 15:14:31 +08:00
chore: 将 bind 改为 $.proxy
This commit is contained in:
@@ -365,8 +365,8 @@ layui.define(['i18n', 'jquery', 'laytpl', 'lay', 'util'], function(exports) {
|
||||
});
|
||||
|
||||
if(resizeObserver){
|
||||
resizeObserver.observe(options.elem[0], that.position.bind(that));
|
||||
resizeObserver.observe(mainElem[0], that.position.bind(that));
|
||||
resizeObserver.observe(options.elem[0], $.proxy(that.position, that));
|
||||
resizeObserver.observe(mainElem[0], $.proxy(that.position, that));
|
||||
}
|
||||
|
||||
// 组件打开完毕的事件
|
||||
|
Reference in New Issue
Block a user