Ticket #274 (new defect)

Opened 4 months ago

Last modified 3 months ago

Firefox: method finder does not display comments in methods

Reported by: fbo Owned by:
Priority: minor Milestone:
Component: Tools Keywords:
Cc:

Description

Do [Cmd|Ctrl]-Shift-F, search for a method that has comments in its source (-> SCB). Chrome will display these comments, Firefox won't.

Change History

comment:1 Changed 3 months ago by fbo

Same thing in Script Editor.

Solution: annotate each function with its original source code. Right now, in Object Editor this is how we get the source:

scriptSource = Strings.format("this.addScript(%s)", script.getOriginal());

This causes toString to be called on the function. In Firefox, toStrings seems to strip comments off the function's code. Not a problem if we stored the orig. source.

Note: See TracTickets for help on using tickets.