[Helma-user] Best way of extending HopObject functions

Joshua Paine joshua at papercrown.org
Wed Jul 30 14:30:03 CEST 2008


Generic getter/setters are not possible in standard javascript, but I 
think support for JSAdapter is built into recent versions that should 
make it possible for you (not sure, haven't experimented with it).

To override the built-ins, what I have ended up doing is just using 
another type as my base type from which to inherit. Then I don't have to 
move any existing functions (which I've found is prone to unexpected 
interactions with the cache) and it's still easy to call the built-ins.

HopObject.get.apply(this,arguments)

-Joshua


More information about the Helma-user mailing list