File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
Expand file tree Collapse file tree 1 file changed +6
-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
@@ -1251,9 +1251,11 @@ class CodeitElement extends HTMLElement {
12511251 }
12521252
12531253 }
1254- //If its an empty file: @@
1255- if ( typeof ( cd . childNodes [ i ] == 'undefined' ) )
1254+
1255+ // if it's an empty file
1256+ if ( typeof ( cd . childNodes [ i ] == 'undefined' ) ) {
12561257 return [ cd , 0 ] ;
1258+ }
12571259
12581260 // go to end of selected node
12591261 return [ cd . childNodes [ i ] , cd . childNodes [ i ] . nodeValue . length ] ;
@@ -1356,4 +1358,4 @@ class CodeitElement extends HTMLElement {
13561358
13571359// define the codeit element
13581360window . customElements . define ( 'cd-el' , CodeitElement ) ;
1359- 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