all files / montage/core/extras/ element.js

100% Statements 3/3
83.33% Branches 5/6
100% Functions 1/1
100% Lines 3/3
1 2 3 4 5 6 7 8 9 10 11    354×            
 
Eif (typeof Element !== "undefined" && !Element.isElement) {
    Object.defineProperty(Element, "isElement", {
        value: function (obj) {
            return !!(obj && 1 === obj.nodeType);
        },
        writable: true,
        configurable: true
    });
}