You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by de...@apache.org on 2013/12/17 18:11:31 UTC

git commit: updated refs/heads/api-options to 1a7672c

Updated Branches:
  refs/heads/api-options f91147921 -> 1a7672c63


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/1a7672c6
Tree: http://git-wip-us.apache.org/repos/asf/couchdb/tree/1a7672c6
Diff: http://git-wip-us.apache.org/repos/asf/couchdb/diff/1a7672c6

Branch: refs/heads/api-options
Commit: 1a7672c63e84312a5fd65d98207c981faba4adcb
Parents: f911479
Author: suelockwood <de...@apache.org>
Authored: Tue Dec 17 12:11:30 2013 -0500
Committer: suelockwood <de...@apache.org>
Committed: Tue Dec 17 12:11:30 2013 -0500

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


http://git-wip-us.apache.org/repos/asf/couchdb/blob/1a7672c6/src/fauxton/app/modules/documents/views.js
----------------------------------------------------------------------
diff --git a/src/fauxton/app/modules/documents/views.js b/src/fauxton/app/modules/documents/views.js
index 4cd23f6..c803c81 100644
--- a/src/fauxton/app/modules/documents/views.js
+++ b/src/fauxton/app/modules/documents/views.js
@@ -1055,7 +1055,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: {