Hacker News new | ask | show | jobs
by bgilroy26 5225 days ago
>var appName = "wordsmith";

>$.fn[appName] = function(options) {...}

I haven't read many jQuery plugins, is setting off the function name in a variable a common thing to do?

1 comments

Do you know how to read code? Because it appears that you're attempting to prove you can, but at the same time, you seem willfully ignorant as to the uses of that variable.

Search in the code for that identifier and you might learn why he created it.