Sha256: f24394e116e10d483789270dac45de1649c12fd9533becd6e108f403fa979f64
Contents?: true
Size: 862 Bytes
Versions: 5
Compression:
Stored size: 862 Bytes
Contents
Ext.define('Sample.Developer', { extend: 'Sample.Person', statics: { averageIQ: 120 }, config: { languages: ['JavaScript', 'C++', 'Python'] }, constructor: function(config) { this.isGeek = true; // Apply a method from the parent class' prototype return this.callParent(arguments); }, canCode: function(language) { return Ext.Array.contains(this.getLanguages(), language); }, code: function(language) { if (!this.canCode(language)) { alert("I can't code in: " + language); return this; } alert("I'm coding in: " + language); this.eat("Bugs"); return this; }, clone: function() { var self = this.statics(), cloned = new self(this.config); return cloned; } });
Version data entries
5 entries across 5 versions & 1 rubygems