Sha256: fcc58c83701d9f402095d0abcfdd0d1d1b157ed92e0b2e44368929ac2fdf6fda
Contents?: true
Size: 414 Bytes
Versions: 5
Compression:
Stored size: 414 Bytes
Contents
Ext.define('Sample.ability.CanSing', { config: { knownSongs: ['Yesterday', 'Happy New Year', 'Jingle Bells'] }, canSing: true, sing: function(songName) { if (!Ext.Array.contains(this.getKnownSongs(), songName)) { alert("Sorry! I can't sing " + songName); } else { alert("I'm singing " + songName); } return this; } });
Version data entries
5 entries across 5 versions & 1 rubygems