xuxiaobo-bobo a27aa6f31b '0605'
2023-06-05 23:25:43 +08:00

15 lines
1.5 KiB
JavaScript

// MutationObserver对象
bodavm.memory.globalobj['MutationObserver'] = function MutationObserver(){
if (!(this instanceof MutationObserver)) {
return bodavm.toolsFunc.throwError("TypeError", "Failed to construct 'MutationObserver': Please use the 'new' operator, this DOM object constructor cannot be called as a function")
};
if (arguments.length <1){
return bodavm.toolsFunc.throwError("TypeError", "Failed to construct 'MutationObserver': 1 argument required, but only 0 present.")}
this._boarg=new bodaobj.window.MutationObserver(arguments[0])
}
bodavm.toolsFunc.safeProto(bodavm.memory.globalobj['MutationObserver'], "MutationObserver");
bodavm.toolsFunc.defineProperty('MutationObserver', "disconnect", {configurable:true, enumerable:true, writable:true, value:function disconnect (){return bodavm.toolsFunc.dispatch(this, bodavm.memory.globalobj['MutationObserver'].prototype, "MutationObserver", "disconnect", arguments)}},'prototype');
bodavm.toolsFunc.defineProperty('MutationObserver', "observe", {configurable:true, enumerable:true, writable:true, value:function observe (){return bodavm.toolsFunc.dispatch(this, bodavm.memory.globalobj['MutationObserver'].prototype, "MutationObserver", "observe", arguments)}},'prototype');
bodavm.toolsFunc.defineProperty('MutationObserver', "takeRecords", {configurable:true, enumerable:true, writable:true, value:function takeRecords (){return bodavm.toolsFunc.dispatch(this, bodavm.memory.globalobj['MutationObserver'].prototype, "MutationObserver", "takeRecords", arguments)}},'prototype');