lib/commands/page.js
function (timeout, hash, uuid) {
    var deferred = Q.defer();
    this.events.emit('driver:message', {key: 'wait', timeout: timeout, uuid: uuid, hash: hash, value: timeout + ' ms'});
    setTimeout(function () {
      deferred.resolve();
    }.bind(this), timeout);
    return deferred.promise;
  }
function (timeout, hash, uuid) {
    var deferred = Q.defer();
    this.events.emit('driver:message', {key: 'wait', timeout: timeout, uuid: uuid, hash: hash, value: timeout + ' ms'});
    setTimeout(function () {
      deferred.resolve();
    }.bind(this), timeout);
    return deferred.promise;
  }
function ( timeout , hash , uuid ) { var deferred = Q . defer ( ) ; this . events . emit ( 'driver:message' , { key : 'wait' , timeout : timeout , uuid : uuid , hash : hash , value : timeout + ' ms' } ) ; setTimeout ( function ( ) { deferred . resolve ( ) ; } . bind ( this ) , timeout ) ; return deferred . promise ; }
Sends out an event with the results of the `wait` call

@method _waitCb
@param {integer} timeout Time to wait in ms
@param {string} hash Unique hash of that fn call
@param {string} uuid Unique hash of that fn call
@return {object} promise WaitForElement promise
@private
Sends out an event with the results of the wait call