Changeset 13077


Ignore:
Timestamp:
Nov 6, 2011, 2:42:52 PM (11 years ago)
Author:
jordan
Message:

add fallback implementation of Date.now for IE8

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/web/javascript/common.js

    r12865 r13077  
    4040        // Initialise the main Transmission controller
    4141        transmission = new Transmission();
     42
     43        // IE8 and below don’t support ES5 Date.now()
     44        if (!Date.now) {
     45                Date.now = function() {
     46                        return +new Date();
     47                };
     48        }
    4249
    4350        // IE specific fixes here
Note: See TracChangeset for help on using the changeset viewer.