Initialized classes variable in getElementsByClassName()
This commit is contained in:
parent
ecd86cf8ee
commit
60fd933834
@ -20,7 +20,8 @@ if(window.addEventListener){
|
||||
function getElementsByClassName(context, tag, cls){
|
||||
var ele = context.getElementsByTagName(tag),
|
||||
ret = [],
|
||||
current;
|
||||
current,
|
||||
classes;
|
||||
|
||||
for(var i = 0, j = ele.length; i < j; i++){
|
||||
current = ele[i];
|
||||
|
Loading…
Reference in New Issue
Block a user