Upgrade to ExtJS 4.0.0 - Released 04/26/2011
[extjs.git] / src / core / examples / src / Sample / Musician.js
diff --git a/src/core/examples/src/Sample/Musician.js b/src/core/examples/src/Sample/Musician.js
new file mode 100644 (file)
index 0000000..5929a4b
--- /dev/null
@@ -0,0 +1,20 @@
+Ext.define('Sample.Musician', {
+    extend: 'Sample.Person',
+
+    statics: {
+        clone: function(musician) {
+            return new this({
+                name: musician.getName(),
+                height: musician.getHeight(),
+                isCool: musician.getIsCool(),
+                gender: musician.getGender()
+            });
+        }
+    },
+
+    mixins: {
+        guitar: 'Sample.ability.CanPlayGuitar',
+        compose: 'Sample.ability.CanComposeSongs',
+        sing: 'Sample.ability.CanSing'
+    }
+});