From: shortspider Date: Tue, 25 Mar 2014 15:12:12 +0000 (-0400) Subject: Use local variable. X-Git-Tag: v5.2.2~72^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F4789%2Fhead;p=thirdparty%2Ffoundation%2Ffoundation-sites.git Use local variable. --- diff --git a/js/foundation/foundation.js b/js/foundation/foundation.js index 11a23691a..d674c54e8 100644 --- a/js/foundation/foundation.js +++ b/js/foundation/foundation.js @@ -14,8 +14,8 @@ var head = $('head'); while (i--) { - if($('head').has('.' + class_array[i]).length === 0) { - $('head').append(''); + if(head.has('.' + class_array[i]).length === 0) { + head.append(''); } } };