Customizer: Use the _.now() function from Undescore.js for the current timestamp. Date.now() isn't supported in IE8.

fixes #27477.

git-svn-id: https://develop.svn.wordpress.org/trunk@27651 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Dominik Schilling (ocean90) 2014-03-22 10:53:10 +00:00
parent 686896998d
commit a3abe09be2

View File

@ -22,7 +22,7 @@
header: {
attachment_id: 0,
url: '',
timestamp: Date.now(),
timestamp: _.now(),
thumbnail_url: ''
},
choice: '',
@ -212,7 +212,7 @@
model.set('hidden', true);
// Bump images to top except for special "Randomize" images
if (!model.get('random')) {
model.get('header').timestamp = Date.now();
model.get('header').timestamp = _.now();
this.sort();
}
}