diff options
Diffstat (limited to 'src/fauxton/app/addons/documents/views.js')
-rw-r--r-- | src/fauxton/app/addons/documents/views.js | 21 |
1 files changed, 3 insertions, 18 deletions
diff --git a/src/fauxton/app/addons/documents/views.js b/src/fauxton/app/addons/documents/views.js index 547620330..13cbacb1b 100644 --- a/src/fauxton/app/addons/documents/views.js +++ b/src/fauxton/app/addons/documents/views.js @@ -1804,30 +1804,15 @@ function(app, FauxtonAPI, Components, Documents, Databases, pouchdb, resizeColum template: "addons/documents/templates/changes", initialize: function () { - var that = this; - this.listenTo( this.model.changes, 'change', function () { - console.log('render on change'); - that.render(); - }); - this.listenTo( this.model.changes, 'cachesync', function () { - console.log('render on cachesync'); - that.render(); - }); + this.listenTo( this.model.changes, 'sync', this.render); + this.listenTo( this.model.changes, 'cachesync', this.render); }, establish: function() { - return [ this.model.changes.fetchOnce({prefill: true, - success: function () { - console.log('hi ajax success'); - }, - prefillSuccess: function () { - console.log('hi prefill success'); - } - })]; + return [ this.model.changes.fetchOnce({prefill: true})]; }, serialize: function () { - console.log('ss'); return { changes: this.model.changes.toJSON(), database: this.model |