cvs: phpdoc /scripts/quickref originalafter.js

From: Date: Tue, 30 Dec 2003 17:09:54 +0000
Subject: cvs: phpdoc /scripts/quickref originalafter.js
Groups: php.doc 
Request: Send a blank email to phpdoc+get-969357739@lists.php.net to get a copy of this message
goba Tue Dec 30 12:09:54 2003 EDT Modified files: /phpdoc/scripts/quickref originalafter.js Log: fixing IE5.5 requiring push() and pop() methods to use older JS features instead Index: phpdoc/scripts/quickref/originalafter.js diff -u phpdoc/scripts/quickref/originalafter.js:1.5 phpdoc/scripts/quickref/originalafter.js:1.6 --- phpdoc/scripts/quickref/originalafter.js:1.5 Sat Nov 22 07:21:06 2003 +++ phpdoc/scripts/quickref/originalafter.js Tue Dec 30 12:09:53 2003 @@ -37,10 +37,10 @@ fcl=new Array(); pst=new Array(""); ac=""; for (pos=0; pos<cpd.length; pos++) { switch (ch=cpd.charAt(pos)) { - case ',': fcl.push(l(pst)+ac); ac=""; break; - case '(': pst.push(l(pst)+ac); ac=""; break; - case ')': case ']': if(ac.length)fcl.push(l(pst)+ac); ac=""; pst.pop(); break; - case '[': fcl.push(a=l(pst)+ac); pst.push(a); ac=""; break; + case ',': fcl[fcl.length]=l(pst)+ac; ac=""; break; + case '(': pst[pst.length]=l(pst)+ac; ac=""; break; + case ')': case ']': if(ac.length)fcl[fcl.length]=l(pst)+ac; ac=""; pst.length--; break; + case '[': fcl[fcl.length]=(a=l(pst)+ac); pst[pst.length]=a; ac=""; break; default: ac=ac+ch; } } @@ -91,7 +91,7 @@ if (m&&fh_IsMatch(m-1,pr)) m--; if (!fh_IsMatch(m,pr) && m<(fcl.length-1) && fh_IsMatch(m+1,pr)) m++; res=new Array; - while (m<fcl.length && fh_IsMatch(m,pr)) res.push(fcl[m++]); + while (m<fcl.length && fh_IsMatch(m,pr)) res[res.length]=fcl[m++]; return res; } @@ -211,7 +211,7 @@ if (isnotopera) { len=0; first=matches[0]; - last=matches.pop(); + last=matches[matches.length-1]; matches.length--; while (len<first.length && first.substring(0,len+1)==last.substring(0,len+1)) len++; if (f_p.value!=first.substring(0,len)) { f_p.value=first.substring(0,len);

« previous php.doc (#969357739) next »