Upgrade to ExtJS 4.0.0 - Released 04/26/2011
[extjs.git] / src / core / examples / src / Sample / CoolGuy.js
diff --git a/src/core/examples/src/Sample/CoolGuy.js b/src/core/examples/src/Sample/CoolGuy.js
new file mode 100644 (file)
index 0000000..ade0c18
--- /dev/null
@@ -0,0 +1,20 @@
+Ext.define('Sample.CoolGuy', {
+    extend: 'Sample.Person',
+
+    mixins: {
+        guitar: 'Sample.ability.CanPlayGuitar',
+        sing: 'Sample.ability.CanSing'
+    },
+
+    constructor: function() {
+        this.config.knownSongs.push("Love Me or Die");
+
+        return this.callParent(arguments);
+    },
+
+    sing: function() {
+        alert("Ahem...");
+
+        return this.mixins.sing.sing.apply(this, arguments);
+    }
+});