-
Notifications
You must be signed in to change notification settings - Fork 2k
Open
Description
| if (this.options.enableHTML && $(labelContent).length > 0) { |
The label is passed to $(labelContent) --> when the labelContent has a / in it, jQuery complains about it
Uncaught Error: Syntax error, unrecognized expression: foo / bar
Is the wrapping in $() necessary? I'd probably just cast it to string or / and trim it
if (this.options.enableHTML && labelContent.toString().length > 0) {
PS: i'm still on the 1.x version, but the code stayed the same
Metadata
Metadata
Assignees
Labels
No labels