Repository: couchdb Updated Branches: refs/heads/1.6.x d1bc0a9cf -> eeb31cbbd
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/1.6.x Commit: 9bdbea82a940a5f5fa2f51aea865166d7fddf23c Parents: 0583ac2 Author: Robert Kowalski <[email protected]> Authored: Fri May 9 23:03:50 2014 +0200 Committer: Robert Kowalski <[email protected]> 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 () {
