Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

Make escape_javascript helper a little more duck friendly

#3651

Updated method to use to_s instead of raising exception when passed a numeric argument. Existing code handled nil in similar manner and as we Rubyists usually aren't in the habit of ensuring the class of return values, it seemed a logical implementation here as well. As always open to suggestions and questions.

Reported by RSL · January 4th, 2010 @ 06:00 PM

State: stale
Milestone: none
Assigned to: nobody
Importance: Low

Activity

  1. Rohit Arondekar
    Rohit Arondekar
    • State changed from new to stale
    • Importance changed from to Low

    Marking ticket as stale. If this is still an issue please leave a comment with suggested changes, creating a patch with tests, rebasing an existing patch or just confirming the issue on a latest release or master/branches.

    October 9th, 2010 @ 03:09 AM

  2. bingbing