resources/www/scripts/collapsible.js
function (mml) {
      if (this.SplitAttribute(mml,"children").length === 1) {
        var child = (mml.data.length === 1 && mml.data[0].inferred ? mml.data[0] : mml);
        if (child.data[0] && child.data[0].collapsible) {
          //
          //  Move menclose into the maction element
          //
          var maction = child.data[0];
          child.SetData(0,maction.data[1]);
          maction.SetData(1,mml);
          mml = maction;
        }
      }
      return mml;
    }
function (mml) {
      if (this.SplitAttribute(mml,"children").length === 1) {
        var child = (mml.data.length === 1 && mml.data[0].inferred ? mml.data[0] : mml);
        if (child.data[0] && child.data[0].collapsible) {
          //
          //  Move menclose into the maction element
          //
          var maction = child.data[0];
          child.SetData(0,maction.data[1]);
          maction.SetData(1,mml);
          mml = maction;
        }
      }
      return mml;
    }
function ( mml ) { if ( this . SplitAttribute ( mml , "children" ) . length === 1 ) { var child = ( mml . data . length === 1 && mml . data [ 0 ] . inferred ? mml . data [ 0 ] : mml ) ; if ( child . data [ 0 ] && child . data [ 0 ] . collapsible ) { // //  Move menclose into the maction element // var maction = child . data [ 0 ] ; child . SetData ( 0 , maction . data [ 1 ] ) ; maction . SetData ( 1 , mml ) ; mml = maction ; } } return mml ; }
For enclose, include enclosure in collapsed child, if any
For enclose include enclosure in collapsed child if any