Opened 7 years ago

Closed 4 years ago

#16136 closed enhancement (patchwelcome)

Provide More Robust Implementation of Calculated Properties in dojo/Stateful

Reported by: Kitson Kelly Owned by: Kitson Kelly
Priority: low Milestone: 1.11
Component: Core Version: 1.8.0
Keywords: Cc:
Blocked By: Blocking:

Description

Based on the conversation here there could be a most robust implementation of calculated properties that would provide watch notification without expressly having a custom setter.

Enhancing dojo/Stateful to have a concept of purely calculated properties that are not persisted in the object might be a useful feature for items that are always derived from multiple other proprties (e.g. fullName being a combination of firstName and lastName).

Currently dojo/Stateful caters for interdependent properties (e.g. checked and value, where changing one implicitly changes the other), but not on "aggregate" properties.

Change History (2)

comment:1 Changed 7 years ago by Kitson Kelly

Owner: set to Kitson Kelly
Priority: undecidedlow
Status: newassigned

comment:2 Changed 4 years ago by dylan

Milestone: tbd1.11
Resolution: patchwelcome
Status: assignedclosed

A patch is welcome, but given the different direction of Dojo 2, I'm going to close this out.

Note: See TracTickets for help on using tickets.