fix(autojs): ui.emitter.emit() may make app crash if callback throws exception
add(sample): 界面模板一.js
This commit is contained in:
@@ -20,6 +20,9 @@ bridges.call = function (func, target, args) {
|
||||
|
||||
*/
|
||||
function wrap(value){
|
||||
if(value == null || value == undefined){
|
||||
return value;
|
||||
}
|
||||
if(!(typeof(value) == 'object' && value.getClass && util.isFunction(value.getClass))){
|
||||
return value;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user