Changes between Initial Version and Version 1 of Ticket #4759, comment 1
- Timestamp:
- Sep 4, 2017, 4:17:25 AM (7 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #4759, comment 1
initial v1 2 2 3 3 With 4 ``` 4 {{{ 5 5 Attack.prototype.Init = function() 6 6 { … … 9 9 warn(uneval(this.template)); 10 10 }; 11 ``` 11 }}} 12 12 I get 13 ``` 13 {{{ 14 14 WARNING: ({Melee:{Crush:"0.0", Hack:"12.0", MaxRange:"4.0", Pierce:"0.0", PrepareTime:"500", RepeatTime:"1000", RestrictedClasses:{'@datatype':"tokens", _string:"Structure Ship Siege"}}}) 15 15 ERROR: JavaScript error: simulation/components/Attack.js line 187 16 16 TypeError: ({Melee:{Crush:"0.0", Hack:"12.0", MaxRange:"4.0", Pierce:"0.0", PrepareTime:"500", RepeatTime:"1000", RestrictedClasses:{'@datatype':"tokens", _string:"Structure Ship Siege"}}}) is not extensible 17 17 Attack.prototype.Init@simulation/components/Attack.js:187:1 18 ``` 18 }}} 19 19 20 20 21 21 With warning `this.entity` and setting just that I get 22 ``` 22 {{{ 23 23 WARNING: 1535 24 24 ERROR: JavaScript error: simulation/components/Attack.js line 187 25 25 TypeError: "entity" is read-only 26 26 Attack.prototype.Init@simulation/components/Attack.js:187:1 27 ``` 27 }}} 28 28 29 29 So this seems to be working as expected, or am I missing something?