couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gar...@apache.org
Subject git commit: updated refs/heads/beforeunload to c26d717
Date Mon, 09 Dec 2013 13:41:17 GMT
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 <garren.smith@gmail.com>
Authored: Mon Dec 9 15:38:16 2013 +0200
Committer: Garren Smith <garren.smith@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();
     }
   });
 


Mime
View raw message