Initialized classes variable in getElementsByClassName()

This commit is contained in:
Eric Kever 2011-07-20 08:32:27 -04:00
parent ecd86cf8ee
commit 60fd933834

View File

@ -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];