Ticket #992 (closed feature: fixed)
Allow applyDefaults() to return the modified object
| Reported by: | fredj | Owned by: | |
|---|---|---|---|
| Priority: | minor | Milestone: | 2.6 Release |
| Component: | Util | Version: | SVN |
| Keywords: | Cc: | ||
| State: |
Description
OpenLayers.Util.applyDefaults(to, from) doesn't return the modified object (since r1255).
I know it's redundant to return it but can be useful in the case to 'to' object in anonymous, for example:
var my_style = OpenLayers.Util.applyDefaults({strokeColor: '#00ff00',
strokeOpacity: 0.4 },
OpenLayers.Feature.Vector.style['default']);
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

