Issue #2828140 by isaac_chansky: ajax_view - replace jQuery's .size() with .length
parent
235bfca5ae
commit
a7507146ff
|
@ -128,13 +128,11 @@
|
||||||
/**
|
/**
|
||||||
* @return {bool}
|
* @return {bool}
|
||||||
* If there is at least one parent with a view class return false.
|
* 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 () {
|
Drupal.views.ajaxView.prototype.filterNestedViews = function () {
|
||||||
// If there is at least one parent with a view class, this view
|
// If there is at least one parent with a view class, this view
|
||||||
// is nested (e.g., an attachment). Bail.
|
// is nested (e.g., an attachment). Bail.
|
||||||
return !this.$view.parents('.view').size();
|
return !this.$view.parents('.view').length;
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue