Ticket #2791 (closed task: fixed)
Class.js tweak
| Reported by: | tschaub | Owned by: | tschaub |
|---|---|---|---|
| Priority: | minor | Milestone: | 2.10 Release |
| Component: | BaseTypes.Class | Version: | 2.9 |
| Keywords: | Cc: | ||
| State: | Complete |
Description
The OpenLayers.Class function refers to arguments[i] a number of times. We can create a variable referring to this argument for clarity. As a bonus, we may also treat an obscure and very incompletely described issue using the OpenLayers.Class function in IE8 (we know this works in general, but an IRC report from dheinbach says that to support his use, he had to explicitly add parenthesis when constructing an instance of the parent).
I'm not in favor of voodoo coding in general. But I think this change adds clarity anyway.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

