Khác biệt giữa bản sửa đổi của “MediaWiki:Gadget-AVIM.js”

Nội dung được xóa Nội dung được thêm vào
maintenance: more info IndexSizeError: Index or size is negative or greater than the allowed amount
ECMAScript 5 không hỗ trợ từ khóa let
 
(Một sửa đổi ở giữa của cùng người dùng)
Dòng 1.385:
if(control) control.style.display = (control.style.display == 'none') ? 'block' : 'none';
}
}
/**
* Fires a fake onInput event from the given element. If preventDefault() is
* called on the onKeyPress event, most textboxes will not respond
* appropriately to AVIM's changes unless this method is called.
*
* @param target {object} A DOM node representing the textbox element.
*/
this.updateContainer = function(target) {
if (!target) return;
var inputEvent = target.ownerDocument.createEvent("Events");
inputEvent.initEvent("input", true, true);
if (target.dispatchEvent) target.dispatchEvent(inputEvent);
}
}
Hàng 1.473 ⟶ 1.487:
if (AVIMObj.is_ie && AVIMObj.ieVersion < 10) window.event.returnValue = false;
else e.preventDefault();
AVIMObj.updateContainer(target);
}
}, true);