/**
 * https://github.com/ribs
 * 
 * Copyright 2014 weber chris
 * Released under the MIT license
 * https://chris.lu
 */

/**
 * 
 * ribs controller
 * 
 * @param {type} _
 * @param {type} Backbone
 * @returns {_L17.ribs.Controller|ribs.Controller}
 */
define([
    'underscore',
    'backbone'
    
], function (_, Backbone) {
    
    'use strict';
    
    var ribs = {};

    ribs.Controller = function ControllerFunction() {

        this.initialize.apply(this, arguments);

    };

    _.extend(ribs.Controller.prototype, Backbone.Events, {

        initialize: function controllerInitializeFunction(options, configuration, router) {

            this.options = options || {};
            this.router = router;

            // if oninitialize exists
            if (this.onInitialize) {

                // execute it now
                this.onInitialize(this.options, configuration, this.router);

            }

        }
        /*,
        dispatch: function controllerDispatchFunction(containerId) {

            container.dispatch(containerId);

        }*/

    });
    
    ribs.Controller.extend = Backbone.Model.extend;
    
    return ribs.Controller;

});

@@ -929,148 +929,8 @@
    %7D
-%0A        /*,%0A        dispatch: function controllerDispatchFunction(containerId) %7B%0A%0A            container.dispatch(containerId);%0A%0A        %7D*/
 %0A%0A  

Update controller.js