how to eval with a modified namespace
|
| View previous topic :: View next topic |
| Author |
Message |
Koplaf
Joined: 28 May 2006 Posts: 130
|
I was wondering if there's a way to eval (or some equivalent) with a modified namespace, similar to python exec
I have something like onclick="function(this, 2)" and the 2 is a constant
I want to eval that, but this is no longer the right object. i want to modify the namespace so this is the right object when i eval that string
Is that possible? |
| |
|
|
|
|
|
|