зеркало из https://github.com/mozilla/gecko-dev.git
Just use instanceof Ci.nsIDOMElement for Utils.isDOMElement for bug 582023.
This commit is contained in:
Родитель
183c85bc14
Коммит
2e67d4d8fc
|
@ -576,7 +576,7 @@ let Utils = {
|
|||
// Function: isDOMElement
|
||||
// Returns true if the given object is a DOM element.
|
||||
isDOMElement: function(object) {
|
||||
return (object && typeof(object.nodeType) != 'undefined' ? true : false);
|
||||
return object instanceof Ci.nsIDOMElement;
|
||||
},
|
||||
|
||||
// ----------
|
||||
|
|
Загрузка…
Ссылка в новой задаче