[jQuery] Re: jQuery'zed Ext.Template

2007-05-29 Thread Rodrigo Moraes
Hi, Sorry to reply to myself. :) I've updated the Template plugin to use $.extend() in a new $.extendClass() function. This is probably Javascript 101, but I couldn't go ahead from this point. If somebody can point me an example of a extended class/constructor/prototype in jQuery, maybe I can tak

[jQuery] Re: jQuery'zed Ext.Template

2007-05-29 Thread Rodrigo Moraes
On 5/29/07, John Resig wrote: You mean like jQuery.extend()? You just pass in two objects and the first one is extended with the second. http://docs.jquery.com/JavaScript#.24.extend.28_target.2C_prop1.2C_propN_.29 Thanks, John. I tried it first, but it doesn't seem appropriate in this case. I

[jQuery] Re: jQuery'zed Ext.Template

2007-05-29 Thread John Resig
I still have three global functions while I'm looking for alternatives in the jQuery world. I'm looking for something that helps extending classes / overriding class members in jQuery or any jQuery plugin/utility. Something like the extend() function in YUI or Ext. Is there any? You mean like

[jQuery] Re: jQuery'zed Ext.Template

2007-05-29 Thread Rodrigo Moraes
On 5/29/07, Diego A. wrote: It's not only great for saving code, but it will come in handy for customizing the html output of plugins... much easier than having a bunch of individual options. I thought that too! :) I'm using it in a plugin I'm writing to make the output customizable. Also I th

[jQuery] Re: jQuery'zed Ext.Template

2007-05-29 Thread Diego A.
I love it. I think it's brilliant. It's not only great for saving code, but it will come in handy for customizing the html output of plugins... much easier than having a bunch of individual options. On May 29, 1:42 pm, "Rodrigo Moraes" <[EMAIL PROTECTED]> wrote: > Hi, > I made a simple port of Ex