This repository was archived by the owner on Apr 22, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +9
-6
lines changed
Expand file tree Collapse file tree 4 files changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -773,7 +773,7 @@ var prettyPrint;
773773 recombineTagsAndDecorations ( job ) ;
774774 } catch ( e ) {
775775 if ( win [ 'console' ] ) {
776- console [ 'log' ] ( e && e [ 'stack' ] ? e [ 'stack' ] : e ) ;
776+ console [ 'log' ] ( e && e [ 'stack' ] || e ) ;
777777 }
778778 }
779779 }
@@ -917,7 +917,7 @@ var prettyPrint;
917917
918918 // Look for a class like linenums or linenums:<n> where <n> is the
919919 // 1-indexed number of the first line.
920- var lineNums = cs . className . match ( / \b l i n e n u m s \b (?: : ( \d + ) ) ? / ) ;
920+ var lineNums = className . match ( / \b l i n e n u m s \b (?: : ( \d + ) ) ? / ) ;
921921 lineNums = lineNums
922922 ? lineNums [ 1 ] && lineNums [ 1 ] . length ? + lineNums [ 1 ] : true
923923 : false ;
Original file line number Diff line number Diff line change 33 * {@code job.decorations} and modifies {@code job.sourceNode} in place.
44 * @param {Object } job like <pre>{
55 * sourceCode: {string} source as plain text,
6+ * sourceNode: {HTMLElement} the element containing the source,
67 * spans: {Array.<number|Node>} alternating span start indices into source
78 * and the text node or element (e.g. {@code <BR>}) corresponding to that
89 * span.
Original file line number Diff line number Diff line change @@ -1099,6 +1099,7 @@ var prettyPrint;
10991099 * {@code job.decorations} and modifies {@code job.sourceNode} in place.
11001100 * @param {Object } job like <pre>{
11011101 * sourceCode: {string} source as plain text,
1102+ * sourceNode: {HTMLElement} the element containing the source,
11021103 * spans: {Array.<number|Node>} alternating span start indices into source
11031104 * and the text node or element (e.g. {@code <BR>}) corresponding to that
11041105 * span.
@@ -1380,7 +1381,7 @@ var prettyPrint;
13801381 recombineTagsAndDecorations ( job ) ;
13811382 } catch ( e ) {
13821383 if ( win [ 'console' ] ) {
1383- console [ 'log' ] ( e && e [ 'stack' ] ? e [ 'stack' ] : e ) ;
1384+ console [ 'log' ] ( e && e [ 'stack' ] || e ) ;
13841385 }
13851386 }
13861387 }
@@ -1524,7 +1525,7 @@ var prettyPrint;
15241525
15251526 // Look for a class like linenums or linenums:<n> where <n> is the
15261527 // 1-indexed number of the first line.
1527- var lineNums = cs . className . match ( / \b l i n e n u m s \b (?: : ( \d + ) ) ? / ) ;
1528+ var lineNums = className . match ( / \b l i n e n u m s \b (?: : ( \d + ) ) ? / ) ;
15281529 lineNums = lineNums
15291530 ? lineNums [ 1 ] && lineNums [ 1 ] . length ? + lineNums [ 1 ] : true
15301531 : false ;
Original file line number Diff line number Diff line change @@ -1287,6 +1287,7 @@ var IN_GLOBAL_SCOPE = false;
12871287 * {@code job.decorations} and modifies {@code job.sourceNode} in place.
12881288 * @param {Object } job like <pre>{
12891289 * sourceCode: {string} source as plain text,
1290+ * sourceNode: {HTMLElement} the element containing the source,
12901291 * spans: {Array.<number|Node>} alternating span start indices into source
12911292 * and the text node or element (e.g. {@code <BR>}) corresponding to that
12921293 * span.
@@ -1568,7 +1569,7 @@ var IN_GLOBAL_SCOPE = false;
15681569 recombineTagsAndDecorations ( job ) ;
15691570 } catch ( e ) {
15701571 if ( win [ 'console' ] ) {
1571- console [ 'log' ] ( e && e [ 'stack' ] ? e [ 'stack' ] : e ) ;
1572+ console [ 'log' ] ( e && e [ 'stack' ] || e ) ;
15721573 }
15731574 }
15741575 }
@@ -1712,7 +1713,7 @@ var IN_GLOBAL_SCOPE = false;
17121713
17131714 // Look for a class like linenums or linenums:<n> where <n> is the
17141715 // 1-indexed number of the first line.
1715- var lineNums = cs . className . match ( / \b l i n e n u m s \b (?: : ( \d + ) ) ? / ) ;
1716+ var lineNums = className . match ( / \b l i n e n u m s \b (?: : ( \d + ) ) ? / ) ;
17161717 lineNums = lineNums
17171718 ? lineNums [ 1 ] && lineNums [ 1 ] . length ? + lineNums [ 1 ] : true
17181719 : false ;
You can’t perform that action at this time.
0 commit comments