fix typehint for lastPoll field in JavaScript
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Stefan Kalscheuer 2021-05-19 19:31:44 +02:00
parent 718dc18c35
commit b054dfaba2

View File

@ -44,7 +44,7 @@
document.querySelectorAll( 'div.wp-widget-scliveticker-ticker.sclt-ajax' ), document.querySelectorAll( 'div.wp-widget-scliveticker-ticker.sclt-ajax' ),
function( elem ) { function( elem ) {
var o = parseElement( elem, true, ++c ); var o = parseElement( elem, true, ++c );
if ( 0 === o.lastPoll ) { if ( '0' === o.lastPoll ) {
updateNow = true; updateNow = true;
} }
return o; return o;
@ -68,7 +68,7 @@
* @param {HTMLElement} elem The element. * @param {HTMLElement} elem The element.
* @param {boolean} widget Is the element a widget? * @param {boolean} widget Is the element a widget?
* @param {number} n Number of the container. * @param {number} n Number of the container.
* @return {{ticker: string, lastPoll: number, ticks: any, limit: string, isWidget: *}} Ticker descriptor object. * @return {{ticker: string, lastPoll: string, ticks: any, limit: string, isWidget: *}} Ticker descriptor object.
*/ */
var parseElement = function( elem, widget, n ) { var parseElement = function( elem, widget, n ) {
var list = elem.querySelector( 'ul' ); var list = elem.querySelector( 'ul' );