fix numeric presence condition
This commit is contained in:
parent
9aa514bc70
commit
32197bd77d
1 changed files with 1 additions and 1 deletions
|
@ -141,7 +141,7 @@ c:[{cN:"comment",b:/\(\*/,e:/\*\)/},e.ASM,e.QSM,e.CNM,{b:/\{/,e:/\}/,i:/:/}]}});
|
||||||
block.parentNode.appendChild( fragmentBlock );
|
block.parentNode.appendChild( fragmentBlock );
|
||||||
RevealHighlight.highlightLines( fragmentBlock );
|
RevealHighlight.highlightLines( fragmentBlock );
|
||||||
|
|
||||||
if( fragmentIndex ) {
|
if( typeof fragmentIndex === 'number' ) {
|
||||||
fragmentBlock.setAttribute( 'data-fragment-index', fragmentIndex );
|
fragmentBlock.setAttribute( 'data-fragment-index', fragmentIndex );
|
||||||
fragmentIndex += 1;
|
fragmentIndex += 1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue