You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The code is missing a number of semicolon delimiters, which causes problems when attempting to aggregate and compress the code with other JavaScript files. The following updates are necessary to Version 2.1.1:
if(settings.startEmpty){varheight=$strip.find("li:first").height();$strip.prepend('<li class="webticker-init" style="width:'+$strip.parent().width()+'px;height:'+height+'px;"></li>');}//extra width to be able to move items without any jumps $strip.find("li:first").width() // <---- problem
// should the update be a 'hot-swap' or use replacement for IDs (in which case remove new ones)$strip.children('li').addClass('old');for(vari=0;i<list.length;i++){id=$(list[i]).data('update');match=$strip.find('[data-update="'+id+'"]');//should try find the id or data-attribute.if(match.length<1){if(insert){//we need to move this item into the domif($strip.find('.ticker-spacer:first-child').length==0&&$strip.find('.ticker-spacer').length>0){$strip.children('li.ticker-spacer').before(list[i]);}else{$strip.append(list[i]);}}}else$strip.find('[data-update="'+id+'"]').replaceWith(list[i]);;// <--- extra unnecessary semicolon};// <---- unneeded semicolon at end of for loop
The text was updated successfully, but these errors were encountered:
The code is missing a number of semicolon delimiters, which causes problems when attempting to aggregate and compress the code with other JavaScript files. The following updates are necessary to Version 2.1.1:
Line 83: missing semicolon
https://github.com/jonmifsud/Web-Ticker/blob/master/jquery.webticker.js#L83
Line 141: commented code causes error because it is missing semicolon when aggregated
https://github.com/jonmifsud/Web-Ticker/blob/master/jquery.webticker.js#L141
Line 184: missing semicolon
https://github.com/jonmifsud/Web-Ticker/blob/master/jquery.webticker.js#L184
Line 254: missing semicolon
https://github.com/jonmifsud/Web-Ticker/blob/master/jquery.webticker.js#L254
Lines 308 & 309: Extra semicolon and unnecessary semicolon
https://github.com/jonmifsud/Web-Ticker/blob/master/jquery.webticker.js#L308
https://github.com/jonmifsud/Web-Ticker/blob/master/jquery.webticker.js#L309
The text was updated successfully, but these errors were encountered: