[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

[jQuery] Augmentation of Object.prototype

2008-07-22 Thread Greg
Hi everyone, I want to use the code from this page : http://www.coolpage.com/developer/javascript/Correct%20OOP%20for%20Javascript.html to enable true inheritance with JavaScript ... but sadly JQuery doesn't support a such possibility.. Why ? If you take care by using "hasOwnProperty()" when you