/** * A link * @constructor */ hui.ui.Link = function(options) { this.options = options; this.name = options.name; this.element = hui.get(options.element); hui.ui.extend(this); this.addBehavior(); }; hui.ui.Link.prototype = { /** @private */ addBehavior : function() { var self = this; hui.listen(this.element,'click',function(e) { hui.stop(e); window.setTimeout(function() { self.fire('click'); }); }); } };