fix(dialogs): cannot use 'in' in non-object for following code alert("", "", ()=>{})

`
This commit is contained in:
hyb1996
2018-04-21 14:50:05 +08:00
parent ae243719b1
commit 188347be34

View File

@@ -11,7 +11,7 @@ bridges.call = function (func, target, args) {
};
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;
}
var c = value.getClass();