Skip to content

data-bind with class should not clobber the agility class of root element #107

@cdrubin

Description

@cdrubin

First-off: Thank you for a great framework! :)

var $$item = $$( {
  model: {
    type: 'document' 
  }, 
  view: { 
    'format': '<li data-bind="name, class=type">', 
    'style': '& { background-color: green }'
  } 
} );

should result in this HTML :

<li class=".agility_X document" data-bind="name, class=type"></li>

but instead clobbers the .agility_X class and results in :

<li class="document" data-bind="name, class=type"></li>

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