boda_jsEnv/env_xbb_lastest_jsdom/env/MutationObserver.js
xuxiaobo-bobo 92d87fb6b7 '0216'
2023-02-16 23:35:17 +08:00

14 lines
1.3 KiB
JavaScript

// MutationObserver对象
MutationObserver = function MutationObserver(){
// debugger
if (arguments.length >1){bodavm.toolsFunc.throwError('TypeError',`MutationObserver 参数长度过长`)}
this._boarg= new bodaobj.window.MutationObserver(arguments[0])
if(arguments.length <1){
return bodavm.toolsFunc.throwError("TypeError", "Failed to construct 'MutationObserver': 1 argument required, but only 0 present.")}
}
bodavm.toolsFunc.safeProto(MutationObserver, "MutationObserver");
bodavm.toolsFunc.defineProperty(MutationObserver.prototype, "disconnect", {configurable:true, enumerable:true, writable:true, value:function disconnect (){return bodavm.toolsFunc.dispatch(this, MutationObserver.prototype, "MutationObserver", "disconnect", arguments)}});
bodavm.toolsFunc.defineProperty(MutationObserver.prototype, "observe", {configurable:true, enumerable:true, writable:true, value:function observe (){return bodavm.toolsFunc.dispatch(this, MutationObserver.prototype, "MutationObserver", "observe", arguments)}});
bodavm.toolsFunc.defineProperty(MutationObserver.prototype, "takeRecords", {configurable:true, enumerable:true, writable:true, value:function takeRecords (){return bodavm.toolsFunc.dispatch(this, MutationObserver.prototype, "MutationObserver", "takeRecords", arguments)}});