Note how many debug logs we have after we load them from DB
FREEBIE
This commit is contained in:
parent
63e41612b7
commit
bd3b8ae9f8
1 changed files with 3 additions and 1 deletions
|
@ -25,7 +25,9 @@
|
|||
model: LogEntry,
|
||||
comparator: 'time',
|
||||
initialize: function() {
|
||||
this.fetch({remove: false});
|
||||
this.fetch({remove: false}).then(function() {
|
||||
console.log('Debug log: after fetch have', this.length, 'entries');
|
||||
}.bind(this));
|
||||
},
|
||||
log: function(str) {
|
||||
var entry = this.add({time: Date.now(), value: str});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue