mediawiki-extensions-Visual.../modules/es/tools/es.Tool.js

12 lines
297 B
JavaScript
Raw Normal View History

2011-11-30 23:05:06 +00:00
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 = {};