diff options
author | sgiehl <stefangiehl@gmail.com> | 2012-03-23 20:21:26 +0400 |
---|---|---|
committer | sgiehl <stefangiehl@gmail.com> | 2012-03-23 20:21:26 +0400 |
commit | cd29099d40b7614986f3d729abda09c24f503c5a (patch) | |
tree | 57950a7d04e1ec15a9165e675d0c468bd300638c /plugins/Live/templates | |
parent | 27e7739a7214092bcb0e815c96c339e8fa1e0626 (diff) |
do not proceed requesting for updates if dom element was already removed
from body
git-svn-id: http://dev.piwik.org/svn/trunk@6105 59fd770c-687e-43c8-a1e3-f5a4ff64c105
Diffstat (limited to 'plugins/Live/templates')
-rw-r--r-- | plugins/Live/templates/scripts/live.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/Live/templates/scripts/live.js b/plugins/Live/templates/scripts/live.js index 8597f84951..a274031c67 100644 --- a/plugins/Live/templates/scripts/live.js +++ b/plugins/Live/templates/scripts/live.js @@ -61,7 +61,9 @@ if(isStarted) { window.clearTimeout(updateInterval); - updateInterval = window.setTimeout(update, currentInterval); + if($(liveWidget).closest('body').length) { + updateInterval = window.setTimeout(update, currentInterval); + } } })); }; |