Skip to content

Commit 90546c3

Browse files
committed
Fixing warning reported by jshint
1 parent 33b5ff6 commit 90546c3

File tree

4 files changed

+14
-12
lines changed

4 files changed

+14
-12
lines changed

.jshintrc

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"esversion": 6
3+
}

src/scripts/interaction.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -531,7 +531,7 @@ function Interaction(parameters, player, previousState) {
531531
return {
532532
height: ((height / heightRatio) * 100) + '%',
533533
width: ((width / widthRatio) * 100) + '%'
534-
}
534+
};
535535
};
536536

537537
/**
@@ -915,7 +915,7 @@ function Interaction(parameters, player, previousState) {
915915
// wait for interaction to be created
916916
setTimeout(() => {
917917
if($interaction) {
918-
$interaction.focus()
918+
$interaction.focus();
919919
}
920920
}, 10);
921921
};
@@ -1309,7 +1309,7 @@ function Interaction(parameters, player, previousState) {
13091309
typeof instance.getXAPIData === 'function')) {
13101310
return instance.getXAPIData();
13111311
}
1312-
}
1312+
};
13131313

13141314
/**
13151315
* Returns unique content id

src/scripts/interactive-video.js

+6-7
Original file line numberDiff line numberDiff line change
@@ -843,7 +843,7 @@ InteractiveVideo.prototype.addSliderInteractions = function () {
843843
$menuitem.appendTo(this.controls.$interactionsContainer);
844844

845845
if(!this.preventSkipping) {
846-
this.interactionKeyboardControls.addElement($menuitem.get(0))
846+
this.interactionKeyboardControls.addElement($menuitem.get(0));
847847
}
848848
}
849849
});
@@ -1032,7 +1032,7 @@ InteractiveVideo.prototype.addBookmark = function (id, tenth) {
10321032
.click(() => self.onBookmarkSelect($bookmark, bookmark))
10331033
.keydown(e => {
10341034
if(e.which === 32 || e.which === 13){
1035-
self.onBookmarkSelect($bookmark, bookmark)
1035+
self.onBookmarkSelect($bookmark, bookmark);
10361036
}
10371037

10381038
e.stopPropagation();
@@ -1251,7 +1251,7 @@ InteractiveVideo.prototype.attachControls = function ($wrapper) {
12511251
</time>
12521252
<span>
12531253
<span class=hidden-but-read> of </span>
1254-
<span aria-hidden="true"> / </span>
1254+
<span aria-hidden="true"> / </span>
12551255
</span>
12561256
<time class="h5p-total">
12571257
<span class="hidden-but-read">${self.l10n.totalTime} ${textFullTime}</span>
@@ -1733,12 +1733,12 @@ InteractiveVideo.prototype.addQualityChooser = function () {
17331733
$list.children()
17341734
.click(function() {
17351735
const quality = $(this).attr('data-quality');
1736-
self.updateQuality(quality)
1736+
self.updateQuality(quality);
17371737
})
17381738
.keydown(function(e) {
17391739
if(e.which === 32 || e.which === 13) {
17401740
const quality = $(this).attr('data-quality');
1741-
self.updateQuality(quality)
1741+
self.updateQuality(quality);
17421742
}
17431743

17441744
e.stopPropagation();
@@ -2532,10 +2532,9 @@ InteractiveVideo.prototype.read = function (content) {
25322532

25332533
if (self.readText) {
25342534
// Combine texts if called multiple times
2535-
self.readText += (self.readText.substr(-1, 1) === '.' ? ' ' : '. ') + content
2535+
self.readText += (self.readText.substr(-1, 1) === '.' ? ' ' : '. ') + content;
25362536
}
25372537
else {
2538-
console.log('reading', content);
25392538
self.readText = content;
25402539
}
25412540

src/scripts/selector-control.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ var button = function (className, type, label, handler, tag, role) {
210210
button.tabIndex = 0;
211211
button.setAttribute('role', role);
212212
if (type === ButtonType.ICON) {
213-
button.title = label
213+
button.title = label;
214214
}
215215
button.addEventListener('click', function (event) {
216216
handler.call(button, event);
@@ -224,4 +224,4 @@ var button = function (className, type, label, handler, tag, role) {
224224
return button;
225225
};
226226

227-
export default SelectorControl;
227+
export default SelectorControl;

0 commit comments

Comments
 (0)