Skip to content

Commit

Permalink
Fixed #21.
Browse files Browse the repository at this point in the history
  • Loading branch information
fkling committed Jan 13, 2011
1 parent 6d7a6dd commit b454fd5
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/js/view.js
Expand Up @@ -484,8 +484,7 @@ FloatNotesView.prototype = {
LOG('Notes loaded for ' + domain + ': ' + data.length);
that.currentNotes = that._createNotesWith(data);
that._attachNotesToCurrentDocument();
that._attachAndShowIndicators();
that._updateBroadcaster();
that.updateVisibilty(domain);
that.scrollToNote();
});
}
Expand Down Expand Up @@ -697,6 +696,15 @@ FloatNotesView.prototype = {
this.hideNotes(); LOG('Nodes hidden.');
}
},

updateVisibilty: function(location) {
if(this._notesHiddenFor(location)) {
this.hideNotes();
}
else {
this.showNotes();
}
},

_notesHiddenFor: function(location) {
return this.status[location] && !this.status[location].visible;
Expand Down

0 comments on commit b454fd5

Please sign in to comment.