resources/www/scripts/accessibility-menu.js
function() {
      var items = Array(this.modules.length);
      for (var i = 0, module; module = this.modules[i]; i++) items[i] = module.placeHolder;
      var menu = MENU.FindId('Accessibility');
      if (menu) {
        items.unshift(ITEM.RULE());
        menu.submenu.items.push.apply(menu.submenu.items,items);
      } else {
        var renderer = (MENU.FindId("Settings","Renderer")||{}).submenu;
        if (renderer) {
          // move AssitiveMML and InTabOrder from Renderer to Accessibility menu
          items.unshift(ITEM.RULE());
          items.unshift(renderer.items.pop());
          items.unshift(renderer.items.pop());
        }
        items.unshift("Accessibility");
        var menu = ITEM.SUBMENU.apply(ITEM.SUBMENU,items);
        var locale = MENU.IndexOfId('Locale');
        if (locale) {
          MENU.items.splice(locale,0,menu);
        } else {
          MENU.items.push(ITEM.RULE(), menu);
        }
      }
    }
function() {
      var items = Array(this.modules.length);
      for (var i = 0, module; module = this.modules[i]; i++) items[i] = module.placeHolder;
      var menu = MENU.FindId('Accessibility');
      if (menu) {
        items.unshift(ITEM.RULE());
        menu.submenu.items.push.apply(menu.submenu.items,items);
      } else {
        var renderer = (MENU.FindId("Settings","Renderer")||{}).submenu;
        if (renderer) {
          // move AssitiveMML and InTabOrder from Renderer to Accessibility menu
          items.unshift(ITEM.RULE());
          items.unshift(renderer.items.pop());
          items.unshift(renderer.items.pop());
        }
        items.unshift("Accessibility");
        var menu = ITEM.SUBMENU.apply(ITEM.SUBMENU,items);
        var locale = MENU.IndexOfId('Locale');
        if (locale) {
          MENU.items.splice(locale,0,menu);
        } else {
          MENU.items.push(ITEM.RULE(), menu);
        }
      }
    }
function ( ) { var items = Array ( this . modules . length ) ; for ( var i = 0 , module ; module = this . modules [ i ] ; i ++ ) items [ i ] = module . placeHolder ; var menu = MENU . FindId ( 'Accessibility' ) ; if ( menu ) { items . unshift ( ITEM . RULE ( ) ) ; menu . submenu . items . push . apply ( menu . submenu . items , items ) ; } else { var renderer = ( MENU . FindId ( "Settings" , "Renderer" ) || { } ) . submenu ; if ( renderer ) { // move AssitiveMML and InTabOrder from Renderer to Accessibility menu items . unshift ( ITEM . RULE ( ) ) ; items . unshift ( renderer . items . pop ( ) ) ; items . unshift ( renderer . items . pop ( ) ) ; } items . unshift ( "Accessibility" ) ; var menu = ITEM . SUBMENU . apply ( ITEM . SUBMENU , items ) ; var locale = MENU . IndexOfId ( 'Locale' ) ; if ( locale ) { MENU . items . splice ( locale , 0 , menu ) ; } else { MENU . items . push ( ITEM . RULE ( ) , menu ) ; } } }
Attaches the menu items;
Attaches the menu items ;