couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gar...@apache.org
Subject [35/47] couchdb commit: updated refs/heads/Update-Sidebar-Ui to c173e52
Date Mon, 19 May 2014 16:17:53 GMT
Fauxton: fix regression for document editor

Introduced with ebade0f2f82d4da60e386f4aeaf24ecb98181e81


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

Branch: refs/heads/Update-Sidebar-Ui
Commit: 9bdbea82a940a5f5fa2f51aea865166d7fddf23c
Parents: 0583ac2
Author: Robert Kowalski <rok@kowalski.gd>
Authored: Fri May 9 23:03:50 2014 +0200
Committer: Robert Kowalski <rok@kowalski.gd>
Committed: Fri May 9 23:03:50 2014 +0200

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


http://git-wip-us.apache.org/repos/asf/couchdb/blob/9bdbea82/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 2df3ab6..8d10bd0 100644
--- a/src/fauxton/app/addons/documents/views.js
+++ b/src/fauxton/app/addons/documents/views.js
@@ -946,6 +946,9 @@ function(app, FauxtonAPI, Components, Documents, Databases, pouchdb,
       });
       this.editor.render();
 
+      editor = this.editor;
+      model = this.model;
+
       this.listenTo(this.model, "sync", this.updateValues);
       this.listenTo(editor.editor, "change", function (event) {
         var changedDoc;
@@ -973,9 +976,6 @@ function(app, FauxtonAPI, Components, Documents, Databases, pouchdb,
           clear:  true
         });
       });
-
-      editor = this.editor;
-      model = this.model;
     },
 
     cleanup: function () {


Mime
View raw message