Access Local Variable From Outside The Function
I'm using TopUp to make a simple slideshow. Unfortunately they don't expose the image index. Is there a way I can access the local variable 'index' without having to modify the ori
Solution 1:
Without modifying the original script, you can't.
But if you just want to be able to read the value of index
, the modification could be really simple, by adding a little function in the objet returned :
getIndex : function() {
return index;
},
Post a Comment for "Access Local Variable From Outside The Function"