Revision: 46046
Updated Code
at May 12, 2011 04:10 by nikefido
Updated Code
(function($){ var environment = {}; var methods = { init:function(options) { var options = $.extend({}, options); return this.each(function() { }); } }; $.fn.nameOfTemplate = function(method){ if ( methods[method] ) { return methods[method].apply( this, Array.prototype.slice.call( arguments, 1 )); } else if ( typeof method === 'object' || ! method ) { return methods.init.apply( this, arguments ); } else { $.error( 'Method ' + method + ' does not exist on jQuery.nameOfTemplate' ); } }; })(jQuery);
Revision: 46045
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at May 12, 2011 04:10 by nikefido
Initial Code
(function($){ var environment = {}; var methods = { init:function(options) { var options = $.extend({}, options); return this.each(function() { }); } }; $.fn.nameOfTemplate = function(method){ if ( methods[method] ) { return methods[method].apply( this, Array.prototype.slice.call( arguments, 1 )); } else if ( typeof method === 'object' || ! method ) { return methods.init.apply( this, arguments ); } else { $.error( 'Method ' + method + ' does not exist on jQuery.productTour' ); } }; })(jQuery);
Initial URL
Initial Description
Initial Title
jQuery plugin template - enhanced
Initial Tags
plugin, jquery
Initial Language
jQuery