lib/commands/window.js
function (dimensions, hash) {
    this.actionQueue.push(this.webdriverClient.setWindowSize.bind(this.webdriverClient, dimensions.width, dimensions.height));
    this.actionQueue.push(this._resizeCb.bind(this, dimensions, hash));
    return this;
  }
function (dimensions, hash) {
    this.actionQueue.push(this.webdriverClient.setWindowSize.bind(this.webdriverClient, dimensions.width, dimensions.height));
    this.actionQueue.push(this._resizeCb.bind(this, dimensions, hash));
    return this;
  }
function ( dimensions , hash ) { this . actionQueue . push ( this . webdriverClient . setWindowSize . bind ( this . webdriverClient , dimensions . width , dimensions . height ) ) ; this . actionQueue . push ( this . _resizeCb . bind ( this , dimensions , hash ) ) ; return this ; }
Resizes the current window

@method resize
@param {object} dimensions New window width & height
@param {string} hash Unique hash of that fn call
@chainable
Resizes the current window