X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/0494b8d9b9bb03ab6c22b34dae81261e3cd7e3e6..7a654f8d43fdb43d78b63d90528bed6e86b608cc:/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 index 00000000..ade0c187 --- /dev/null +++ b/src/core/examples/src/Sample/CoolGuy.js @@ -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); + } +});