Skip to content

'currentStates' property is not observable/bindable #33

@erichocean

Description

@erichocean

This works:

  valueBinding: SC.Binding.transform(function() {
    return "State: " + App.statechart.get('currentStates').map(function(state) { return state.get('fullPath'); }).join(', ');
  }).from('App.statechart.firstCurrentState')

This does not:

valueBinding: SC.Binding.transform(function(currentStates) {
  return "State: " + currentStates.map(function(state) { return state.get('fullPath'); }).join(', ');
}).from('App.statechart.currentStates')

I would expect currentStates to be observable for changes the same way that firstCurrentState is.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions