Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

clearing variable cache

Explorer ,
Jun 07, 2012 Jun 07, 2012

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?

TOPICS
Scripting
1.3K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Guru , Jun 07, 2012 Jun 07, 2012

Wrap them in function… is whats recommended…

Translate
Adobe
Guru ,
Jun 07, 2012 Jun 07, 2012

Wrap them in function… is whats recommended…

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jun 07, 2012 Jun 07, 2012

seriously? yuk. that needs to be fixed. guess I can't complain too much.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jun 07, 2012 Jun 07, 2012

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guru ,
Jun 08, 2012 Jun 08, 2012
LATEST

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…

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines