add fallback implementation of Date.now for IE8

This commit is contained in:
Jordan Lee 2011-11-06 14:42:52 +00:00
parent f569bae99c
commit f1fc3584f4
1 changed files with 7 additions and 0 deletions

View File

@ -40,6 +40,13 @@ $(document).ready(function() {
// Initialise the main Transmission controller
transmission = new Transmission();
// IE8 and below dont support ES5 Date.now()
if (!Date.now) {
Date.now = function() {
return +new Date();
};
}
// IE specific fixes here
if ($.browser.msie) {
try {