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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With