Deleting Object Properties

© 2011, Martin Rinehart

I had a trigger element for a hover effect. Its name was, creatively, trigger. I was pausing for a few millis before executing the hover effect (based on one expert who had usability tested and thought 500 millis delay was called for). I needed to clearTimeout() if the appropriate millis had not elapsed.

This did not work: delete trigger.not_yet;. MSIE didn't like it. This worked: trigger.not_yet = null;. (I avoid null because it is an object, though a falsy one. No more avoiding null.)

From now on, I'm making it null.

Feedback: MartinRinehart at gmail dot com

# # #