mirror of https://github.com/layui/layui
chore: 将 bind 改为 $.proxy
parent
3c64d33e6e
commit
2335acd76d
|
@ -365,8 +365,8 @@ layui.define(['i18n', 'jquery', 'laytpl', 'lay', 'util'], function(exports) {
|
||||||
});
|
});
|
||||||
|
|
||||||
if(resizeObserver){
|
if(resizeObserver){
|
||||||
resizeObserver.observe(options.elem[0], that.position.bind(that));
|
resizeObserver.observe(options.elem[0], $.proxy(that.position, that));
|
||||||
resizeObserver.observe(mainElem[0], that.position.bind(that));
|
resizeObserver.observe(mainElem[0], $.proxy(that.position, that));
|
||||||
}
|
}
|
||||||
|
|
||||||
// 组件打开完毕的事件
|
// 组件打开完毕的事件
|
||||||
|
|
Loading…
Reference in New Issue