[Helma-user] wrapping renderSkin
Michael Platzer
michael.platzer at knallgrau.at
Tue Jan 9 18:21:57 CET 2007
Hannes Wallnoefer schrieb:
> 2007/1/3, Stefan Rinner <rist at mac.com>:
>
>> quoting a mail from August 2006:
>>
>> >>maybe it would be useful to be able to access the original
>> functions _in
>> >>any case_ as __href__ &c.?
>>
>> >Should be easy to do this yourself:
>> >
>> >if (!HopObject.prototype.__href__)
>> > HopObject.prototype.__href__ = HopObject.prototype.href;
>>
> This approach should also work for renderSkin() and consorts. Please
> let me know if it doesn't.
>
Thanks for the pointer! This little trick allowed me to finally
implement "skin debugging" (in javascript), which will save us quite
some time in our daily work. See the attached screenshot. It wraps each
skin rendering with according html comments, which show the location of
that skin file (which is actually, due to multiple repositories and
complex inheritance hierarchy not that trivial). Additionally I added
some simple timing info. How cool is that? :-)
thanks,
michi
p.s. i also attached my implementation, which will be part of the
knallgrauLib. I plan on posting a public access to the
knallgrauLib-repository next week when we finished the documentation
part. just to let you know.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: skinDebugging.png
Type: image/png
Size: 17162 bytes
Desc: not available
Url : http://helma.org/pipermail/helma-user/attachments/20070109/aa940138/attachment-0001.png
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Rendering.js
Type: application/x-javascript
Size: 6723 bytes
Desc: not available
Url : http://helma.org/pipermail/helma-user/attachments/20070109/aa940138/attachment-0001.js
More information about the Helma-user
mailing list