Visual LISP, AutoLISP and General Customization
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

JavaScript API globals and standards

1 REPLY 1
Reply
Message 1 of 2
Fa3ien
415 Views, 1 Reply

JavaScript API globals and standards

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

1 REPLY 1
Message 2 of 2
fenton.webb
in reply to: Fa3ien

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




Fenton Webb
AutoCAD Engineering
Autodesk

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

”Boost