Created
April 6, 2010 22:41
-
-
Save StevenBlack/358216 to your computer and use it in GitHub Desktop.
Revisions
-
StevenBlack revised this gist
Apr 8, 2010 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -8,8 +8,8 @@ function($) $.fn.myPlugin.settings = $.extend( {}, $.fn.myPlugin.defaults, options ); // Go through the matched elements and return the jQuery object. return this.each( function() { }); }; // Public defaults and settings. -
StevenBlack revised this gist
Apr 8, 2010 . 1 changed file with 6 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -5,19 +5,22 @@ function($) $.fn.myPlugin = function( options ) { // options. $.fn.myPlugin.settings = $.extend( {}, $.fn.myPlugin.defaults, options ); // Go through the matched elements and return the jQuery object. return this.each( function() { }); }; // Public defaults and settings. $.fn.myPlugin.defaults = { prop: 'some value' }; $.fn.myPlugin.settings = { }; // Private functions. function myFunc() { return; }; -
StevenBlack revised this gist
Apr 6, 2010 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -14,7 +14,7 @@ function($) }; // Public defaults. $.fn.myPlugin.defaults = { prop: 'some value' }; // Private functions. function func() -
StevenBlack created this gist
Apr 6, 2010 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,29 @@ // Skeleton jQuery plugin function($) { $.fn.myPlugin = function( options ) { // options. options = $.extend( {}, $.fn.myPlugin.defaults, options ); // Go through the matched elements and return the jQuery object. return this.each( function() { }); }; // Public defaults. $.fn.myPlugin.defaults = { property: 'value' }; // Private functions. function func() { return; }; // Public functions. $.fn.myPlugin.func = function() { return; }; })(jQuery);