forked from github/cordova-android
Fixing issue where Date's aren't cloned
This commit is contained in:
parent
92a1e4a2d9
commit
115b428a9d
@ -386,6 +386,10 @@ PhoneGap.clone = function(obj) {
|
|||||||
return obj;
|
return obj;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (obj instanceof Date) {
|
||||||
|
return obj;
|
||||||
|
}
|
||||||
|
|
||||||
retVal = new Object();
|
retVal = new Object();
|
||||||
for(i in obj){
|
for(i in obj){
|
||||||
if(!(i in retVal) || retVal[i] != obj[i]) {
|
if(!(i in retVal) || retVal[i] != obj[i]) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user