File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
packages/uikit-workshop/src/scripts/components Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 5
5
* Licensed under the MIT license
6
6
*
7
7
*/
8
- var PrismLanguages = {
8
+ export const PrismLanguages = {
9
9
languages : [ ] ,
10
10
11
11
get : function ( key ) {
12
12
var language ;
13
13
14
- for ( i = 0 ; i < this . languages . length ; ++ i ) {
14
+ for ( var i = 0 ; i < this . languages . length ; ++ i ) {
15
15
language = this . languages [ i ] ;
16
16
if ( language [ key ] !== undefined ) {
17
17
return language [ key ] ;
@@ -25,7 +25,7 @@ var PrismLanguages = {
25
25
// see if the language already exists, overwrite if it does
26
26
for ( var key in language ) {
27
27
if ( language . hasOwnProperty ( key ) ) {
28
- for ( i = 0 ; i < this . languages . length ; ++ i ) {
28
+ for ( var i = 0 ; i < this . languages . length ; ++ i ) {
29
29
if ( this . languages [ i ] [ key ] !== undefined ) {
30
30
this . languages [ i ] [ key ] = language [ key ] ;
31
31
return ;
You can’t perform that action at this time.
0 commit comments