rem: this.title = function() { return this.currentDocument.title; }; 
add: this.title = function() {return this.currentDocument.title;}; 
context: var PageBot = function(pageWindow) {    if (pageWindow) {        this.currentWindow = pageWindow;        this.currentDocument = pageWindow.document;        this.location = pageWindow.location;        this.title = function() {            return this.currentDocument.title;        };    }    // Register all locateElementBy* functions    // TODO - don't do this in the constructor - only needed once ever    this.locationStrategies = {};    for (var functionName in this) {        var result = /^locateElementBy([A-Z].+)$/.exec(functionName);        if (result != null) {            var locatorFunction = this[functionName];            if (typeof(locatorFunction) != 'function') {                continue;            }            // Use a specified prefix in preference to one generated from            // the function name            var locatorPrefix = locatorFunction.prefix || result[1].toLowerCase();            this.locationStrategies[locatorPrefix] = locatorFunction;        }    }    /**     * Find a locator based on a prefix.     */    this.findElementBy = function(locatorType, locator, inDocument) {        var locatorFunction = this.locationStrategies[locatorType];        if (! locatorFunction) {            throw new SeleniumError("Unrecognised locator type: '" + locatorType + "'");        }        return locatorFunction.call(this, locator, inDocument);    };    /**     * The implicit locator, that is used when no prefix is supplied.     */    this.locationStrategies['implicit'] = function(locator, inDocument) {        if (locator.startsWith('//')) {            return this.locateElementByXPath(locator, inDocument);        }        if (locator.startsWith('document.')) {            return this.locateElementByDomTraversal(locator, inDocument);        }        return this.locateElementByIdentifier(locator, inDocument);    };};
meta: 4983	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4983/6b0b260c628dcdbf842d816728bb3bdcc6219faa/selenium-browserbot.js/buggy/code/javascript/core/scripts/selenium-browserbot.js