]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
Modified the way list items were being built. Better use of .map() 700/head
authorAntonio Lettieri <alettieri@gmail.com>
Thu, 26 Jul 2012 06:30:20 +0000 (01:30 -0500)
committerAntonio Lettieri <alettieri@gmail.com>
Thu, 26 Jul 2012 06:30:20 +0000 (01:30 -0500)
vendor/assets/javascripts/foundation/jquery.foundation.forms.js

index 52f588dea991cacb708d2399f8e7f96945ac06d3..98804785ee34251eeaab820382b8ceb2c27a1c0c 100644 (file)
         //
         // Build our <li> elements.
         //
-        liHtml = $.map( $options, function( opt ) { return "<li>" + $( opt ).html() + "</li>"; } ).join( '' );
+        liHtml = $options.map( function() { return "<li>" + $( this ).html() + "</li>"; } ).get().join( '' );
         //
         // Append our <li> elements to the custom list (<ul>).
         //
         //
         // Create our list item <li> elements.
         //
-        liHtml = $.map( $options, function( opt ) { return "<li>" + $( opt ).html() + "</li>"; } ).join( '' );
+        liHtml = $options.map( function() { return "<li>" + $( this ).html() + "</li>"; } ).get().join( '' );
         //
         // Refresh the ul with options from the select in case the supplied markup doesn't match.
         // Clear what's currently in the <ul> element.