@@ -26,7 +26,7 @@ function extend () {
26
26
27
27
for ( const source of arguments ) {
28
28
for ( const key in source ) {
29
- if ( source . hasOwnProperty ( key ) ) {
29
+ if ( Object . hasOwnProperty . call ( source , key ) ) {
30
30
target [ key ] = source [ key ]
31
31
}
32
32
}
@@ -74,17 +74,17 @@ const defaultOptions = {
74
74
const meta = JSON . parse ( $ ( '#meta' ) . text ( ) )
75
75
var options = meta . slideOptions || { }
76
76
77
- if ( options . hasOwnProperty ( 'spotlight' ) ) {
77
+ if ( Object . hasOwnProperty . call ( options , 'spotlight' ) ) {
78
78
defaultOptions . dependencies . push ( {
79
79
src : `${ serverurl } /build/reveal.js/plugin/spotlight/spotlight.js`
80
80
} )
81
81
}
82
82
83
- if ( options . hasOwnProperty ( 'allottedTime' ) || options . hasOwnProperty ( 'allottedMinutes' ) ) {
83
+ if ( Object . hasOwnProperty . call ( options , 'allottedTime' ) || Object . hasOwnProperty . call ( options , 'allottedMinutes' ) ) {
84
84
defaultOptions . dependencies . push ( {
85
85
src : `${ serverurl } /build/reveal.js/plugin/elapsed-time-bar/elapsed-time-bar.js`
86
86
} )
87
- if ( options . hasOwnProperty ( 'allottedMinutes' ) ) {
87
+ if ( Object . hasOwnProperty . call ( options , 'allottedMinutes' ) ) {
88
88
options . allottedTime = options . allottedMinutes * 60 * 1000
89
89
}
90
90
}
@@ -123,14 +123,14 @@ window.viewAjaxCallback = () => {
123
123
function renderSlide ( event ) {
124
124
if ( window . location . search . match ( / p r i n t - p d f / gi) ) {
125
125
const slides = $ ( '.slides' )
126
- let title = document . title
126
+ const title = document . title
127
127
finishView ( slides )
128
128
document . title = title
129
129
Reveal . layout ( )
130
130
} else {
131
131
const markdown = $ ( event . currentSlide )
132
132
if ( ! markdown . attr ( 'data-rendered' ) ) {
133
- let title = document . title
133
+ const title = document . title
134
134
finishView ( markdown )
135
135
markdown . attr ( 'data-rendered' , 'true' )
136
136
document . title = title
0 commit comments