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 // parse 'false' as false boolean
value = value === 'false' ? false : value; value = value === 'false' ? false : value;
options[ key ] = value; options[ key ] = value;
if ( key === 'layoutMode' && changeLayoutMode ) { if ( key === 'layoutMode' && typeof changeLayoutMode === 'function' ) {
// changes in layout modes need extra logic // changes in layout modes need extra logic
changeLayoutMode( $this, options ) changeLayoutMode( $this, options )
} else { } else {

Loading…
Cancel
Save