0

I am using backbone and backgrid and also using backgrid select2 extension.

When i change the backgrid cell, and add some list item from select2, upon consoling before model.save i get model.changed with no properties and also model._previousAttributes and model.attributes properties are exactly same.

How do i find changed attribute and and which list item from select2 is added or removed?

codeofnode
  • 18,169
  • 29
  • 85
  • 142

1 Answers1

0

You can access them using Backbone.Model#changedAttributes.

Y.H Wong
  • 7,151
  • 3
  • 33
  • 35