Bug 869934 - GCLI mouse clicks links in output don't update the command line properly; r=mratcliffe

This commit is contained in:
Joe Walker 2013-05-09 15:15:23 +01:00
parent 85614b4bfc
commit 54b045b187

View File

@ -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) {
typed = getDataCommandAttribute(typed);
}
if (typed != null && typed.targetElement instanceof HTMLElement) {
typed = getDataCommandAttribute(typed.targetElement);
}
if (typeof HTMLElement !== 'undefined' && typed instanceof HTMLElement) {
typed = getDataCommandAttribute(typed);
}
if (typeof Event !== 'undefined' && typed instanceof Event) {
typed = getDataCommandAttribute(typed.currentTarget);
}
this._structuralChangeInProgress = true;