[jQuery] Re: Making a jQuery plugin

2007-12-06 Thread Eridius
Cool, thanks. Now if i want to extend the $.paginator to add a function so i could don't something like this this.go_to_page(this.options.current_page); would i do: $.paginator.extend( { go_to_page: function(number) { this.option.new_pag

[jQuery] Re: Making a jQuery plugin

2007-12-06 Thread John Resig
Do $.extend instead of $.fn.extend to get the result that you want. --John On Dec 6, 2007 4:02 PM, Eridius <[EMAIL PROTECTED]> wrote: > > > Ok, I have looked at other code and still get get it to work > > (function($) > { > $.fn.extend( > { > paginator: function(options) >

[jQuery] Re: Making a jQuery plugin

2007-12-06 Thread Eridius
Ok, I have looked at other code and still get get it to work (function($) { $.fn.extend( { paginator: function(options) { $.extend(this.options, options); //this.go_to_page(this.options.current_page);