File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 55/*
66
77 codeit.js
8- v2.8.1
8+ v2.8.2
99 MIT License
1010
1111 https://codeit.codes
@@ -1252,9 +1252,10 @@ class CodeitElement extends HTMLElement {
12521252
12531253 }
12541254
1255- // if its an empty file
1256- if ( typeof ( cd . childNodes [ i ] == 'undefined' ) )
1255+ // if it's an empty file
1256+ if ( typeof ( cd . childNodes [ i ] == 'undefined' ) ) {
12571257 return [ cd , 0 ] ;
1258+ }
12581259
12591260 // go to end of selected node
12601261 return [ cd . childNodes [ i ] , cd . childNodes [ i ] . nodeValue . length ] ;
@@ -1357,4 +1358,4 @@ class CodeitElement extends HTMLElement {
13571358
13581359// define the codeit element
13591360window . customElements . define ( 'cd-el' , CodeitElement ) ;
1360- console . log ( '%ccodeit.js 2.8.1 ' , 'font-style: italic; color: gray' ) ;
1361+ console . log ( '%ccodeit.js 2.8.2 ' , 'font-style: italic; color: gray' ) ;
You can’t perform that action at this time.
0 commit comments