module.exports = function() { events: { 'click button': 'command' }, template: 'spytext-toolbar', command: function() { var command = $(e.currentTarget).attr('data-command'); } }; var SpytextButton = function(config, spytext) { this.spytext = spytext; this.config = typeof config.preset === 'string' ? merge(this.presets[config.preset], config) : config; this.element = $('