Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorvipsoft <vipsoft@59fd770c-687e-43c8-a1e3-f5a4ff64c105>2010-01-14 03:21:27 +0300
committervipsoft <vipsoft@59fd770c-687e-43c8-a1e3-f5a4ff64c105>2010-01-14 03:21:27 +0300
commitc569dc4c6a8953bbd7692a6be5fe89f125a51365 (patch)
tree71316cd602abc9722fc058eb2ce6dce0cf9dd3b9 /js
parenta754141f685b053f3fcfc26ea0c504c2955d1fc8 (diff)
small code optimization
Diffstat (limited to 'js')
-rw-r--r--js/piwik.js6
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');