X-Git-Url: http://git.bytex64.net/?a=blobdiff_plain;f=www%2Fjssrc%2Fblerg%2FTitle.js;h=a8282fba06b34c5d17b273dddc750decae28169f;hb=3e5f69d01b9488475413d4ecce8161ab7a889ca2;hp=bd82520105d709b18f0dbb0cb902df6e563200d7;hpb=55431b133192e59138a51591d7ef4ef20b6ceb52;p=blerg.git diff --git a/www/jssrc/blerg/Title.js b/www/jssrc/blerg/Title.js index bd82520..a8282fb 100644 --- a/www/jssrc/blerg/Title.js +++ b/www/jssrc/blerg/Title.js @@ -1,30 +1,30 @@ enyo.kind({ - name: "blerg.Title", - kind: "Control", - style: "float: left; width: 40%", - published: { - section: "" - }, - handlers: { - onSetTitle: "setTitle" - }, - components: [ - {kind: "Image", classes: "logo", src: "images/blerglogo.png", attributes: {width: 125, height: 122}}, - {tag: "h1", components: [ - {kind: "blerg.Link", href: "#/", content: "Blërg!"} - ]}, - {tag: "h2", components: [ - {name: "section", tag: "span"} - ]} - ], - create: function() { - this.inherited(arguments); - }, - sectionChanged: function() { - this.$.section.setContent(this.section); - }, - setTitle: function(inSender, inEvent) { - if (inEvent.section) - this.setSection(inEvent.section); - } + name: "blerg.Title", + kind: "Control", + style: "float: left; width: 40%;", + published: { + section: "" + }, + handlers: { + onSetTitle: "setTitle" + }, + components: [ + {kind: "Image", classes: "logo", src: "images/blerglogo.png", attributes: {width: 125, height: 122}}, + {tag: "h1", components: [ + {kind: "blerg.Link", href: "/#/", content: "Blërg!"} + ]}, + {tag: "h2", components: [ + {name: "section", tag: "span"} + ]} + ], + create: function() { + this.inherited(arguments); + }, + sectionChanged: function() { + this.$.section.setContent(this.section); + }, + setTitle: function(inSender, inEvent) { + if (inEvent.section) + this.setSection(inEvent.section); + } });