Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What does this do in javascript?

Tags:

javascript

I came across the function below in one of the SharePoint system javascript files.

function RTE_InsertImage(strBaseElementID)
{ULS1Lu:;
   //A bunch of javascript
}

I have never seen something like ULS1Lu:; in any of the javascript code I have worked with before. Does anyone know what this is doing?

Sorry the weak title on the question. I wasn't sure how else to phrase it.

like image 880
Abe Miessler Avatar asked Aug 29 '12 18:08

Abe Miessler


1 Answers

Its a code label, technically they don't need the semicolon, but in javascript it shouldn't hurt. The label will allow a break or continue statement to jump the code back to it.

Most people consider that instead of labels it is better to use function calls whenever possible.

like image 96
Robert Avatar answered Sep 29 '22 20:09

Robert