Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Global variables inside JS




someone was asking a while ago about global variable inside javascript in quartz composer,


I noticed someone had posted on the quartzcompositions forums that this is possible,

just use the "this" object e.g

this.foo = 2;

creates a "foo" property with the value 2 on the runtime object, which is kept among executions of the patch

thought this might be of use to people on here...

roger
quartonian.net


_______________________________________________ Do not post admin requests to the list. They will be ignored. Quartzcomposer-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/quartzcomposer-dev/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.