Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

reuse .load method

  • Loading branch information...
commit 21c6ae8ed19e068d0b5e98f68c8422e96fa72d24 1 parent 25ff78f
@petrjanda authored
Showing with 2 additions and 9 deletions.
  1. +2 −9 lib/view.js
View
11 lib/view.js
@@ -92,16 +92,9 @@ View.prototype.build = function(reload, callback) {
return;
}
- storage.loadView(this.uid, function(data) {
- // Apply data, loaded from snapshot.
- if(data) {
- self.data = data.data;
- self.lastEvent = data.lastEvent
- }
-
- // Update data and lastEvent, load data from repo just for newer events.
+ this.load(function(data) {
loadEvents();
- })
+ })
}
View.prototype.load = function(callback) {
Please sign in to comment.
Something went wrong with that request. Please try again.