diff options
author | vipsoft <vipsoft@59fd770c-687e-43c8-a1e3-f5a4ff64c105> | 2010-01-14 03:21:27 +0300 |
---|---|---|
committer | vipsoft <vipsoft@59fd770c-687e-43c8-a1e3-f5a4ff64c105> | 2010-01-14 03:21:27 +0300 |
commit | c569dc4c6a8953bbd7692a6be5fe89f125a51365 (patch) | |
tree | 71316cd602abc9722fc058eb2ce6dce0cf9dd3b9 /js | |
parent | a754141f685b053f3fcfc26ea0c504c2955d1fc8 (diff) |
small code optimization
Diffstat (limited to 'js')
-rw-r--r-- | js/piwik.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/js/piwik.js b/js/piwik.js index e2e9af3a06..b7292b6c79 100644 --- a/js/piwik.js +++ b/js/piwik.js @@ -93,11 +93,11 @@ if (!this.Piwik) { * Delay/pause (blocks UI) */ if (isDefined(expireDateTime)) { - var now = new Date(); + var now; - while (now.getTime() < expireDateTime) { + do { now = new Date(); - } + } while (now.getTime() < expireDateTime); } executePluginMethod('unload'); |