================
An Alloy UI synthetic event for Konami Code Implementation
You can configure as an "lazy-load" module, using YUI Loader, preventing sync bad loading files.
AUI({
modules: {
'aui-event-konami': {
fullpath: '../../build/aui-event-konami/aui-event-konami.js',
requires: ['event-synthetic']
}
}
}).use('aui-event-konami', function (Y) {
// Your code goes here
});
AUI().ready('aui-event-konami', function(A) {
A.on('konami', function() {
alert('You have pressed the right keys! Unlocking the world!');
});
});