4 ms·
>var appName = "wordsmith"; >$.fn[appName] = function(options) {...} I haven't read many jQuery plugins, is setting off the function name in a variable a comm
by bgilroy26 14y 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?
- k3n 14y agoDo 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.