Hi,

Im building custom class properties and its working fine:

var myDiv = document.createElement('div');
myDiv.__defineGetter__("_x", function() { return this.style.left; });
myDiv.__defineSetter__("_x", function(x) { this.style.left = x+'px'; });

but... only in Mozilla type browsers. It doesn't work in Safari! Arrrg!

Doesn anyone know a hack?

Thanks!

P.S. "myDiv = {_x get(...) , _x set(...)};" method doesn't work at all for divs...