Dear Ryan,
Thank you so much! You pointed me to the fact, that I have been
thinking too complicated, while the solution is really simple. I
think, in fact my solution now is even simpler than the way you showed
me.
Thanks and regards
Korbinian
Here my corrected example domLink function:
domLink: function()
{
var w = this.elements.wrapper;
var setStyle = w.setStyle.bind(w);
var set = w.set.bind(w);
w.store( 'instance', this);
Object.append( w, { toInstance: function() { return
this.retrieve('instance'); }});
Object.append( w, { setStyle: function(prop,val)
{
setStyle(prop,val);
if( prop=='width') this.toInstance().setWidth(val);
return this;
}});
Object.append( w, { set: function(prop,val)
{
set(prop,val);
if( prop=='value') this.toInstance().setValue(val);
return this;
}});
Object.append( w, { get: function(prop)
{
if( prop=='value') return
this.toInstance().elements.input.get('value');
else return get(prop);
}});
},