Skip to content

Commit

Permalink
Prevent race between reset() and in-flight events (thanks @disruptek)
Browse files Browse the repository at this point in the history
  • Loading branch information
gmac committed Nov 20, 2014
1 parent 2ce39d0 commit ce50c0e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion backbone.epoxy.js
Original file line number Diff line number Diff line change
Expand Up @@ -1308,7 +1308,7 @@
var changable = (tag == 'input' || tag == 'select' || tag == 'textarea' || $element.prop('contenteditable') == 'true');
var triggers = [];
var reset = function(target) {
self.set(self.$el, readAccessor(accessor), target);
self.$el && self.set(self.$el, readAccessor(accessor), target);
};

self.view = view;
Expand Down
Loading

0 comments on commit ce50c0e

Please sign in to comment.