PaulUithol/Backbone-relational

previous attributes broken when another attributes changed in handler.

Open

#485 aberto em 18 de ago. de 2014

Ver no GitHub
 (0 comments) (0 reactions) (0 assignees)JavaScript (344 forks)batch import
bughelp wanted

Métricas do repositório

Stars
 (2.343 stars)
Métricas de merge de PR
 (Nenhuma PRs mesclada em 30d)

Description

Scenario:

  • has model with several listeners on some property propA
  • one of the listener change another property propB.
  • In rest of handlers for propA previousAttributes contains new value of propA instead old one.

In case of usage regular Model instead of RelationalModel previousAttributes contains old value as expected.

sample: http://jsfiddle.net/4ohq1tho/1

this cause several issues like https://github.com/kmalakoff/knockback/issues/121

Guia do colaborador