Is the following possible:
var someObject = {someProperty : "someValue"};
var someFunction = function() {
someProperty = "anotherValue";
};
// what do I do here, in order to use
// someFunction to change someObject,
// without altering either of those things?
// directly accessing "someObject" in someFunction
// is not an option. e.g., none of this:
/*
var someFunction = function() {
someObject.someProperty = "anotherValue";
};
*/
if(someObject.someProperty=="anotherValue") alert("Hooray!");
?
If not in regular JavaScript, is this possible in Mozilla's JavaScript for Firefox extensions?
Thanks.