This commit is contained in:
parent
fa5d69ed3e
commit
67c441ccab
|
@ -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
2
dist/kute.min.js
vendored
File diff suppressed because one or more lines are too long
2
kute.js
2
kute.js
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue