rem: if (nuc.type != 'text' && nuc.type != 'TeX' && nuc.type != 'null') 
add: if (nuc.type && nuc.type != 'text' && nuc.type != 'TeX' && nuc.type != 'null') 
context:   SupSub: function (style,size,mitem) {    var TeX = jsMath.Typeset.TeX(style,size);    var nuc = mitem.nuc;    var box = mitem.nuc = jsMath.Box.Set(mitem.nuc,style,size,0);    if (box.format == 'null')       {box = mitem.nuc = jsMath.Box.Text('','normal',style,size)}    if (nuc.type == 'TeX') {      if (!mitem.textsymbol) {        var C = jsMath.TeX[nuc.font][nuc.c];        if (C.ic) {          mitem.delta = C.ic * TeX.scale;          if (!mitem.sub) {            box = mitem.nuc = jsMath.Box.SetList([box,jsMath.Box.Space(mitem.delta)],style,size);            mitem.delta = 0;          }        }      } else {mitem.delta = 0}    }    if (!mitem.sup && !mitem.sub) return;    mitem.nuc.Styled();        var Cd = jsMath.Typeset.DownStyle(style);    var Cu = jsMath.Typeset.UpStyle(style);    var q = jsMath.Typeset.TeX(Cu,size).sup_drop;    var r = jsMath.Typeset.TeX(Cd,size).sub_drop;    var u = 0; var v = 0; var p;    if (nuc.type != 'text' && nuc.type != 'TeX' && nuc.type != 'null')      {u = box.h - q; v = box.d + r}    if (mitem.sub) {      var sub = jsMath.Box.Set(mitem.sub,Cd,size);      sub = jsMath.Box.SetList([sub,jsMath.mItem.Space(TeX.scriptspace)],style,size);    }    if (!mitem.sup) {      sub.y = -Math.max(v,TeX.sub1,sub.h-(4/5)*jsMath.Typeset.TeX(Cd,size).x_height);      mitem.nuc = jsMath.Box.SetList([box,sub],style,size).Styled(); delete mitem.sub;      return;    }    var sup = jsMath.Box.Set(mitem.sup,Cu,size);    sup = jsMath.Box.SetList([sup,jsMath.mItem.Space(TeX.scriptspace)],style,size);    if (style == 'D') {p = TeX.sup1}    else if (style.charAt(style.length-1) == "'") {p = TeX.sup3}    else {p = TeX.sup2}    u = Math.max(u,p,sup.d+jsMath.Typeset.TeX(Cu,size).x_height/4);    if (!mitem.sub) {      sup.y = u;      mitem.nuc = jsMath.Box.SetList([box,sup],style,size); delete mitem.sup;      return;    }    v = Math.max(v,jsMath.Typeset.TeX(Cd,size).sub2);    var t = TeX.default_rule_thickness;    if ((u-sup.d) - (sub.h -v) < 4*t) {      v = 4*t + sub.h - (u-sup.d);      p = (4/5)*TeX.x_height - (u-sup.d);      if (p > 0) {u += p; v -= p}    }    sup.Remeasured(); sub.Remeasured();    sup.y = u; sub.y = -v; sup.x = mitem.delta;    if (sup.w+sup.x > sub.w)      {sup.x -= sub.w; mitem.nuc = jsMath.Box.SetList([box,sub,sup],style,size)} else      {sub.x -= (sup.w+sup.x); mitem.nuc = jsMath.Box.SetList([box,sup,sub],style,size)}    delete mitem.sup; delete mitem.sub;  }
meta: 7708	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/7708/a844e1ec626c2b970c32377c4ad06bb088afa9bd/jsMath.js/buggy/htdocs/jsMath/uncompressed/jsMath.js