Mootools skeleton class

|

Mootools skeleton class

var SomeClass = new Class({
    Implements: [Events, Options],

    version: 0.1, //some version

    options :
    {
        option1: "",
        option2: 5,
        option3: null,
    },

    // constructor
    initialize: function(obj, options)
    {
        this.obj = obj;
        this.setOptions(options);

    someFunction: function()
    {
        // body goes here
    },
});

SomeClass.implement(new Events, new Options);