Javascript: choices / A typo in the documentation
site_archiver@lists.apple.com Delivered-To: installer-dev@lists.apple.com Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:mime-version :content-transfer-encoding:message-id:content-type:to:from:subject :date:x-mailer; bh=UBdn53Ccnx8ZFSMNZVdaU/clAJoqKIGT0pmgLaVo8VA=; b=Q/697Oz47r+Cpotr7zHCuBHw1Grc8/cMtWatqdcktm0hq1P/fZKRAPJcoqL0gbwomS s6GqN0EDT2J5jGmQck34fySQDHihdQ7uhfqmhTMEWLWRNRko9vPaEa0FZiLguOKs8ksQ 5AdhI+RhtxVAon8Un9f0GIdpj7RsUpAe38HYY= Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:content-transfer-encoding:message-id:content-type:to :from:subject:date:x-mailer; b=b2FYFzO4sbXTccDgXZMVies2bGOAH/qeAmEwg3uFmyUkVW3GglNGkUjlmFBmOqzRsy IIhRxGe2sbQ01zo66HdRhDL7vmGt3jiadyfUEnzgrzhXHpAa45e1gsaLx3UdQthLCf1u fyqM0Ik3bG7M9/CwVOwW6ZPzThbZtJJ4Y6lNs= choices.['choice0'] This is incorrect, you need to use: choices['choice0'] The following code also works: choices.choice0 This is what Installer.app on Mac OS X 10.4.11 says: /* OK*/ choices.choice0.tooltip="Le petit pont de bois, le petit pont de bois" /* OK*/ /* Not OK */ (Bug ID# 6287095) _______________________________________________ Do not post admin requests to the list. They will be ignored. Installer-dev mailing list (Installer-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/installer-dev/site_archiver%40lists.a... According to page 11 of the "Installer Javascript Reference" documentation, to access a choice named choice0, you need to use: choices['choice0'].tooltip="Le petit pont de bois, le petit pont de bois" choices.['choice0'].tooltip="Le petit pont de bois, le petit pont de bois"; <---------------- *** JavaScript Error *** This email sent to site_archiver@lists.apple.com
participants (1)
-
Iceberg-Dev