src/js/widgets/helloWorldWidget.js
author hamidouk
Thu, 02 Feb 2012 16:07:12 +0100
branchpopcorn-port
changeset 766 aa26ddaf2556
parent 661 48c1beea7b1c
child 868 a525cc2214e7
permissions -rw-r--r--
fixed raphael's files to remove trailing colon at the end of objects to make the google closure compiler happy.

IriSP.HelloWorldWidget = function(Popcorn, config, Serializer) {
  IriSP.Widget.call(this, Popcorn, config, Serializer);
}

IriSP.HelloWorldWidget.prototype = new IriSP.Widget();

IriSP.HelloWorldWidget.prototype.draw = function() {
    this.selector
        .html('Hello, world')
        .css({
            "text-align" : "center",
            "padding": "10px 0",
            "font-size" : "14px"
        });
        
    console.log(this);
}