Issue #2828140 by isaac_chansky: ajax_view - replace jQuery's .size() with .length

8.3.x
Nathaniel Catchpole 2016-11-21 13:21:00 +00:00
parent 235bfca5ae
commit a7507146ff
1 changed files with 1 additions and 3 deletions

View File

@ -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;
};
/**