]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
Use local variable. 4789/head
authorshortspider <mascitelli.nathan@gmail.com>
Tue, 25 Mar 2014 15:12:12 +0000 (11:12 -0400)
committershortspider <mascitelli.nathan@gmail.com>
Tue, 25 Mar 2014 15:12:12 +0000 (11:12 -0400)
js/foundation/foundation.js

index 11a23691a7a3674e9acc51257d0eed0e826ce5bc..d674c54e81ff34818ffbf4512297091c67470d3e 100644 (file)
@@ -14,8 +14,8 @@
     var head = $('head');
 
     while (i--) {
-      if($('head').has('.' + class_array[i]).length === 0) {
-        $('head').append('<meta class="' + class_array[i] + '" />');
+      if(head.has('.' + class_array[i]).length === 0) {
+          head.append('<meta class="' + class_array[i] + '" />');
       }
     }
   };