diff options
Diffstat (limited to 'plugins/Live/javascripts/SegmentedVisitorLog.js')
-rw-r--r-- | plugins/Live/javascripts/SegmentedVisitorLog.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/Live/javascripts/SegmentedVisitorLog.js b/plugins/Live/javascripts/SegmentedVisitorLog.js index 1f3581423b..b831fa1a9a 100644 --- a/plugins/Live/javascripts/SegmentedVisitorLog.js +++ b/plugins/Live/javascripts/SegmentedVisitorLog.js @@ -3,7 +3,7 @@ var SegmentedVisitorLog = function() { function getDataTableFromApiMethod(apiMethod) { var div = $(require('piwik/UI').DataTable.getDataTableByReport(apiMethod)); - if (div.size() > 0 && div.data('uiControlObject')) { + if (div.length && div.data('uiControlObject')) { return div.data('uiControlObject'); } } @@ -107,7 +107,7 @@ var SegmentedVisitorLog = function() { var title = box.find('h2[piwik-enriched-headline]'); var defaultTitle = title.text(); - if (title.size() > 0) { + if (title.length) { title.remove(); } |