alexvollmer/tuneup_js — pull request #14 by brutella (2012-01-12 10:46:08+00:00)
Title: Added method to wait for an element to become invisible

Besides the method to wait for an element to become visible, I needed a method to wait for an element to become invisible.
Therefore I've refactored some methods and made a generic one to check for a condition to become true. I've used this function for both, wait for an element to become visible and invisible. I've prefixed this method with an underscore "_" to emphasize that it's used privately. I come from the Mac/Cocoa side ;)

I don't have much experience with javascript, hopefully the changes meets the standards of your project.