function Widget(selector) {
this._ns = (Math.random() * 1e6|0).toString(36)
this.$el = $(selector);
this.$el.on('click.' + this._ns, this.methodFoo.bind(this);
this.$el.on('input.' + this._ns, this.methodBar.bind(this);
}
Widget.prototype = {
destroy: function () {
this.$el.off('.' + this._ns);
}
};