text changes to registration mail content
[namibia] / public / ape-source / Core / Events.js
1 APE.Events = new Class({
2         
3         Extends: Events,
4                 
5         onRaw: function(type, fn, internal) {
6                 return this.addEvent('raw_' + type.toLowerCase(), fn, internal);
7         },
8         
9         onCmd: function(type, fn, internal) {                                  
10                 return this.addEvent('cmd_' + type.toLowerCase(), fn, internal);
11         },
12         
13         onError: function(type, fn, internal) {                                
14                 return this.addEvent('error_' + type, fn, internal);
15         },
16
17         removeEvent: function(type, fn) {
18                 return Events.prototype.removeEvent.run([type, this.$originalEvents[type][fn]], this);
19         }
20         
21 });