+ /**
+ * @summary Add or remove ARIA attributes.
+ * Uses jQuery's width() function to determine the size of the window and add
+ * the default ARIA attributes for the menu toggle if it's visible.
+ * @since Twenty Fifteen 1.1
+ */
+ function onResizeARIA() {
+ if ( 955 > $window.width() ) {
+ button.attr( 'aria-expanded', 'false' );
+ secondary.attr( 'aria-expanded', 'false' );
+ button.attr( 'aria-controls', 'secondary' );
+ } else {
+ button.removeAttr( 'aria-expanded' );
+ secondary.removeAttr( 'aria-expanded' );
+ button.removeAttr( 'aria-controls' );
+ }
+ }
+