Changes between Version 2 and Version 3 of Ticket #16080, comment 8


Ignore:
Timestamp:
Oct 2, 2012, 3:16:05 AM (9 years ago)
Author:
Irfan Ahmed
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #16080, comment 8

    v2 v3  
    1 Actually I have edited this comment to say that postMixInProperties is alos a place where you can change the values of attributes based on some other attributes.
     1Actually I have edited this comment to say that postMixInProperties is also a place where you can change the values of attributes based on some other attributes. Or it is also a place where you can create a value based on the values of some input variables.
     2For Eg: In continuation of the example, lets say I create a label with the value as "this.name, this.age" which I have as  ${label} in the template. I set the value of this.label in the postMixInProperties.
     3
     4Even if I had the _setNameAttr and _setAgeAttr, these would be called only after postMixInProps and postMixInProps will have to set the label as "undefined:undefined". I know that the suggestion would be to do it in postCreate, but that means that I have to create either an attachPoint and call node.innerHTML or create an attributeMap and call setter for that. This all means more code to write especially for people who already have create large scale web applications using the above.