Re: Problems with the InstallationCheck script
Re: Problems with the InstallationCheck script
- Subject: Re: Problems with the InstallationCheck script
- From: Peter Bierman <email@hidden>
- Date: Tue, 4 Dec 2007 11:43:20 -0800
At 9:58 PM -0800 12/3/07, Nathan Duran wrote:
On Dec 3, 2007, at 6:28 PM, Peter Bierman wrote:
Furthermore, this isn't JavaScript + DOM like in a web browser.
There are no DOM methods available in the installer's JavaScript
sandbox. Instead, there are a small number of utility functions
available under the global 'system' object.
I understand the distinction, the language's peculiar notions of
scope and closures-over-classes flavor of OOP are just not something
I generally expect (or want) to have to deal with any more often
than I absolutely have to, and it seemed an odd choice unless
security driven.
JavaScript (like all languages) certainly has quirks.
I'd be pretty frightened if someone needed to use OOP in their
distribution script. :-)
The JavaScript snippets run by the installer are supposed to be very
short functions that inspect some properties of the system, packages,
or user's selections, and typically return true or false.
I hope that the C like syntax plus native string support makes doing
that as painless as possible for our developers.
-pmb
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Installer-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden