Make WordPress Core

Changeset 27651


Ignore:
Timestamp:
03/22/2014 10:53:10 AM (11 years ago)
Author:
ocean90
Message:

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

fixes #27477.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/js/customize-models.js

    r27498 r27651  
    2323                    attachment_id: 0,
    2424                    url: '',
    25                     timestamp: Date.now(),
     25                    timestamp: _.now(),
    2626                    thumbnail_url: ''
    2727                },
     
    213213                // Bump images to top except for special "Randomize" images
    214214                if (!model.get('random')) {
    215                     model.get('header').timestamp = Date.now();
     215                    model.get('header').timestamp = _.now();
    216216                    this.sort();
    217217                }
Note: See TracChangeset for help on using the changeset viewer.