River
River

Reputation: 1487

bootstrap popover/tooltip syntax

Can someone please explain what this line of jquery means in tooltip(used by popover)

inside = /in/.test(placement)
         ^^^^^^^^^

What does this mean/for?

Upvotes: 1

Views: 515

Answers (1)

Waleed Khan
Waleed Khan

Reputation: 11467

That's a regex test, which checks to see if the string "in" is in placement. It seems a bit wasteful here, though...

Upvotes: 2

Related Questions