Skip to content

Commit

Permalink
fix for issue #8 when there are multiple models stuck in a view
Browse files Browse the repository at this point in the history
  • Loading branch information
delambo committed Sep 25, 2012
1 parent 66ad734 commit 7ae82e2
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 @@ -26,7 +26,7 @@
model = optionalModel || this.model,
bindings = optionalBindingsConfig || this.bindings || {};

this._modelBindings = [];
this._modelBindings || (this._modelBindings = []);

this.events || (this.events = {});

Expand Down

0 comments on commit 7ae82e2

Please sign in to comment.