|
|
Q1271 How can I pass an object to a function invoked by a setTimeout, without losing the contents of the array when it goes out of scope?
irt.org | Knowledge Base | JavaScript | Object | Q1271 [ previous next ] Q1271 How can I pass an object to a function invoked by a setTimeout, without losing the contents of the array when it goes out of scope?Use an enabler function (in this case functionB) to return a string made up of the actual values of the array, to be used as the string to be evaluated once the timer expires:
|
-- div -->
|