1 APE.Events = new Class({
5 onRaw: function(type, fn, internal) {
6 return this.addEvent('raw_' + type.toLowerCase(), fn, internal);
9 onCmd: function(type, fn, internal) {
10 return this.addEvent('cmd_' + type.toLowerCase(), fn, internal);
13 onError: function(type, fn, internal) {
14 return this.addEvent('error_' + type, fn, internal);
17 removeEvent: function(type, fn) {
18 return Events.prototype.removeEvent.run([type, this.$originalEvents[type][fn]], this);