Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Uses of .sub() in real life

Tags:

jquery

I stumbled upon the .sub function from browsing the jQuery source. There is a documentation page but it doesn't show any convincing 'real-life' applications.

Do people actually use .sub()? If so, for what?

like image 919
Randomblue Avatar asked Oct 27 '11 19:10

Randomblue


1 Answers

Imagine having two public plugins with the same name but different functionality. Using jquery.sub() you can load both of them.

like image 103
r15habh Avatar answered Oct 17 '22 00:10

r15habh