Browse Source

demos : properly check for changeLayoutMode

pull/96/head
David DeSandro 14 years ago
parent
commit
cce3c6b456
  1. 2
      _includes/option-set-buttons.js

2
_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 {

Loading…
Cancel
Save