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

12 lines
286 B
JavaScript
Raw Normal View History

2011-12-04 02:59:53 +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 = {};