mirror of
https://github.com/apache/cordova-android.git
synced 2025-02-20 23:56:20 +08:00
Fixing issue where Date's aren't cloned
This commit is contained in:
parent
92a1e4a2d9
commit
115b428a9d
@ -385,7 +385,11 @@ PhoneGap.clone = function(obj) {
|
||||
if(!(obj instanceof Object)){
|
||||
return obj;
|
||||
}
|
||||
|
||||
|
||||
if (obj instanceof Date) {
|
||||
return obj;
|
||||
}
|
||||
|
||||
retVal = new Object();
|
||||
for(i in obj){
|
||||
if(!(i in retVal) || retVal[i] != obj[i]) {
|
||||
|
Loading…
Reference in New Issue
Block a user