From 6ce5ad08164ab802e2782ac827e6fae6884c96e2 Mon Sep 17 00:00:00 2001 From: bocek Date: Tue, 19 Mar 2019 00:09:21 +0100 Subject: [PATCH] Table plugin fix size() replaced with length --- src/assets/plugins/table/table.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/assets/plugins/table/table.js b/src/assets/plugins/table/table.js index 7eb69d5..d8c5ed0 100755 --- a/src/assets/plugins/table/table.js +++ b/src/assets/plugins/table/table.js @@ -264,7 +264,7 @@ var $table = $(this.selection.getParent()).closest('table'); if (!this.utils.isRedactorParent($table)) return false; - if ($table.size() === 0) return false; + if ($table.length === 0) return false; return $table; }, @@ -347,7 +347,7 @@ this.buffer.set(); - if ($table.find('thead').size() !== 0) + if ($table.find('thead').length !== 0) { this.table.deleteHead(); return; @@ -371,7 +371,7 @@ if (!$table) return; var $thead = $table.find('thead'); - if ($thead.size() === 0) return; + if ($thead.length === 0) return; this.buffer.set();