ManuelDeLeon / viewmodel

MVVM for Meteor
https://viewmodel.org
MIT License
205 stars 23 forks source link

.children with a function returns incorrect result #231

Closed avalanche1 closed 8 years ago

avalanche1 commented 8 years ago
template(name="signUp")
  +dropdown type='metro'
  +dropdown type='district'

template(name="dropdown")
  .ui.dropdown

ViewModel.find('dropdown', (vm)-> vm.type() is 'metro') correctly returns the 1st dropdown vm. ViewModel.findOne('signUp').children('dropdown', (vm)-> vm.type() is 'metro') returns arr of two VMs...

ManuelDeLeon commented 8 years ago

Pick up v4.0.13