Return-Path: X-Original-To: apmail-couchdb-commits-archive@www.apache.org Delivered-To: apmail-couchdb-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 33C0511CF1 for ; Mon, 19 May 2014 16:30:57 +0000 (UTC) Received: (qmail 79559 invoked by uid 500); 19 May 2014 16:22:07 -0000 Delivered-To: apmail-couchdb-commits-archive@couchdb.apache.org Received: (qmail 78289 invoked by uid 500); 19 May 2014 16:22:06 -0000 Mailing-List: contact commits-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@couchdb.apache.org Delivered-To: mailing list commits@couchdb.apache.org Received: (qmail 75929 invoked by uid 99); 19 May 2014 16:17:20 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 May 2014 16:17:20 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id F07049878F5; Mon, 19 May 2014 16:17:19 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: garren@apache.org To: commits@couchdb.apache.org Date: Mon, 19 May 2014 16:17:53 -0000 Message-Id: <2b18f32bb46e4d76811fa229fd92e357@git.apache.org> In-Reply-To: <49fb1b4064d446ba9720e079b49bbd01@git.apache.org> References: <49fb1b4064d446ba9720e079b49bbd01@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [35/47] couchdb commit: updated refs/heads/Update-Sidebar-Ui to c173e52 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 Authored: Fri May 9 23:03:50 2014 +0200 Committer: Robert Kowalski 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 () {