thednp 2016-08-22 02:21:37 +03:00
parent fa5d69ed3e
commit 67c441ccab
3 changed files with 3 additions and 3 deletions

View file

@ -30,7 +30,7 @@
K.selector = function(el,multi){ // a selector utility
var nl;
if (multi){
nl = typeof el === 'object' && el.length ? el : document.querySelectorAll(el);
nl = el instanceof NodeList ? el : document.querySelectorAll(el);
} else {
nl = typeof el === 'object' ? el : /^#/.test(el) ? document.getElementById(el.replace('#','')) : document.querySelector(el);
}

2
dist/kute.min.js vendored

File diff suppressed because one or more lines are too long

View file

@ -30,7 +30,7 @@
K.selector = function(el,multi){ // a selector utility
var nl;
if (multi){
nl = typeof el === 'object' && el.length ? el : document.querySelectorAll(el);
nl = el instanceof NodeList ? el : document.querySelectorAll(el);
} else {
nl = typeof el === 'object' ? el : /^#/.test(el) ? document.getElementById(el.replace('#','')) : document.querySelector(el);
}