Return to Snippet

Revision: 8447
at September 23, 2008 04:18 by gfazioli


Initial Code
/**
 * sketch jQuery Plugin
 *
 */
(function($){
	$.fn.extend( {
		mymethod: function(options){
			var defaults = {};
			var options = $.extend(defaults, options);
			return this.each(function(){
				var __e = $(this);
				// todo
				// default options in "options"
			});
		}
	});
})(jQuery);

Initial URL
http://www.undolog.com/2008/09/23/jquery-come-costruire-unestensione-plugin/

Initial Description
jQuery Sketch Plugin

Initial Title
jQuery: come costruire un’estensione Plugin

Initial Tags
javascript, plugin, jquery

Initial Language
JavaScript