Skip to content
This repository was archived by the owner on Feb 7, 2023. It is now read-only.

Commit 8231b86

Browse files
committed
Fix errors in annotation viewer and code viewer
1 parent d2a3110 commit 8231b86

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

core/styleguide/js/annotations-viewer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ var annotationsViewer = {
2323
$('body').addClass('comments-ready');
2424

2525
$(window).resize(function() {
26-
if(!commentsActive) {
26+
if(!annotationsViewer.commentsActive) {
2727
annotationsViewer.slideComment($('#sg-annotation-container').outerHeight());
2828
}
2929
});

core/styleguide/js/code-viewer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ var codeViewer = {
2727
$('body').addClass('code-ready');
2828

2929
$(window).resize(function() {
30-
if(!codeActive) {
30+
if(!codeViewer.codeActive) {
3131
codeViewer.slideCode($('#sg-code-container').outerHeight());
3232
}
3333
});

0 commit comments

Comments
 (0)