code: function( arr ){
                  return $.map( arr, function( member ){
                      return member && member.jquery ? $.makeArray( member ) :
                          member && member.length ? drag.flatten( member ) : member;
                  });
              }
docs: flatten nested jquery objects and arrays into a single dimension array