X-Git-Url: http://git.bytex64.net/?a=blobdiff_plain;f=www%2Fjssrc%2Fblerg%2FLink.js;fp=www%2Fjssrc%2Fblerg%2FLink.js;h=36cfb30f9e1bda7a9506c716e624c29f399360fb;hb=80ad774f55998cc11e08694245dfd6cb1b49a86f;hp=b2468bf6dd12ddee8b6f3efa1cf450bed6485798;hpb=a579fec94d5058776ea0fb6f47f922ea48ff876f;p=blerg.git diff --git a/www/jssrc/blerg/Link.js b/www/jssrc/blerg/Link.js index b2468bf..36cfb30 100644 --- a/www/jssrc/blerg/Link.js +++ b/www/jssrc/blerg/Link.js @@ -1,25 +1,25 @@ 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) { - inEvent.preventDefault(); - if (this.href != '#') - location.href = this.href; - this.bubble('onNavigate'); - return true; - } + 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) { + inEvent.preventDefault(); + if (this.href != '#') + location.href = this.href; + this.bubble('onNavigate'); + return true; + } });