option, options;
if ( $selected.attr( 'data-subprojects' ) ) {
- options = $.map( $selected.attr( 'data-subprojects' ).split( ' ' ), function ( el ) {
+ options = $selected.attr( 'data-subprojects' ).split( ' ' ).map( function ( el ) {
option = document.createElement( 'option' );
option.appendChild( document.createTextNode( el ) );
option.setAttribute( 'value', el );