This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function extend_NodeList(proto){ | |
if(Object.defineProperty){ | |
Object.getOwnPropertyNames(Array.prototype).filter(function(prop){ | |
return typeof Array.prototype[prop] === 'function'; | |
}).forEach(extend_by_array); | |
} | |
function extend_by_array(name){ | |
if (name in NodeList.prototype){ | |
return; | |
} |