mirror of
https://github.com/xuxiaobo-bobo/boda_jsEnv.git
synced 2025-04-23 04:04:25 +08:00
10 lines
1.8 KiB
JavaScript
10 lines
1.8 KiB
JavaScript
// DeviceOrientationEvent对象
|
|
bodavm.memory.globalobj['DeviceOrientationEvent'] = function DeviceOrientationEvent(){return bodavm.toolsFunc.throwError("TypeError", "Failed to construct 'DeviceOrientationEvent': 1 argument required, but only 0 present.")}
|
|
bodavm.toolsFunc.safeProto(bodavm.memory.globalobj['DeviceOrientationEvent'], "DeviceOrientationEvent");
|
|
bodavm.memory.globalobj['DeviceOrientationEvent'].prototype.__proto__=bodavm.memory.globalobj['Event'].prototype;
|
|
bodavm.memory.globalobj['DeviceOrientationEvent'].__proto__=bodavm.memory.globalobj['Event'];
|
|
bodavm.toolsFunc.defineProperty('DeviceOrientationEvent', "alpha", {configurable:true, enumerable:true, get:function alpha (){return bodavm.toolsFunc.dispatch(this, bodavm.memory.globalobj['DeviceOrientationEvent'].prototype, "DeviceOrientationEvent", "alpha_get", arguments)}, set:undefined},'prototype');
|
|
bodavm.toolsFunc.defineProperty('DeviceOrientationEvent', "beta", {configurable:true, enumerable:true, get:function beta (){return bodavm.toolsFunc.dispatch(this, bodavm.memory.globalobj['DeviceOrientationEvent'].prototype, "DeviceOrientationEvent", "beta_get", arguments)}, set:undefined},'prototype');
|
|
bodavm.toolsFunc.defineProperty('DeviceOrientationEvent', "gamma", {configurable:true, enumerable:true, get:function gamma (){return bodavm.toolsFunc.dispatch(this, bodavm.memory.globalobj['DeviceOrientationEvent'].prototype, "DeviceOrientationEvent", "gamma_get", arguments)}, set:undefined},'prototype');
|
|
bodavm.toolsFunc.defineProperty('DeviceOrientationEvent', "absolute", {configurable:true, enumerable:true, get:function absolute (){return bodavm.toolsFunc.dispatch(this, bodavm.memory.globalobj['DeviceOrientationEvent'].prototype, "DeviceOrientationEvent", "absolute_get", arguments)}, set:undefined},'prototype');
|