fix(dialogs): cannot use 'in' in non-object for following code alert("", "", ()=>{})
`
This commit is contained in:
@@ -11,7 +11,7 @@ bridges.call = function (func, target, args) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
function wrap(value){
|
function wrap(value){
|
||||||
if(!(typeof(value) == 'object' && 'getClass' in value && util.isFunction(value.getClass))){
|
if(!(value instanceof Object && 'getClass' in value && util.isFunction(value.getClass))){
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
var c = value.getClass();
|
var c = value.getClass();
|
||||||
|
|||||||
Reference in New Issue
Block a user