id: b.imageId || undefined,
'class': 'mw-toolbar-editbutton'
} ).click( function ( e ) {
- if ( $.isFunction( b.onClick ) ) {
+ if ( b.onClick !== undefined ) {
b.onClick( e );
} else {
toolbar.insertTags( b.tagOpen, b.tagClose, b.sampleText );
}
+
return false;
} );
isReady = false;
$toolbar = false;
+
/**
* @private
* @property {Array}
}
},
/**
+ * Add multiple buttons to the toolbar (see also #addButton).
+ *
* Example usage:
+ *
* addButtons( [ { .. }, { .. }, { .. } ] );
* addButtons( { .. }, { .. } );
*