Upgrade to ExtJS 4.0.0 - Released 04/26/2011
[extjs.git] / src / core / examples / src / Sample / CTO.js
1 Ext.define('Sample.CTO', {
2     extend: 'Sample.Developer',
3
4     statics: {
5         averageIQ: 140
6     },
7
8     constructor: function(config) {
9         this.callParent(arguments);
10
11         this.isSuperGeek = true;
12     },
13
14     hireNewDeveloperLike: function(developer) {
15         return developer.clone();
16     },
17
18     clone: function() {
19         var self = this.statics(),
20             cloned = new self(this.config);
21
22         alert(Ext.getClassName(this.callParent()));
23         return cloned;
24     }
25 });