Skip to content

Commit eebba75

Browse files
committed
Notes and cleanup.
1 parent 9665fc8 commit eebba75

2 files changed

Lines changed: 4 additions & 8 deletions

File tree

public/javascripts/DV/lib/page.js

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -158,13 +158,9 @@ DV.Page.prototype.drawRemoveOverlay = function() {
158158

159159
DV.Page.prototype.setPageType = function(){
160160
if(this.annotations.length > 0){
161-
if(this.hasLayerPage === true){
162-
this.el.addClass('DV-layer-page');
163-
}
164-
if(this.hasLayerRegional === true){
165-
this.el.addClass('DV-layer-page');
166-
}
167-
}else{
161+
if(this.hasLayerPage === true) { this.el.addClass('DV-layer-page'); }
162+
if(this.hasLayerRegional === true){ this.el.addClass('DV-layer-page'); }
163+
} else {
168164
this.el.removeClass('DV-layer-page DV-layer-regional');
169165
}
170166
};

public/javascripts/DV/states/states.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ DV.Schema.states = {
3737
},
3838

3939
ViewAnnotation: function(){
40-
this.helpers.reset();
40+
this.helpers.reset(); // in construction.js
4141
this.helpers.ensureAnnotationImages();
4242
this.activeAnnotationId = null;
4343
this.acceptInput.deny();

0 commit comments

Comments
 (0)