index.js
function (browser) {
    // issue the kill command to the browser, when all tests are completed
    this.events.on('tests:complete:sauce:' + this.browserName, browser.kill.bind(browser));
    // clear the webdriver session, when all tests are completed
    this.events.on('tests:complete:sauce:' + this.browserName, this.webdriverClient.closeSession.bind(this.webdriverClient));
    return this;
  }
function (browser) {
    // issue the kill command to the browser, when all tests are completed
    this.events.on('tests:complete:sauce:' + this.browserName, browser.kill.bind(browser));
    // clear the webdriver session, when all tests are completed
    this.events.on('tests:complete:sauce:' + this.browserName, this.webdriverClient.closeSession.bind(this.webdriverClient));
    return this;
  }
function ( browser ) { // issue the kill command to the browser, when all tests are completed this . events . on ( 'tests:complete:sauce:' + this . browserName , browser . kill . bind ( browser ) ) ; // clear the webdriver session, when all tests are completed this . events . on ( 'tests:complete:sauce:' + this . browserName , this . webdriverClient . closeSession . bind ( this . webdriverClient ) ) ; return this ; }
Binds listeners on browser events

@method _initializeProperties
@param {object} browser Browser module
@chainable
@private
Binds listeners on browser events