mediawiki-extensions-Visual.../modules/es/bases/es.Tool.js
Trevor Parscal a48d2a5787 * Added shortcut for links (ctrl/cmd + K)
* Added title attributes for tools
2011-12-09 21:16:42 +00:00

25 lines
501 B
JavaScript

/**
* Creates an es.Tool object.
*
* @class
* @constructor
* @param {es.ToolbarView} toolbar
* @param {String} name
*/
es.Tool = function( toolbar, name, title ) {
this.toolbar = toolbar;
this.name = name;
this.title = title;
this.$ = $( '<div class="es-tool"></div>' ).attr( 'title', this.title );
};
/* Static Members */
es.Tool.tools = {};
/* Methods */
es.Tool.prototype.updateState = function() {
throw 'Tool.updateState not implemented in this subclass:' + this.constructor;
};