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){
|
function getElementsByClassName(context, tag, cls){
|
||||||
var ele = context.getElementsByTagName(tag),
|
var ele = context.getElementsByTagName(tag),
|
||||||
ret = [],
|
ret = [],
|
||||||
current;
|
current,
|
||||||
|
classes;
|
||||||
|
|
||||||
for(var i = 0, j = ele.length; i < j; i++){
|
for(var i = 0, j = ele.length; i < j; i++){
|
||||||
current = ele[i];
|
current = ele[i];
|
||||||
|
Loading…
Reference in New Issue
Block a user