couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From met...@apache.org
Subject [06/10] git commit: updated refs/heads/master to 88c3171
Date Thu, 04 Apr 2013 13:22:14 GMT
get logs working with backbone v1


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

Branch: refs/heads/master
Commit: e14abfdecc8f5050336a3aba74986e7043fae480
Parents: 7bafe85
Author: Simon Metson <simon+github@cloudant.com>
Authored: Thu Apr 4 13:08:20 2013 +0100
Committer: Simon Metson <metson@apache.org>
Committed: Thu Apr 4 13:08:20 2013 +0100

----------------------------------------------------------------------
 src/fauxton/app/addons/logs/resources.js |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb/blob/e14abfde/src/fauxton/app/addons/logs/resources.js
----------------------------------------------------------------------
diff --git a/src/fauxton/app/addons/logs/resources.js b/src/fauxton/app/addons/logs/resources.js
index 382fafe..d1e6d20 100644
--- a/src/fauxton/app/addons/logs/resources.js
+++ b/src/fauxton/app/addons/logs/resources.js
@@ -12,10 +12,11 @@
 
 define([
   "app",
-  "api"
+  "api",
+  "backbone"
 ],
 
-function (app, FauxtonAPI) {
+function (app, FauxtonAPI, Backbone) {
 
   var Log = FauxtonAPI.addon();
 
@@ -66,7 +67,6 @@ function (app, FauxtonAPI) {
 
     parse: function (resp) {
       var lines =  resp.split(/\n/);
-
       return _.foldr(lines, function (acc, logLine) {
         var match = logLine.match(/^\[(.*?)\]\s\[(.*?)\]\s\[(.*?)\]\s(.*)/);
 
@@ -98,7 +98,7 @@ function (app, FauxtonAPI) {
 
       this.filters = [];
       this.filteredCollection = new Log.Collection(this.collection.toJSON());
-      this.collection.on("reset", function () {
+      this.collection.on("add", function () {
         this.createFilteredCollection();
       }, this);
     },


Mime
View raw message