From e8408c131347df920f0057b9697ad25bec6cdc47 Mon Sep 17 00:00:00 2001 From: Kevin Ewing Date: Wed, 19 Jun 2013 11:16:45 -0700 Subject: [PATCH] Moved to better location --- src/openseadragon.js | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/src/openseadragon.js b/src/openseadragon.js index ab4b6961..7f52a600 100644 --- a/src/openseadragon.js +++ b/src/openseadragon.js @@ -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, * 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. * Generally only IE has issues doing this correctly for formats like