Skip to content

Commit

Permalink
Pasted the wrong version when copy to fork. Updated.
Browse files Browse the repository at this point in the history
  • Loading branch information
CasualNetworks committed Jul 3, 2012
1 parent 971dc02 commit 98176eb
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions build/deft-debug.js
Original file line number Diff line number Diff line change
Expand Up @@ -647,10 +647,10 @@ Ext.Class.registerPreprocessor('controller', function (Class, data, hooks, callb
delete data.controller;
if (controllerClass != null) {

if (!this.__proto__.controllerState) {
this.__proto__.controllerState = {deftJS : {currentController : undefined, controllerChain : {attempted : [], processed : []}}};
if (!Class.prototype.controllerState) {
Class.prototype.controllerState = {deftJS : {currentController : undefined, controllerChain : {attempted : [], processed : []}}};
}
controllerState = this.__proto__.controllerState;
controllerState = Class.prototype.controllerState;
controllerState.deftJS.controllerChain.attempted.push({id : Ext.id(undefined, 'attempted-controller'), class : controllerClass});

if (!data.hasOwnProperty('constructor')) {
Expand Down Expand Up @@ -683,6 +683,9 @@ Ext.Class.registerPreprocessor('controller', function (Class, data, hooks, callb
this.getController = function () {
return controller;
};
this.getControllerState = function () {
return controllerState;
};
originalConstructor.apply(this, arguments);
controller.controlView(this);
return this;
Expand Down

0 comments on commit 98176eb

Please sign in to comment.