mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-29 16:44:51 +00:00
12 lines
297 B
JavaScript
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 = {};
|