Skip to content
Permalink
Browse files
CB-11522 [windows] Make cordova-js handle 'unknown' type
  • Loading branch information
daserge committed Sep 29, 2016
1 parent 0030f1d commit 640f151f0badfbf7d3ede6b7a2befb7a96054dd7
Showing 1 changed file with 4 additions and 1 deletion.
@@ -108,7 +108,10 @@ utils.clone = function(obj) {

retVal = {};
for(i in obj){
if((!(i in retVal) || retVal[i] != obj[i]) && typeof obj[i] != 'undefined') {
// https://issues.apache.org/jira/browse/CB-11522 'unknown' type may be returned in
// custom protocol activation case on Windows Phone 8.1 causing "No such interface supported" exception
// on cloning.
if((!(i in retVal) || retVal[i] != obj[i]) && typeof obj[i] != 'undefined' && typeof obj[i] != 'unknown') {
retVal[i] = utils.clone(obj[i]);
}
}

0 comments on commit 640f151

Please sign in to comment.