Skip to content

Commit

Permalink
Fix model binding callback signature (to avoid updating DOM if that's…
Browse files Browse the repository at this point in the history
… where the model change originated)
  • Loading branch information
KidkArolis committed Dec 3, 2012
1 parent 0d7fc17 commit 32ab9ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backbone.stickit.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@
// Setup a `change:modelAttr` observer to keep the view element in sync.
// `modelAttr` may be an array of attributes or a single string value.
_.each(_.flatten([modelAttr]), function(attr) {
observeModelEvent('change:'+attr, function(options) {
observeModelEvent('change:'+attr, function(model, val, options) {
if (options && options.bindKey != bindKey)
updateViewBindEl(self, $el, config, getVal(model, modelAttr, config, self), model);
});
Expand Down

0 comments on commit 32ab9ac

Please sign in to comment.