summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNathaniel Catchpole2016-11-21 13:21:00 (GMT)
committerNathaniel Catchpole2016-11-21 13:21:00 (GMT)
commita7507146ff6c4572aff3f618f60e531935c7884c (patch)
tree9228a0cba803e6b1ed76675b8250d64578c5271e
parent235bfca5ae52d4534a0eff8fe9ca3cb48fa2fc76 (diff)
Issue #2828140 by isaac_chansky: ajax_view - replace jQuery's .size() with .length
-rw-r--r--core/modules/views/js/ajax_view.js4
1 files changed, 1 insertions, 3 deletions
diff --git a/core/modules/views/js/ajax_view.js b/core/modules/views/js/ajax_view.js
index 6422dd0..85975b5 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;
};
/**