Well, the closest thing I can think of without technical passing the value as an argument would be to set the value of the thisfunction doSomething.
doSomething - , , doSomething(); this Global, ...
:
var ob = {
callme: function () {
doSomething.call(this);
}
};
function doSomething () {
alert(this === ob);
}
ob.callme();