Skip to content

Commit 4c8fafc

Browse files
committed
empty => fixed-footnotes-empty
1 parent e3368a5 commit 4c8fafc

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

playground/theme.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
padding: 5px;
1111
}
1212

13-
.fixed-footnotes-container.empty {
13+
.fixed-footnotes-container.fixed-footnotes-empty {
1414
display: none;
1515
}
1616

spec/fixed-footnotes-spec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,10 +131,10 @@ describe("fixed-footnotes.refresh", function() {
131131
true, false); // reference visible, note invisible
132132
var ffn = footnotes({}, w);
133133
expect(w.$(".fixed-footnotes-note").length).toBe(0);
134-
expect(w.$(".fixed-footnotes-container").hasClass("empty")).toBe(true);
134+
expect(w.$(".fixed-footnotes-container").hasClass("fixed-footnotes-empty")).toBe(true);
135135
ffn.refresh();
136136
expect(w.$(".fixed-footnotes-note").length).toBe(1);
137-
expect(w.$(".fixed-footnotes-container").hasClass("empty")).toBe(false);
137+
expect(w.$(".fixed-footnotes-container").hasClass("fixed-footnotes-empty")).toBe(false);
138138
done();
139139
});
140140
});

src/fixed-footnotes.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
color: black;
99
}
1010

11-
.fixed-footnotes-container.empty {
11+
.fixed-footnotes-container.fixed-footnotes-empty {
1212
display: none;
1313
}
1414

src/fixed-footnotes.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ FixedFootnotes.prototype.removeRefreshListener = function(listener) {
9898
FixedFootnotes.prototype._refreshView = function() {
9999
var self = this;
100100
util.emptyElement(this._fixedContainerList);
101-
this._fixedContainer.className = this.options.fixedContainerClass + " empty";
101+
this._fixedContainer.className = this.options.fixedContainerClass + " fixed-footnotes-empty";
102102
this._getReferences().forEach(function(reference) {
103103
var note = self._getNoteFromRef(reference);
104104
if (!note) return;
@@ -116,7 +116,7 @@ FixedFootnotes.prototype._refreshView = function() {
116116
FixedFootnotes.prototype._createFixedContainer = function() {
117117
var fixedContainer = this._window.document.createElement("div");
118118
fixedContainer.id = this.options.fixedContainerId;
119-
fixedContainer.className = this.options.fixedContainerClass + " empty";
119+
fixedContainer.className = this.options.fixedContainerClass + " fixed-footnotes-empty";
120120
fixedContainer.appendChild(this._window.document.createElement("ul"));
121121
this._window.document.querySelector(this.options.fixedContainerLocation).appendChild(fixedContainer);
122122
return fixedContainer;

0 commit comments

Comments
 (0)