Closed bohnacker closed 11 years ago
Currently, all the attributes you pass with Shape.set
and CreateShape
are copied to the object itsself.
So you can just do var w = myRect.width
This is really bad practice though, because we are opening the doors for lots of name collisions and confusion. So a universal get
method might be better.
How about implementing an easy way to get the value of some of the css properties? Something like: var w = myRect.get('width');