/www/jssrc/blerg/Link.js
enyo.kind({
    name: "blerg.Link",
    kind: "Control",
    tag: "a",
    published: {
        href: "#",
    },
    handlers: {
        onclick: "muteLink",
    },
    create: function() {
        this.inherited(arguments);
        this.hrefChanged();
    },
    hrefChanged: function() {
        this.setAttribute('href', this.href);
    },
    muteLink: function(inSender, inEvent) {
        if (inEvent.which > 1)
            return;
        inEvent.preventDefault();
        if (this.href != '#')
            location.href = this.href;
        this.bubble('onNavigate');
        return true;
    }
});