Skip to content

Commit

Permalink
simplify table option checks (#1656)
Browse files Browse the repository at this point in the history
  • Loading branch information
mojavelinux committed Sep 22, 2022
1 parent 95ca816 commit a17dd6e
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions packages/core/src/asciidoctor-core-api.js
Original file line number Diff line number Diff line change
Expand Up @@ -3365,8 +3365,7 @@ Table.prototype.hasHeaderOption = function () {
* @memberof Table
*/
Table.prototype.hasFooterOption = function () {
const footerOption = this.getAttributes()['footer-option']
return footerOption === ''
return this.isOption('footer')
}

/**
Expand All @@ -3375,8 +3374,7 @@ Table.prototype.hasFooterOption = function () {
* @memberof Table
*/
Table.prototype.hasAutowidthOption = function () {
const autowidthOption = this.getAttributes()['autowidth-option']
return autowidthOption === ''
return this.isOption('autowidth')
}

/**
Expand Down

0 comments on commit a17dd6e

Please sign in to comment.