mediawiki-extensions-Visual.../modules/es/bases/es.Tool.js
2011-12-05 20:42:45 +00:00

12 lines
286 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 = {};