From 60fd933834140f881079eae4d292b197d7377e87 Mon Sep 17 00:00:00 2001 From: Eric Kever Date: Wed, 20 Jul 2011 08:32:27 -0400 Subject: [PATCH] Initialized classes variable in getElementsByClassName() --- javascripts/app.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/javascripts/app.js b/javascripts/app.js index 13d0746..0d437c3 100644 --- a/javascripts/app.js +++ b/javascripts/app.js @@ -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];