mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-25 14:46:10 +03:00
Merge pull request #140 from felizuno/now
Added OpenSeadragon.now() (#138)
This commit is contained in:
commit
2e49d793e8
@ -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.
|
* Ensures an image is loaded correctly to support alpha transparency.
|
||||||
* Generally only IE has issues doing this correctly for formats like
|
* Generally only IE has issues doing this correctly for formats like
|
||||||
|
Loading…
Reference in New Issue
Block a user