This commit is contained in:
Kevin Ewing 2013-06-20 09:25:38 -07:00
commit 7443249e3f

View file

@ -952,6 +952,20 @@ window.OpenSeadragon = window.OpenSeadragon || function( options ){
},
/**
* Returns the current milliseconds, using Date.now() if available
* @name $.now
* @function
*/
now: function( ) {
if (Date.now) {
$.now = Date.now;
} else {
$.now = function() { return new Date().getTime(); };
}
},
/**
* Ensures an image is loaded correctly to support alpha transparency.
* Generally only IE has issues doing this correctly for formats like