Skip to main content

Bug Tracker

Side navigation

#10706 closed bug (worksforme)

Opened November 07, 2011 06:06PM UTC

Closed November 07, 2011 06:11PM UTC

The regex /\\s+/ appears three times

Reported by: anonymous Owned by:
Priority: low Milestone: None
Component: misc Version:
Keywords: Cc:
Blocked by: Blocking:

We are assigning the regex /\\s+/ to 2 different variables, and we have a stand-alone instance. Why not reuse one variable every single time?

Attachments (0)
Change History (1)

Changed November 07, 2011 06:11PM UTC by rwaldron comment:1

component: unfiledmisc
priority: undecidedlow
resolution: → worksforme
status: newclosed

This is because the source is developed in sep module files, each with its own IIFE closure, therefore the localized reference must be made in each.