From 7cd916f7ae3d55b8562df813d5c91b8d7f98e867 Mon Sep 17 00:00:00 2001
From: Nathaniel Catchpole <catch@35733.no-reply.drupal.org>
Date: Wed, 25 Jan 2017 13:14:14 +0000
Subject: [PATCH] Issue #2841767 by vaplas: Remove .size() replace with .length

---
 core/misc/entity-form.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/core/misc/entity-form.js b/core/misc/entity-form.js
index f86c416e9d9f..87253c90223e 100644
--- a/core/misc/entity-form.js
+++ b/core/misc/entity-form.js
@@ -41,7 +41,7 @@
         var translate;
         var $checkbox = $translationContext.find('.js-form-item-translation-translate input');
 
-        if ($checkbox.size()) {
+        if ($checkbox.length) {
           translate = $checkbox.is(':checked') ? Drupal.t('Needs to be updated') : Drupal.t('Does not need to be updated');
         }
         else {
-- 
GitLab