rem: EchoRemoteClient.ComponentSyncUpdateProcessor.prototype._processUpdate = function(upElement) {  var parentComponent; if (upElement.getAttribute("r") == "true") { parentComponent = this._client.application.rootComponent; } else { var parentId = upElement.getAttribute("i"); parentComponent = this._client.application.getComponentByRenderId(parentId); }  var styleName = upElement.getAttribute("s"); if (styleName != null) { parentComponent.setStyleName(styleName == "" ? null : styleName); var styleType = upElement.getAttribute("st"); if (styleType) { parentComponent.setStyleType(styleType); 
add: _processUpdate: function(upElement) {  var parentComponent; if (upElement.getAttribute("r") == "true") { parentComponent = this._client.application.rootComponent; 
context: EchoRemoteClient.ComponentSyncUpdateProcessor.prototype._processUpdate = function(upElement) {    // Determine parent component    var parentComponent;    if (upElement.getAttribute("r") == "true") {        parentComponent = this._client.application.rootComponent;    } else {        var parentId = upElement.getAttribute("i");        parentComponent = this._client.application.getComponentByRenderId(parentId);    }    var styleName = upElement.getAttribute("s");    if (styleName != null) {        parentComponent.setStyleName(styleName == "" ? null : styleName); //FIXME verify this works as desired for unsets.        var styleType = upElement.getAttribute("st");        if (styleType) {            parentComponent.setStyleType(styleType);        } else {            parentComponent.setStyleType(null);        }    }    var enabledState = upElement.getAttribute("en");    if (enabledState) {        parentComponent.setEnabled(enabledState == "true");    }    var element = upElement.firstChild;    while (element) {        if (element.nodeType == 1) {            switch (element.nodeName) {            case "c": // Added child.                var component = EchoSerial.loadComponent(this._client, element, this._referenceMap);                var index = element.getAttribute("x");                if (index == null) {                    parentComponent.add(component);                } else {                    parentComponent.add(component, parseInt(index));                }                break;            case "p": // Property update.                EchoSerial.loadProperty(this._client, element, parentComponent, null, this._referenceMap);                break;            case "e": // Event update.                var eventType = element.getAttribute("t");                if (element.getAttribute("v") == "true") {                    this._client.removeComponentListener(parentComponent, eventType);                    this._client.addComponentListener(parentComponent, eventType);                } else {                    this._client.removeComponentListener(parentComponent, eventType);                }                break;            }        }        element = element.nextSibling;    }};
meta: 600	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/600/4705113f80e2c9e4d43ad240349e3193f4caf648/RemoteClient.js/buggy/src/webcontainer/java/nextapp/echo/webcontainer/resource/js/RemoteClient.js