Hopbot log for 2009-03-29 - Helma IRC channel: #helma on irc.freenode.net

2009-03-29:

[16:47] <decke> zumbrunn: good evening...
[16:49] <zumbrunn> hi decke
[16:49] <decke> zumbrunn: you probably know how i call onRequest of HopObject when i am in let's say User.onRequest
[16:49] <decke> java would call it "super.onReuqest" i guess
[16:51] <decke> because i have learned the hard way that helma does call HopObject.onRequest only when it's not overloaded...
[16:51] <zumbrunn> :-)
[16:51] <zumbrunn> well, there is no super in js
[16:51] <zumbrunn> HopObject.prototype.onRequest.call(this) ?
[16:52] <decke> okay... i'll give it a try...
[16:53] <decke> oh yeah that works :o)
[16:53] <zumbrunn> or if you really want to properly inherit from the prototype chain, you would need to climb it up using the _proto_ property
[16:54] <decke> i'm thinking of moving everything into a global function
[16:54] <decke> and both onRequest call that...
[16:54] <decke> but it looks like that would be the same as your line

 

 

In the channel now:

Logs by date: