mediawiki-extensions-Visual.../modules/es/tools/es.Tool.js
2011-11-30 23:05:06 +00:00

12 lines
297 B
JavaScript

es.Tool = function( toolbar, name ) {
this.toolbar = toolbar;
this.name = name;
this.$ = $( '<div>' ).attr( 'title', this.name );
};
es.Tool.prototype.updateState = function() {
throw 'Tool.updateState not implemented in this subclass:' + this.constructor;
};
es.Tool.tools = {};