webgme
Version:
Web-based Generic Modeling Environment
41 lines (31 loc) • 765 B
JavaScript
/*globals define */
/*jshint browser: true*/
/**
* @author rkereskenyi / https://github.com/rkereskenyi
*/
define([], function () {
'use strict';
var ToolbarItemBase;
ToolbarItemBase = function () {
this._toolbar = undefined;
};
ToolbarItemBase.prototype.show = function () {
if (this.el) {
this.el.show();
}
};
ToolbarItemBase.prototype.hide = function () {
if (this.el) {
this.el.hide();
}
};
ToolbarItemBase.prototype.enabled = function (/* enabled */) {
};
ToolbarItemBase.prototype.destroy = function () {
if (this.el) {
this.el.remove();
this.el = undefined;
}
};
return ToolbarItemBase;
});