From e940f3391490bce2bc3f1221b0f1cf2b69c03574 Mon Sep 17 00:00:00 2001 From: Nate Smith Date: Thu, 9 Oct 2014 01:04:18 -0700 Subject: [PATCH] fix standalone by only calling model.unloadAll if defined --- lib/Page.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Page.js b/lib/Page.js index ed1c32ac4..a2664744f 100644 --- a/lib/Page.js +++ b/lib/Page.js @@ -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) {