phlsa / gmynd-old

A toolkit that makes creating graphics easy
2 stars 0 forks source link

Easy way to get css properties #11

Closed bohnacker closed 11 years ago

bohnacker commented 11 years ago

How about implementing an easy way to get the value of some of the css properties? Something like: var w = myRect.get('width');

phlsa commented 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 getmethod might be better.