Posted By

gfazioli on 09/23/08


Tagged

javascript plugin jquery


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

gfazioli


jQuery: come costruire un’estensione Plugin


 / Published in: JavaScript
 

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

jQuery Sketch Plugin

  1. /**
  2.  * sketch jQuery Plugin
  3.  *
  4.  */
  5. (function($){
  6. $.fn.extend( {
  7. mymethod: function(options){
  8. var defaults = {};
  9. var options = $.extend(defaults, options);
  10. return this.each(function(){
  11. var __e = $(this);
  12. // todo
  13. // default options in "options"
  14. });
  15. }
  16. });
  17. })(jQuery);

Report this snippet  

You need to login to post a comment.