Created
June 8, 2011 15:15
-
-
Save tissak/1014616 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ipv.classUtil.newManager = function(managerName, subjectClass){ | |
var manager = dojo.getObject(managerName); | |
if(typeof(manager) == "undefined"){ | |
manager = new function(){ | |
this._widget = null; | |
this.getWidget = function(options){ | |
options = dojo.mixin({}, options); | |
if (!this._widget) { | |
this._widget = new subjectClass(); | |
} | |
this._widget.setOptions(options); | |
return this._widget; | |
} | |
}; | |
dojo.setObject(managerName, manager); | |
} | |
return manager; | |
} | |
ipv.classUtil.newManager("ipv.widget.Breeze.BankDetailWizardManager", "ipv.widget.Breeze.BankDetailWizard"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment