Community
Hello,
(I'm posting here since there isn't, as of today, a JS forum)
So, following the wonderful news about a JavaScript API in Acad2014,
I have two questions :
- in web browsers, global variables (which one shouldn't use, but sometimes
there's no other option) are bound to the "window" object. Meaning : if you
declare foo = 1, you're raeally saying window.foo = 1. In AutoCAD, where are
JS globals bound ?
- Which standards AutoCAD's JS interpreter is following ? ECMAScript 5 ? other ?
TIA
All globals are referenced in the same way that you mention, they are bound to the window object.
We use V8, which is compatible with ECMAScript 5