Changes between Initial Version and Version 1 of Ticket #4759, comment 1


Ignore:
Timestamp:
Sep 4, 2017, 4:17:25 AM (7 years ago)
Author:
leper

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #4759, comment 1

    initial v1  
    22
    33With
    4 ```
     4{{{
    55Attack.prototype.Init = function()
    66{
     
    99warn(uneval(this.template));
    1010};
    11 ```
     11}}}
    1212I get
    13 ```
     13{{{
    1414WARNING: ({Melee:{Crush:"0.0", Hack:"12.0", MaxRange:"4.0", Pierce:"0.0", PrepareTime:"500", RepeatTime:"1000", RestrictedClasses:{'@datatype':"tokens", _string:"Structure Ship Siege"}}})
    1515ERROR: JavaScript error: simulation/components/Attack.js line 187
    1616TypeError: ({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
    1717  Attack.prototype.Init@simulation/components/Attack.js:187:1
    18 ```
     18}}}
    1919
    2020
    2121With warning `this.entity` and setting just that I get
    22 ```
     22{{{
    2323WARNING: 1535
    2424ERROR: JavaScript error: simulation/components/Attack.js line 187
    2525TypeError: "entity" is read-only
    2626  Attack.prototype.Init@simulation/components/Attack.js:187:1
    27 ```
     27}}}
    2828
    2929So this seems to be working as expected, or am I missing something?