Commit a7507146 authored by catch's avatar catch

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

parent 235bfca5
......@@ -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;
};
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment