We use the AdvancedOptions View in a couple spots where the eventer isn't 
passed. Added logic so it will only bind the listener if it is


Project: http://git-wip-us.apache.org/repos/asf/couchdb/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb/commit/b7e7775f
Tree: http://git-wip-us.apache.org/repos/asf/couchdb/tree/b7e7775f
Diff: http://git-wip-us.apache.org/repos/asf/couchdb/diff/b7e7775f

Branch: refs/heads/api-options
Commit: b7e7775ff43e16ed68f8a54f277e6354d787d47b
Parents: 3a39844
Author: suelockwood <[email protected]>
Authored: Tue Dec 17 12:11:30 2013 -0500
Committer: Garren Smith <[email protected]>
Committed: Wed Jan 22 16:22:50 2014 +0200

----------------------------------------------------------------------
 src/fauxton/app/addons/documents/views.js | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb/blob/b7e7775f/src/fauxton/app/addons/documents/views.js
----------------------------------------------------------------------
diff --git a/src/fauxton/app/addons/documents/views.js 
b/src/fauxton/app/addons/documents/views.js
index 288e10c..ac02993 100644
--- a/src/fauxton/app/addons/documents/views.js
+++ b/src/fauxton/app/addons/documents/views.js
@@ -1110,7 +1110,9 @@ function(app, FauxtonAPI, Components, Documents, 
Databases, pouchdb, resizeColum
         this.showPreview = options.showPreview;
       }
 
-      this.listenTo(this.eventer, 'options:param_update', 
this.optionsParamsUpdate);
+      if (this.eventer) { 
+        this.listenTo(this.eventer, 'options:param_update', 
this.optionsParamsUpdate);
+      }
     },
 
     events: {

Reply via email to