View Single Post
Old 01-07-2013, 04:54 PM   PM User | #6
xelawho
Senior Coder

 
xelawho's Avatar
 
Join Date: Nov 2010
Posts: 2,461
Thanks: 52
Thanked 457 Times in 455 Posts
xelawho will become famous soon enoughxelawho will become famous soon enough
Quote:
Originally Posted by rnd me View Post
you can define a new property, like element.display, and then use getters and setters to instantly push the updates to the actual element.style.display property. that also gives you the event you need, and with zero CPU cost and no polling.
this sounds good (the second sounds good, too, but a little over my head). Sorry for being thick, but can you give me an example of how the first one would look?
xelawho is offline   Reply With Quote