diff options
author | Marc Neudert <marc.neudert@gmail.com> | 2017-07-20 18:50:05 +0300 |
---|---|---|
committer | Stefan Giehl <stefan@piwik.org> | 2017-07-20 18:50:05 +0300 |
commit | 9c7d7ff1c842132bc8f3f0ff8c296eb7d3959c30 (patch) | |
tree | 06821b18af66dc55335897b87f27a1bf77e4249d /plugins/CoreHome/templates | |
parent | eaf1e1536eb374c552d9648931903c431f0aae50 (diff) |
removes usage of deprecated jQuery.size() (#11883)
Diffstat (limited to 'plugins/CoreHome/templates')
-rwxr-xr-x | plugins/CoreHome/templates/widgetContainer.twig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/CoreHome/templates/widgetContainer.twig b/plugins/CoreHome/templates/widgetContainer.twig index 06121d1eba..f09cbbc23e 100755 --- a/plugins/CoreHome/templates/widgetContainer.twig +++ b/plugins/CoreHome/templates/widgetContainer.twig @@ -7,7 +7,7 @@ $(function () { var piwikWidget = $('[piwik-widget][containerid={{ containerId|e('js') }}]'); - var isExportedAsWidget = $('body > .widget').size(); + var isExportedAsWidget = $('body > .widget').length; if (!isExportedAsWidget) { angular.element(document).injector().invoke(function($compile) { |