diff -r 3ab36f402b0c -r 198c2b79f5e1 src/widgets/HelloWorld.js --- a/src/widgets/HelloWorld.js Thu Jan 02 16:40:25 2014 +0100 +++ b/src/widgets/HelloWorld.js Thu Jan 02 16:49:20 2014 +0100 @@ -7,13 +7,13 @@ IriSP.Widgets.HelloWorld = function(player, config) { console.log("Calling IriSP.Widget's constructor from IriSP.HelloWorldWidget"); IriSP.Widgets.Widget.call(this, player, config); -}; +} IriSP.Widgets.HelloWorld.prototype = new IriSP.Widgets.Widget(); IriSP.Widgets.HelloWorld.prototype.defaults = { text: "world" -}; +} IriSP.Widgets.HelloWorld.prototype.template = '

{{l10n.Hello}} {{text}}

Looks like we have {{source.contents.annotation.length}} annotations in this feed

'; @@ -25,9 +25,9 @@ "en" : { "Hello" : "Hello," } -}; +} IriSP.Widgets.HelloWorld.prototype.draw = function() { this.renderTemplate(); console.log("HelloWorldWidget was drawn"); -}; \ No newline at end of file +} \ No newline at end of file