I wonder if this would be cleaner to make this only a LazyStyleProperty. That would allow you to do a constructor like:
```
self.marginTop = new odf.LazyStyleProperty(p, function() {
var a = element.getAttributeNS(fons, "margin-top")
....
});
```