Skip to content
Snippets Groups Projects
Commit a7507146 authored by catch's avatar catch
Browse files

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

parent 235bfca5
No related branches found
No related tags found
No related merge requests found
......@@ -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;
};
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment