Just use instanceof Ci.nsIDOMElement for Utils.isDOMElement for bug 582023.

This commit is contained in:
Edward Lee 2010-07-29 13:15:21 -07:00
Родитель 183c85bc14
Коммит 2e67d4d8fc
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -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;
},
// ----------