Rev 969 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed
| Rev 969 | Rev 999 | ||
|---|---|---|---|
| Line 1... | Line 1... | ||
| 1 | 1 | ||
| 2 | function Service(name, id) |
2 | function Service(type, name, id) |
| 3 | { |
3 | { |
| - | 4 | this.myType = type; |
|
| 4 | this.myName = name; |
5 | this.myName = name; |
| 5 | this.myId = id; |
6 | this.myId = id; |
| 6 | this.myEventCallbacks = new Array(); |
7 | this.myEventCallbacks = new Array(); |
| 7 | this.myInitialArguments = new Array(); |
8 | this.myInitialArguments = new Array(); |
| 8 | } |
9 | } |
| 9 | 10 | ||
| - | 11 | Service.prototype.myType = null; |
|
| 10 | Service.prototype.myName = null; |
12 | Service.prototype.myName = null; |
| 11 | Service.prototype.myId = null; |
13 | Service.prototype.myId = null; |
| 12 | Service.prototype.myInitialArguments = null; |
14 | Service.prototype.myInitialArguments = null; |
| 13 | Service.prototype.myEventCallbacks = null; |
15 | Service.prototype.myEventCallbacks = null; |
| 14 | 16 | ||
| 15 | Service.prototype.initialize = function(initialArguments) |
17 | Service.prototype.initialize = function(initialArguments) |
| 16 | { |
18 | { |
| 17 | this.myInitialArguments = initialArguments; |
19 | this.myInitialArguments = initialArguments; |
| - | 20 | } |
|
| - | 21 | ||
| - | 22 | Service.prototype.getType = function() |
|
| - | 23 | { |
|
| - | 24 | return this.myType; |
|
| 18 | } |
25 | } |
| 19 | 26 | ||
| 20 | Service.prototype.getName = function() |
27 | Service.prototype.getName = function() |
| 21 | { |
28 | { |
| 22 | return this.myName; |
29 | return this.myName; |