Skip to content
  • Projects
  • Groups
  • Snippets
  • Help

Павел Резуненко / MTAweb

  • This project
    • Loading...
  • Sign in
Go to a project
  • Project
  • Repository
  • Issues 1
  • Merge Requests 0
  • Pipelines
  • Wiki
  • Snippets
  • Settings
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Branches
  • Tags
  • Contributors
  • Graph
  • Compare
  • Charts
Switch branch/tag
  • mtaweb
  • ..
  • Sample
  • CoolGuy.js
  • Павел Резуненко's avatar
    Added Sencha framework · aa93a603
    Павел Резуненко committed Oct 29, 2012
    aa93a603
CoolGuy.js 428 Bytes
BlameHistoryPermalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 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);
    }
});