Skip to content

Instantly share code, notes, and snippets.

@subtleGradient
Forked from nktpro/gist:1114601
Created July 29, 2011 20:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save subtleGradient/1114722 to your computer and use it in GitHub Desktop.
Save subtleGradient/1114722 to your computer and use it in GitHub Desktop.
instance config pattern
Ext.define('Ext.SomeThing', {
config: {
foo: {
height: 123,
baz: {
something: 'zzz'
}
},
bar: {
something: 'abc'
}
},
applyFoo: function(config){
this.setInstanceConfig(this.getFoo(), config);
},
applyBar: function(){
this.setInstanceConfig(this.getBar(), config);
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment