Reformat Code Option. Sort by function names.

  Ext.regController
("dashboard", {
        goToShoppingCart:function() {
            Ext.dispatch({
               controller:"shoppingCart",
               action:"loadCart"
            });
        },
        goToDashboard:function() {},
        goToContact:function() {}}
);

Ext.regController("dashboard", {
        goToContact:function() {},
        goToDashboard:function() {},
        goToShoppingCart:function() {
            Ext.dispatch({
               controller:"shoppingCart",
               action:"loadCart"
            });
        }
    }
);

Please sign in to leave a comment.