Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var arrayMethods = Object.getOwnPropertyNames( Array.prototype );
- arrayMethods.forEach( attachArrayMethodsToNodeList );
- function attachArrayMethodsToNodeList(methodName)
- {
- NodeList.prototype[methodName] = Array.prototype[methodName];
- };
- document.querySelectorAll('.multiColumnCheckable .checkbox').forEach(function (el) {el.click()})
Advertisement
Add Comment
Please, Sign In to add comment