mirror of
https://github.com/openseadragon/openseadragon.git
synced 2025-01-20 01:31:45 +03:00
Moved to better location
This commit is contained in:
parent
6a3b7cfb2f
commit
e8408c1313
@ -635,20 +635,6 @@ window.OpenSeadragon = window.OpenSeadragon || function( options ){
|
|||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Returns the current milliseconds, using Date.now() if available
|
|
||||||
* @name $.now
|
|
||||||
* @function
|
|
||||||
*/
|
|
||||||
now: function( ) {
|
|
||||||
if (Date.now) {
|
|
||||||
return Date.now();
|
|
||||||
}
|
|
||||||
|
|
||||||
return new Date().getTime();
|
|
||||||
},
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* An enumeration of Browser vendors including UNKNOWN, IE, FIREFOX,
|
* An enumeration of Browser vendors including UNKNOWN, IE, FIREFOX,
|
||||||
* SAFARI, CHROME, and OPERA.
|
* SAFARI, CHROME, and OPERA.
|
||||||
@ -966,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) {
|
||||||
|
return Date.now();
|
||||||
|
}
|
||||||
|
|
||||||
|
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…
x
Reference in New Issue
Block a user