Skip to content

Commit

Permalink
fix standalone by only calling model.unloadAll if defined
Browse files Browse the repository at this point in the history
  • Loading branch information
nateps committed Oct 9, 2014
1 parent 79ea80e commit e940f33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Page.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ Page.prototype.destroy = function() {
silentModel.destroy('_page');
silentModel.destroy('$components');
// Unfetch and unsubscribe from all queries and documents
silentModel.unloadAll();
silentModel.unloadAll && silentModel.unloadAll();
};

Page.prototype._addModelListeners = function(eventModel) {
Expand Down

0 comments on commit e940f33

Please sign in to comment.