Skip to content

Commit

Permalink
Table plugin fix (#159)
Browse files Browse the repository at this point in the history
  • Loading branch information
bocceli authored and vova07 committed Mar 26, 2019
1 parent e197b73 commit d40001d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/assets/plugins/table/table.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
},
Expand Down Expand Up @@ -347,7 +347,7 @@

this.buffer.set();

if ($table.find('thead').size() !== 0)
if ($table.find('thead').length !== 0)
{
this.table.deleteHead();
return;
Expand All @@ -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();

Expand Down

0 comments on commit d40001d

Please sign in to comment.