mirror of
https://github.com/xuxiaobo-bobo/boda_jsEnv.git
synced 2025-04-23 08:29:24 +08:00
37 lines
1.5 KiB
JavaScript
37 lines
1.5 KiB
JavaScript
// SpeechGrammar对象
|
|
bodavm.memory.notDefined['webkitSpeechGrammar'] = function () {
|
|
if (arg != 'bobo') {
|
|
console.log_copy('webkitSpeechGrammar 实例化对象 --->', JSON.stringify_bo(arguments, function (k, v) {
|
|
if (v == window) {
|
|
return 'window';
|
|
} else {
|
|
return v;
|
|
}
|
|
}));
|
|
}
|
|
;
|
|
};
|
|
bodavm.toolsFunc.defineProperty(bodavm.memory.notDefined['webkitSpeechGrammar'].prototype, "src", {
|
|
configurable: true,
|
|
enumerable: true,
|
|
get: function src() {
|
|
return bodavm.toolsFunc.dispatch(this, bodavm.memory.notDefined['webkitSpeechGrammar'].prototype, "src", "src_get", arguments);
|
|
},
|
|
set: function src() {
|
|
return bodavm.toolsFunc.dispatch(this, bodavm.memory.notDefined['webkitSpeechGrammar'].prototype, "src", "src_set", arguments);
|
|
}
|
|
});
|
|
bodavm.toolsFunc.defineProperty(bodavm.memory.notDefined['webkitSpeechGrammar'].prototype, "weight", {
|
|
configurable: true,
|
|
enumerable: true,
|
|
get: function weight() {
|
|
return bodavm.toolsFunc.dispatch(this, bodavm.memory.notDefined['webkitSpeechGrammar'].prototype, "weight", "weight_get", arguments);
|
|
},
|
|
set: function weight() {
|
|
return bodavm.toolsFunc.dispatch(this, bodavm.memory.notDefined['webkitSpeechGrammar'].prototype, "weight", "weight_set", arguments);
|
|
}
|
|
});
|
|
bodavm.toolsFunc.safeProto(bodavm.memory.notDefined['webkitSpeechGrammar'], 'webkitSpeechGrammar');
|
|
delete bodavm.memory.notDefined['webkitSpeechGrammar'].constructor;
|
|
webkitSpeechGrammar = bodavm.memory.notDefined['webkitSpeechGrammar'];
|
|
//debugger;
|