mirror of
https://github.com/xuxiaobo-bobo/boda_jsEnv.git
synced 2025-04-22 12:36:29 +08:00
15 lines
2.3 KiB
JavaScript
15 lines
2.3 KiB
JavaScript
// Attr对象
|
|
bodavm.memory.globalobj['Attr'] = function Attr(){
|
|
|
|
return bodavm.toolsFunc.throwError("TypeError", "Illegal constructor")}
|
|
bodavm.toolsFunc.safeProto(bodavm.memory.globalobj['Attr'], "Attr");
|
|
bodavm.memory.globalobj['Attr'].prototype.__proto__=bodavm.memory.globalobj['Node'].prototype;
|
|
bodavm.memory.globalobj['Attr'].__proto__=bodavm.memory.globalobj['Node'];
|
|
bodavm.toolsFunc.defineProperty('Attr', "namespaceURI", {configurable:true, enumerable:true, get:function namespaceURI (){return bodavm.toolsFunc.dispatch(this, bodavm.memory.globalobj['Attr'].prototype, "Attr", "namespaceURI_get", arguments)}, set:undefined},'prototype');
|
|
bodavm.toolsFunc.defineProperty('Attr', "prefix", {configurable:true, enumerable:true, get:function prefix (){return bodavm.toolsFunc.dispatch(this, bodavm.memory.globalobj['Attr'].prototype, "Attr", "prefix_get", arguments)}, set:undefined},'prototype');
|
|
bodavm.toolsFunc.defineProperty('Attr', "localName", {configurable:true, enumerable:true, get:function localName (){return bodavm.toolsFunc.dispatch(this, bodavm.memory.globalobj['Attr'].prototype, "Attr", "localName_get", arguments)}, set:undefined},'prototype');
|
|
bodavm.toolsFunc.defineProperty('Attr', "name", {configurable:true, enumerable:true, get:function name (){return bodavm.toolsFunc.dispatch(this, bodavm.memory.globalobj['Attr'].prototype, "Attr", "name_get", arguments)}, set:undefined},'prototype');
|
|
bodavm.toolsFunc.defineProperty('Attr', "value", {configurable:true, enumerable:true, get:function value (){return bodavm.toolsFunc.dispatch(this, bodavm.memory.globalobj['Attr'].prototype, "Attr", "value_get", arguments)}, set:function value (){return bodavm.toolsFunc.dispatch(this, bodavm.memory.globalobj['Attr'].prototype, "Attr", "value_set", arguments)}},'prototype');
|
|
bodavm.toolsFunc.defineProperty('Attr', "ownerElement", {configurable:true, enumerable:true, get:function ownerElement (){return bodavm.toolsFunc.dispatch(this, bodavm.memory.globalobj['Attr'].prototype, "Attr", "ownerElement_get", arguments)}, set:undefined},'prototype');
|
|
bodavm.toolsFunc.defineProperty('Attr', "specified", {configurable:true, enumerable:true, get:function specified (){return bodavm.toolsFunc.dispatch(this, bodavm.memory.globalobj['Attr'].prototype, "Attr", "specified_get", arguments)}, set:undefined},'prototype');
|