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:
Kevin Ewing 2013-06-19 15:13:56 -07:00
parent ebffea5a34
commit 2f8a26fda0

View File

@ -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();
},