mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-23 02:05:42 +00:00
Bug 869934 - GCLI mouse clicks links in output don't update the command line properly; r=mratcliffe
This commit is contained in:
parent
87ec6aefb0
commit
e8c897e846
@ -6923,13 +6923,11 @@ function getDataCommandAttribute(element) {
|
||||
* @param typed The contents of the input field
|
||||
*/
|
||||
Requisition.prototype.update = function(typed) {
|
||||
if (typeof HTMLElement !== 'undefined') {
|
||||
if (typed instanceof HTMLElement) {
|
||||
if (typeof HTMLElement !== 'undefined' && typed instanceof HTMLElement) {
|
||||
typed = getDataCommandAttribute(typed);
|
||||
}
|
||||
if (typed != null && typed.targetElement instanceof HTMLElement) {
|
||||
typed = getDataCommandAttribute(typed.targetElement);
|
||||
}
|
||||
if (typeof Event !== 'undefined' && typed instanceof Event) {
|
||||
typed = getDataCommandAttribute(typed.currentTarget);
|
||||
}
|
||||
|
||||
this._structuralChangeInProgress = true;
|
||||
|
Loading…
Reference in New Issue
Block a user