Topic awaiting preservation: super mega quick question - zooooom! did you see it? (Page 1 of 1) |
|
---|---|
Paranoid (IV) Inmate From: Northumberland, England |
posted 05-15-2003 19:07
ok this may be really dumb question but how do you get the contents of a Function bracket into an array? |
Maniac (V) Mad Scientist From: 100101010011 <-- right about here |
posted 05-15-2003 20:24
because you need an input variable in your array for each thing you are passing it. In the example you have posted you are only getting 'main.js' |
Lunatic (VI) Mad Scientist From: Massachusetts, USA |
posted 05-16-2003 07:36
However, if you really like your method better, you can use the "arguments" array within the function to get at the arguments: |
Maniac (V) Mad Scientist From: 100101010011 <-- right about here |
posted 05-16-2003 17:45
cool I couldn't remember if JS had that ability or not |
Paranoid (IV) Inmate From: Northumberland, England |
posted 05-16-2003 21:44
bitdamaged, your technique was good, but slime's is better. Thanks |