openlayers/openlayers — pull request #568 by drnextgis (2012-07-02 06:01:13+00:00)
Title: Change order of instructions

It looks like now impossible to add any custom properties before rendering features created by DrawFeature control. For example I have a vector layer and `label: "${title}"` is used as one of style property for its rendering. Now for newly created feature label is equal "undefined".

With this fix you can previously perform featureAdded function, for example:

featureAdded = function(f) {
f.attributes.title = "any title";
}

And after that add this feature to layer.