couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kxe...@apache.org
Subject [08/12] fauxton commit: updated refs/heads/import-master to 6827677
Date Thu, 15 May 2014 21:50:53 GMT
Fauxton: fix regression for document editor

Introduced with ebade0f2f82d4da60e386f4aeaf24ecb98181e81


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

Branch: refs/heads/import-master
Commit: b8fb7a4566ca1f4315dd11ea7155f9458c08edcb
Parents: 6d36d6a
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

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


http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/b8fb7a45/app/addons/documents/views.js
----------------------------------------------------------------------
diff --git a/app/addons/documents/views.js b/app/addons/documents/views.js
index 2df3ab6..8d10bd0 100644
--- a/app/addons/documents/views.js
+++ b/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