namibia
feef9ce7f4863195874b73ad2e0c8374d53ec4e6
namibia / public / ape-source / Core / Events.js
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
APE.Events = new Class({ Extends: Events, onRaw: function(type, fn, internal) { return this.addEvent('raw_' + type.toLowerCase(), fn, internal); }, onCmd: function(type, fn, internal) { return this.addEvent('cmd_' + type.toLowerCase(), fn, internal); }, onError: function(type, fn, internal) { return this.addEvent('error_' + type, fn, internal); }, removeEvent: function(type, fn) { return Events.prototype.removeEvent.run([type, this.$originalEvents[type][fn]], this); } }); |
Commits for namibia/public/ape-source/Core/Events.js
Revision | Author | Commited | Message |
---|---|---|---|
df0489 ... | Mark | Fri 14 Oct, 2016 10:01:00 +0000 | initial commit |