Pardon me? The logic already existed in YOUR code, you asked what it does and I explained it. I kept the code, all I did was use naming conventions that make sense, got rid of the pointless assignment of the frame lookup to a variable, and made the variables local instead of spreading generic variable names into the global namespace.
My original code didn't work because I spelled "function" incorrectly.
|