----- Original Message ----- 
From: Michael Pemberton <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, May 09, 2001 04:34
Subject: Re: [Dynapi-Dev] OT: Scriptcompressing


> I just tried it out on some of my own code.  looks great.  here's what I found:
> 
> - If I already use "};" at the end of all my functions, the code will end up as "};;"
hmm, correct.
I took for granted my own coding style was common style...
;; is not a problem for the parser, its more an estethical issue.
I'll look into this.

> - The substition of variable names sounds great but where does it tell the browser 
>that $XX should point to.  I use the window object to
> attach much of my code to make it available and this was replaced with $10.  I 
>didn't see any code that told the browser that $10 points
> to the window object.

this should not happen, the deal is that top-level props/method (members of  the 
window object)
and top-level objects themselves ( WScript, window, self...) are _never_ to be 
substituted.
are you sure the 'window.map' file in the ./ESC directory is loaded correctly by ESC, 
this is the file keeping
track of what is and what is not substitutable...
What OS are you on ??

try running with the -v switch on ...
alt. saving the verbose output to a file; cscript esc.wsf ... ... ... > verbose.txt

thomas.


_______________________________________________
Dynapi-Dev mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-dev

Reply via email to