SeleniumHQ/selenium — pull request #210 by smhc (2014-04-25 12:51:09+00:00)
Title: Code comment changes for wait()

It is more common to use a condition returning a promise rather than a boolean, and this is supported by wait(). The angular protractor documentation is missing this important information due to it being generated from this function.