You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by ga...@apache.org on 2013/12/09 14:41:17 UTC
git commit: updated refs/heads/beforeunload to c26d717
Updated Branches:
refs/heads/beforeunload 476845d4f -> c26d71748
Clean up after view
Project: http://git-wip-us.apache.org/repos/asf/couchdb/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb/commit/c26d7174
Tree: http://git-wip-us.apache.org/repos/asf/couchdb/tree/c26d7174
Diff: http://git-wip-us.apache.org/repos/asf/couchdb/diff/c26d7174
Branch: refs/heads/beforeunload
Commit: c26d71748d1e3f3c848d6ca0a8deff7b8bf3ffae
Parents: 476845d
Author: Garren Smith <ga...@gmail.com>
Authored: Mon Dec 9 15:38:16 2013 +0200
Committer: Garren Smith <ga...@gmail.com>
Committed: Mon Dec 9 15:38:16 2013 +0200
----------------------------------------------------------------------
src/fauxton/app/api.js | 5 +++--
src/fauxton/app/modules/documents/views.js | 5 +++++
2 files changed, 8 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/couchdb/blob/c26d7174/src/fauxton/app/api.js
----------------------------------------------------------------------
diff --git a/src/fauxton/app/api.js b/src/fauxton/app/api.js
index b9ee8ea..751cdd2 100644
--- a/src/fauxton/app/api.js
+++ b/src/fauxton/app/api.js
@@ -63,10 +63,11 @@ function(app, Fauxton) {
FauxtonAPI.beforeUnload = function () {
app.router.beforeUnload.apply(app.router, arguments);
- }
+ };
+
FauxtonAPI.removeBeforeUnload = function () {
app.router.removeBeforeUnload.apply(app.router, arguments);
- }
+ };
FauxtonAPI.addHeaderLink = function(link) {
app.masterLayout.navBar.addLink(link);
http://git-wip-us.apache.org/repos/asf/couchdb/blob/c26d7174/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 7f3e80b..64e304c 100644
--- a/src/fauxton/app/modules/documents/views.js
+++ b/src/fauxton/app/modules/documents/views.js
@@ -1566,6 +1566,11 @@ function(app, FauxtonAPI, Components, Documents, Databases, pouchdb, resizeColum
//this.reduceEditor.setValue(this.langTemplates[this.defaultLang].reduce);
}
+ },
+
+ cleanup: function () {
+ this.mapEditor && this.mapEditor.remove();
+ this.reduceEditor && this.reduceEditor.remove();
}
});