You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by me...@apache.org on 2013/03/28 23:44:50 UTC

[09/10] git commit: updated refs/heads/1720-move-to-backbone-1.0 to 5fcc173

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/7eea1fa9
Tree: http://git-wip-us.apache.org/repos/asf/couchdb/tree/7eea1fa9
Diff: http://git-wip-us.apache.org/repos/asf/couchdb/diff/7eea1fa9

Branch: refs/heads/1720-move-to-backbone-1.0
Commit: 7eea1fa9a756b7a69a5c1aa24d46326ad90c6352
Parents: 55c5c03
Author: Simon Metson <si...@cloudant.com>
Authored: Thu Mar 21 10:53:44 2013 +0000
Committer: Simon Metson <me...@apache.org>
Committed: Thu Mar 28 12:23:11 2013 +0000

----------------------------------------------------------------------
 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/7eea1fa9/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);
     },