namibia
df0489e1eeeeab5a9bd44e1d84fce49924fe1bac
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 namibiapublic/ape-source/Core/Events.js
Revision | Author | Commited | Message |
---|---|---|---|
df0489 ... | Mark | Fri 14 Oct, 2016 10:01:00 +0000 | initial commit |