From: Antonio Lettieri Date: Thu, 26 Jul 2012 06:30:20 +0000 (-0500) Subject: Modified the way list items were being built. Better use of .map() X-Git-Tag: v3.0.7.rc11~8^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F700%2Fhead;p=thirdparty%2Ffoundation%2Ffoundation-sites.git Modified the way list items were being built. Better use of .map() --- diff --git a/vendor/assets/javascripts/foundation/jquery.foundation.forms.js b/vendor/assets/javascripts/foundation/jquery.foundation.forms.js index 52f588dea..98804785e 100644 --- a/vendor/assets/javascripts/foundation/jquery.foundation.forms.js +++ b/vendor/assets/javascripts/foundation/jquery.foundation.forms.js @@ -198,7 +198,7 @@ // // Build our
  • elements. // - liHtml = $.map( $options, function( opt ) { return "
  • " + $( opt ).html() + "
  • "; } ).join( '' ); + liHtml = $options.map( function() { return "
  • " + $( this ).html() + "
  • "; } ).get().join( '' ); // // Append our
  • elements to the custom list (