Please activate JavaScript!
Please install Adobe Flash Player, click here for download

SAE Magazine

122 PRODUCTION & KNOW HOW // DEVELOPING JQUERY PLUGINS THE RIGHT WAY There are two different a thing to jQuery. Which depends on what you wan Consider you want to add typically has nothing to do You would just add it, the so: // File: 05-plugin-as-a-fun (function($, window, unde $.log = function(messa // any log logic console.log(mes } })(jQuery, window); You could now call $.log( code after including your Please note that this type return a jQuery object, h and not suited for DOM u of a parallel to something If you want to create a Elements, you need to e type. So every created jQ carry your plugin around it’s done: 2 - Decide what you want to add

Pages