2016-12-16 11:39:53 -07:00

18 lines
316 B
JavaScript

function Widget(config) {
this.label = config.label;
this.name = 'app-bar';
var el = this.el;
this.appendHtml = function(html) {
el.innerHTML += html;
};
}
Widget.prototype = {
emitTestEvent: function() {
this.emit('testEvent', 'a', 'b');
}
};
exports.Widget = Widget;