diff --git a/core/modules/views/js/ajax_view.js b/core/modules/views/js/ajax_view.js index 6422dd0a5563f401e2dc0f26a4c22695f76ff1cc..85975b56ce3561a0f42921e2c6d8773e6181fde2 100644 --- a/core/modules/views/js/ajax_view.js +++ b/core/modules/views/js/ajax_view.js @@ -128,13 +128,11 @@ /** * @return {bool} * If there is at least one parent with a view class return false. - * - * @todo remove .size() replace with .length. */ Drupal.views.ajaxView.prototype.filterNestedViews = function () { // If there is at least one parent with a view class, this view // is nested (e.g., an attachment). Bail. - return !this.$view.parents('.view').size(); + return !this.$view.parents('.view').length; }; /**