commit 27b95ebb14bda0ddab52ba0534d244065c7c9c57 parent ed42e0c22d8f6d8c9966c0d6e710574fb770c1b0 Author: Simon Kornblith <simon@simonster.com> Date: Wed, 21 Sep 2011 03:43:03 +0000 Remove Zotero.sleep() Diffstat:
| M | chrome/content/zotero/xpcom/zotero.js | | | 16 | ---------------- |
1 file changed, 0 insertions(+), 16 deletions(-)
diff --git a/chrome/content/zotero/xpcom/zotero.js b/chrome/content/zotero/xpcom/zotero.js @@ -1427,22 +1427,6 @@ if(appInfo.platformVersion[0] >= 2) { /** - * Sleep for a given amount of time, allowing other events on main thread to be processed - * - * @param {Integer} ms Milliseconds to wait - */ - this.sleep = function (ms) { - var mainThread = Zotero.mainThread; - var endTime = Date.now() + ms; - do { - mainThread.processNextEvent(false); - } while (Date.now() < endTime); - - return; - }; - - - /** * Allow other events (e.g., UI updates) on main thread to be processed if necessary * * @param {Integer} [timeout=50] Maximum number of milliseconds to wait