Re: Best way of extending HopObject functions
Joshua Paine <[email protected]> Wed, 30 Jul 2008 08:30:03 -0400
| Newsgroups | gmane.comp.java.helma.general |
|---|---|
| Message-ID | <[email protected]> |
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