mirror of
https://github.com/openseadragon/openseadragon.git
synced 2025-02-16 14:53:14 +03:00
Responding to feedback
Function now re-assigns itself on the first go round to avoid doing the check every time it is called
This commit is contained in:
parent
ebffea5a34
commit
2f8a26fda0
@ -959,10 +959,10 @@ window.OpenSeadragon = window.OpenSeadragon || function( options ){
|
||||
*/
|
||||
now: function( ) {
|
||||
if (Date.now) {
|
||||
return Date.now();
|
||||
$.now = Date.now;
|
||||
} else {
|
||||
$.now = function() { return new Date().getTime(); }
|
||||
}
|
||||
|
||||
return new Date().getTime();
|
||||
},
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user