File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -127,16 +127,23 @@ type PropertyEntry struct {
127127 index int
128128 entry * FlattenedPropEntry
129129 updateHandlers []PropertyUpdateHandler
130+ value PropValue
130131}
131132
132133// Entry returns the underlying FlattenedPropEntry.
133134func (pe * PropertyEntry ) Entry () * FlattenedPropEntry {
134135 return pe .entry
135136}
136137
138+ // Value returns current value of the property.
139+ func (pe * PropertyEntry ) Value () PropValue {
140+ return pe .value
141+ }
142+
137143// FirePropertyUpdate triggers all registered PropertyUpdateHandler
138144// on the PropertyEntry with the given PropValue.
139145func (pe * PropertyEntry ) FirePropertyUpdate (value PropValue ) {
146+ pe .value = value
140147 for _ , h := range pe .updateHandlers {
141148 if h != nil {
142149 h (value )
You can’t perform that action at this time.
0 commit comments