rem: var text; if(this.options.loadTextURL) { text = this.options.loadingText; 
add: var text = (this.options.loadTextURL ? this.options.loadingText : this.getText()); var fld; if (1 >= this.options.rows && !/\r|\n/.test(this.getText())) { fld = document.createElement('input'); fld.type = 'text'; var size = this.options.size || this.options.cols || 0; if (0 < size) fld.size = size; 
context:   createEditField: function() {    var text;    if(this.options.loadTextURL) {      text = this.options.loadingText;    } else {      text = this.getText();    }    var obj = this;        if (this.options.rows == 1 && !this.hasHTMLLineBreaks(text)) {      this.options.textarea = false;      var textField = document.createElement("input");      textField.obj = this;      textField.type = "text";      textField.name = this.options.paramName;      textField.value = text;      textField.style.backgroundColor = this.options.highlightcolor;      textField.className = 'editor_field';      var size = this.options.size || this.options.cols || 0;      if (size != 0) textField.size = size;      if (this.options.submitOnBlur)        textField.onblur = this.onSubmit.bind(this);      this.editField = textField;    } else {      this.options.textarea = true;      var textArea = document.createElement("textarea");      textArea.obj = this;      textArea.name = this.options.paramName;      textArea.value = this.convertHTMLLineBreaks(text);      textArea.rows = this.options.rows;      textArea.cols = this.options.cols || 40;      textArea.className = 'editor_field';            if (this.options.submitOnBlur)        textArea.onblur = this.onSubmit.bind(this);      this.editField = textArea;    }        if(this.options.loadTextURL) {      this.loadExternalText();    }    this.form.appendChild(this.editField);  },
meta: 9100	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/9100/2d4247a14ff4ce25ad80cbc65b787dfde7ddb16e/controls.js/buggy/typo3/contrib/scriptaculous/controls.js