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 can't use superclass in the extended class (Error:
$.MasterTemplate.superclass has no properties), and uh, I don't
understand this completelly.

So I've duplicated Ext.extend() [1] (similar to YAHOO.extend() [2]) to
get it working. I wonder if I could use something that's already used
by other plugins / core to extend a class in such way, to avoiding
including the function and instead use an existing solution.

-- rodrigo

[1] http://localhost/ext-1.0.1/docs/output/Ext.html#extend
[2] http://developer.yahoo.com/yui/docs/YAHOO.html

Reply via email to