diff --git a/_includes/option-set-buttons.js b/_includes/option-set-buttons.js index ab930c0..0b63054 100644 --- a/_includes/option-set-buttons.js +++ b/_includes/option-set-buttons.js @@ -19,7 +19,7 @@ // parse 'false' as false boolean value = value === 'false' ? false : value; options[ key ] = value; - if ( key === 'layoutMode' && changeLayoutMode ) { + if ( key === 'layoutMode' && typeof changeLayoutMode === 'function' ) { // changes in layout modes need extra logic changeLayoutMode( $this, options ) } else {