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
diff options
context:
space:
mode:
authorMarc Neudert <marc.neudert@gmail.com>2017-07-20 18:50:05 +0300
committerStefan Giehl <stefan@piwik.org>2017-07-20 18:50:05 +0300
commit9c7d7ff1c842132bc8f3f0ff8c296eb7d3959c30 (patch)
tree06821b18af66dc55335897b87f27a1bf77e4249d /plugins/UserCountryMap/javascripts/visitor-map.js
parenteaf1e1536eb374c552d9648931903c431f0aae50 (diff)
removes usage of deprecated jQuery.size() (#11883)
Diffstat (limited to 'plugins/UserCountryMap/javascripts/visitor-map.js')
-rw-r--r--plugins/UserCountryMap/javascripts/visitor-map.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/UserCountryMap/javascripts/visitor-map.js b/plugins/UserCountryMap/javascripts/visitor-map.js
index 76093f90fe..2a8f2d52b4 100644
--- a/plugins/UserCountryMap/javascripts/visitor-map.js
+++ b/plugins/UserCountryMap/javascripts/visitor-map.js
@@ -1172,7 +1172,7 @@
// use the popover title returned from the server
var title = box.find('div.popover-title');
- if (title.size() > 0) {
+ if (title.length) {
Piwik_Popover.setTitle(title.html());
title.remove();
}
@@ -1251,7 +1251,7 @@
}
// check if CSS is already loaded
- if ($("link[href='" + config.mapCssPath + "']").size() === 0) {
+ if (!$("link[href='" + config.mapCssPath + "']").length) {
// not loaded
map.loadCSS(config.mapCssPath, postCSSLoad);
} else {