Revert "-- corr"

This reverts commit 5315c47fcd.
This commit is contained in:
2024-11-05 10:55:34 -07:00
parent 5315c47fcd
commit 927295c7ba
276 changed files with 6381 additions and 3001 deletions

View File

@@ -99,7 +99,6 @@ Sys.Extended.UI.AutoCompleteBehavior = function(element) {
this._focusHandler = null;
this._blurHandler = null;
this._bodyClickHandler = null;
this._clickHandler = null;
this._completionListBlurHandler = null;
this._keyDownHandler = null;
this._mouseDownHandler = null;
@@ -189,7 +188,6 @@ Sys.Extended.UI.AutoCompleteBehavior.prototype = {
this._mouseOverHandler = Function.createDelegate(this, this._onListMouseOver);
this._completionListBlurHandler = Function.createDelegate(this, this._onCompletionListBlur);
this._bodyClickHandler = Function.createDelegate(this, this._onCompletionListBlur);
this._clickHandler = Function.createDelegate(this, this._onInputClick);
this._timer = new Sys.Timer();
@@ -246,7 +244,6 @@ Sys.Extended.UI.AutoCompleteBehavior.prototype = {
$removeHandler(element, "focus", this._focusHandler);
$removeHandler(element, "blur", this._blurHandler);
$removeHandler(element, "keydown", this._keyDownHandler);
$removeHandler(element, "click", this._clickHandler);
$removeHandler(this._completionListElement, 'blur', this._completionListBlurHandler);
$removeHandler(this._completionListElement, 'mousedown', this._mouseDownHandler);
$removeHandler(this._completionListElement, 'mouseup', this._mouseUpHandler);
@@ -261,7 +258,6 @@ Sys.Extended.UI.AutoCompleteBehavior.prototype = {
this._tickHandler = null;
this._focusHandler = null;
this._blurHandler = null;
this._clickHandler = null;
this._keyDownHandler = null;
this._completionListBlurHandler = null;
this._mouseDownHandler = null;
@@ -281,7 +277,6 @@ Sys.Extended.UI.AutoCompleteBehavior.prototype = {
$addHandler(element, "focus", this._focusHandler);
$addHandler(element, "blur", this._blurHandler);
$addHandler(element, "keydown", this._keyDownHandler);
$addHandler(element, "click", this._clickHandler);
},
initializeCompletionList: function(element) {
@@ -312,16 +307,6 @@ Sys.Extended.UI.AutoCompleteBehavior.prototype = {
$addHandler(document.body, 'click', this._bodyClickHandler);
},
_onInputClick: function(e) {
if(!e)
e = window.event;
if(e.stopPropagation)
e.stopPropagation();
else
e.cancelBubble = true;
},
_currentCompletionWord: function() {
var element = this.get_element();
var elementValue = element.value;
@@ -723,10 +708,7 @@ Sys.Extended.UI.AutoCompleteBehavior.prototype = {
} else {
element.value = newText;
}
// In Chrome and Firefox, this event is triggered automatically
if ($common.isMsBrowser() || $common.isAppleBrowser())
$common.tryFireEvent(element, "change");
$common.tryFireEvent(element, "change");
this.raise_itemSelected(new Sys.Extended.UI.AutoCompleteItemEventArgs(item, text, item ? item._value : null));
@@ -1299,4 +1281,4 @@ Sys.Extended.UI.AutoCompleteItemEventArgs.prototype = {
this._value = value;
}
}
Sys.Extended.UI.AutoCompleteItemEventArgs.registerClass('Sys.Extended.UI.AutoCompleteItemEventArgs', Sys.EventArgs);
Sys.Extended.UI.AutoCompleteItemEventArgs.registerClass('Sys.Extended.UI.AutoCompleteItemEventArgs', Sys.EventArgs);