+
+ if ( 'ontouchstart' in window ) {
+ $( '.menu-item-has-children > a' ).on( 'touchstart.twentytwelve', function( e ) {
+ var el = $( this ).parent( 'li' );
+
+ if ( ! el.hasClass( 'focus' ) ) {
+ e.preventDefault();
+ el.toggleClass( 'focus' );
+ el.siblings( '.focus').removeClass( 'focus' );
+ }
+ } );
+ }