js/components/matrix.js
function(element, options) {
        this.setElement(element);
        this.setOptions(options, this.element);

        // Set events
        this.addEvent('horizontalresize', 'window', $.debounce(this.onResize.bind(this)));

        this.initialize();

        // Render the matrix
        this.refresh();
    }
function(element, options) {
        this.setElement(element);
        this.setOptions(options, this.element);

        // Set events
        this.addEvent('horizontalresize', 'window', $.debounce(this.onResize.bind(this)));

        this.initialize();

        // Render the matrix
        this.refresh();
    }
function ( element , options ) { this . setElement ( element ) ; this . setOptions ( options , this . element ) ; // Set events this . addEvent ( 'horizontalresize' , 'window' , $ . debounce ( this . onResize . bind ( this ) ) ) ; this . initialize ( ) ; // Render the matrix this . refresh ( ) ; }
Initialize the matrix.

@param {jQuery} element
@param {Object} [options]
Initialize the matrix .