couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From deathb...@apache.org
Subject git commit: updated refs/heads/api-options to 1a7672c
Date Tue, 17 Dec 2013 17:11:31 GMT
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 <deathbear@apache.org>
Authored: Tue Dec 17 12:11:30 2013 -0500
Committer: suelockwood <deathbear@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: {


Mime
View raw message