summaryrefslogtreecommitdiff
path: root/tex/context/base/java-stp.tex
diff options
context:
space:
mode:
Diffstat (limited to 'tex/context/base/java-stp.tex')
-rw-r--r--tex/context/base/java-stp.tex16
1 files changed, 5 insertions, 11 deletions
diff --git a/tex/context/base/java-stp.tex b/tex/context/base/java-stp.tex
index fcb9d4f22..df4fbcc2f 100644
--- a/tex/context/base/java-stp.tex
+++ b/tex/context/base/java-stp.tex
@@ -11,13 +11,13 @@
%C therefore copyrighted by \PRAGMA. See mreadme.pdf for
%C details.
-\startJSpreamble Steps used now
+% we define ocglist global, otherwise we quickly run into a memory hog (even
+% out of memory in a 512 Meg machine)
- % we define ocglist global, otherwise we quickly run into a memory hog (even
- % out of memory in a 512 Meg machine)
+% we cannot use doc_visited[this.pageNum] instead of doc_currentstep because
+% of some funny side effect (i.e. dup or so)
- % we cannot use doc_visited[this.pageNum] instead of doc_currentstep because
- % of some funny side effect (i.e. dup or so)
+\startJSpreamble Steps used now
var doc_ocglist = this.getOCGs() ;
var doc_stepname = "step" ;
@@ -26,9 +26,6 @@
var doc_visited = new Array() ;
var doc_busy = new Array() ;
- % for some reason, this function is not seen in time (funny initialization
- % order again?) ...
-
function SetupStepper ( layername, laststep ) {
doc_stepname = layername ;
doc_maxstep = laststep ;
@@ -38,8 +35,6 @@
}
}
- % so, we do it the ugly way
-
for (var i=0; i<=this.numPages; i++) {
doc_visited[i] = 0 ;
doc_busy[i] = 0 ;
@@ -96,7 +91,6 @@
function InvokeStepper ( ) {
try {
-% console.println("INVOKE "+doc_currentstep+" "+doc_busy[this.pageNum]) ;
if (doc_currentstep<doc_busy[this.pageNum]) {
doc_currentstep += 1 ;
doc_visited[this.pageNum] = doc_currentstep ;