[jQuery] Re: Augmentation

2008-12-01 Thread DiTieM
On Dec 1, 9:00 pm, "Dirceu Barquette" <[EMAIL PROTECTED]> wrote: > to call the widget: > $('').attr({id:'the_widget'}).mywidget(fff:function(){}); I must be missing something :((. I have tried to reduce my code to the next simple example. Notice I want to override the method A.fff in B.init to

[jQuery] Augmentation

2008-12-01 Thread DiTieM
Maybe what I am pretending to do is something that JQuery wants to avoid, but I am very frustrated with the following idea. Let's image we have a simple "class": $.widget( "ui.mywidget", { ... f: function ( ) { fff( ) ; ... } // to be overriden fff: function( ) { } } ) ; and no