Copy link to clipboard
Copied
is there a way to clear all stored variables in ES? I could set them to null at end of script, but this would be really annoying. Sometimes I just need to write some quick ditry code and don't want to worry about clearing them.
any ideas?
Wrap them in function… is whats recommended…
Copy link to clipboard
Copied
Wrap them in function… is whats recommended…
Copy link to clipboard
Copied
seriously? yuk. that needs to be fixed. guess I can't complain too much.
Copy link to clipboard
Copied
ok I tried it, seems to be a problem with using anon functions and // @include
not sure what is going on, but it throws all kinds of errors from my external library. any ideas?
seems to work fine with a regular function, could just do that I guess, not as clean though.
Copy link to clipboard
Copied
This is where my JS is weak… From what I understand the engine while debugging AI is persistent and they recommend function wrappers for your variables… I come from the Art & AppleScript side not programming so some of this stuff passes harmlessly overhead…
Find more inspiration, events, and resources on the new Adobe Community
Explore Now