jQuery isn't really a javascript framework, so any extending and inheritance issues need to be dealt with using JavaScript's prototype chain. So you could do something like this:
function View(){ ... } function DataGrid(){ ... } DataGrid.prototype = new View(); //here is your inheritance Now DataGrid has all of the methods that View has. Maybe someone else has some other ideas, or an alternative way to achieve a class-like structure. On May 6, 11:13 am, Javier Martinez <[EMAIL PROTECTED]> wrote: > I'm moving from mootools to jquery and trying to port my UI framework > to jquery. > Some of my widgets are extending from another widget. For example a > "datagrid" and a "dataview" objects extends from "view" object > (because both uses same methods from view). > With Mootools I have something like this > > Class View() > > Class DataGrid ({ > extends: View > > }) > > Class DataView({ > extends: View > > }) > > What is the equivalent on jQuery? > > Thanks!