1
나는 다음과 같은 모델로 채워 모음이 있습니다일괄 업데이트 수동 설정
rows: [
id: 1
category: 'Meetings & Banquets'
progress: 0.8
,
id: 2
category: 'Guest Services'
progress: '50%'
,
id: 3
category: 'Concessionaires'
progress: '20%'
,
id: 4
category: 'Telecommunications'
progress: 100
,
id: 5
category: 'Restaurant'
progress: '70%'
]
내가 좋아하는 것과 같이 그 중 갱신이 일괄 및 뷰 업데이트에 결합하는 모델을 가지고 자신 :
rows: [
id: 1
category: 'Meetings & Banquets'
progress: 0.9
,
id: 2
category: 'Guest Services'
progress: '10%'
,
]
컬렉션에서 .add 또는 .reset을 수행하면 동일한 ID로 모델을 추가/업데이트 할 수 없습니다. 이 모델을 일괄 적으로 업데이트 할 수있는 옵션은 무엇입니까?
이 실제로 백본의 GitHub의에 문제가 있었고 그들이 마스터 지점에서 그것을 해결했습니다 https://github.com/documentcloud/backbone/pull/1752 참조 – imrane
그들이 여전히 다른 https://github.com/documentcloud/backbone/pull/1873에 대해 토론하고있는 것처럼 보이지만 모든 다른 업데이트 옵션을 사용했다면 멋질 것입니다. – hajpoj