Do i need to specify oneway binding for contentBinding in CollectionView

StackOverflow https://stackoverflow.com/questions/9436124

  •  12-11-2019
  •  | 
  •  

문제

Do I need to specify oneWay binding for contentBinding in ArrayController?

For example:

App.PeopleCollectionView = Ember.CollectionView.create({
  contentBinding: Ember.Binding.oneWay('App.peopleController.content')
});
도움이 되었습니까?

해결책

Yes, you can specify a one-way binding in this case for a small performance increase, provided you will not be manipulating the content property of your people collection view.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top