(function($, window, undefined) {...})(jQuery, window);
Hi,
using and having a look at jquery.ascensor.js plugin, I can see that the
code for this plugin is structured like that :
- (function($, window, undefined) {
- ...
- $.fn[pluginName] = function(options) {
- return this.each(function() {
- ...
- })
- }
- })(jQuery, window);
So far, I only know this notation
(
function
($)
{
$.fn.myPlugIn=
function
(parameters)
{
...
};
})(jQuery);
Anyone to explain to me the first structure ? Or point to a tutorial ? Thanks