2
|
1 |
|
|
2 |
|
|
3 |
function Test() {
|
|
4 |
}
|
|
5 |
|
|
6 |
Test.prototype.getEventBinding = function(id) {
|
|
7 |
return events[id]
|
|
8 |
}
|
|
9 |
Test.prototype.getEventEventId = function(id) {
|
|
10 |
return events[id].eventId
|
|
11 |
}
|
|
12 |
Test.prototype.getEventEventName = function(id) {
|
|
13 |
return events[id].eventName
|
|
14 |
}
|
|
15 |
Test.prototype.getEventMethod = function(id) {
|
|
16 |
return events[id].handlerName
|
|
17 |
}
|
|
18 |
Test.prototype.getEventSymbol = function(id) {
|
|
19 |
return events[id].handlerSymbol
|
|
20 |
}
|
|
21 |
|
|
22 |
Test.prototype.getEventParamBinding = function(instance, id) {
|
|
23 |
var events = instance.events
|
|
24 |
return events[id]
|
|
25 |
}
|
|
26 |
Test.prototype.getEventParamEventId = function(instance, id) {
|
|
27 |
var events = instance.events
|
|
28 |
return events[id].eventId
|
|
29 |
}
|
|
30 |
Test.prototype.getEventParamEventName = function(instance, id) {
|
|
31 |
var events = instance.events
|
|
32 |
return events[id].eventName
|
|
33 |
}
|
|
34 |
Test.prototype.getEventParamMethod = function(instance, id) {
|
|
35 |
var events = instance.events
|
|
36 |
return events[id].handlerName
|
|
37 |
}
|
|
38 |
Test.prototype.getEventParamSymbol = function(instance, id) {
|
|
39 |
var events = instance.events
|
|
40 |
return events[id].handlerSymbol
|
|
41 |
}
|