Add a comment explaining that jQuery.map flattens arrays
authoradam j. sontag <ajpiano@ajpiano.com>
Sat, 27 Nov 2010 22:15:33 +0000 (17:15 -0500)
committeradam j. sontag <ajpiano@ajpiano.com>
Sat, 27 Nov 2010 22:15:33 +0000 (17:15 -0500)
src/core.js

index 3389e83..3c7572f 100644 (file)
@@ -726,6 +726,7 @@ jQuery.extend({
                        }
                }
 
                        }
                }
 
+               // Flatten any nested arrays
                return ret.concat.apply( [], ret );
        },
 
                return ret.concat.apply( [], ret );
        },