Probá así:
Código PHP:
<script type="text/javascript">
function testObject()
{
this.saySomething=function()
{
alert('testObject');
}
this.initialize=function(){
var object2=new testObject2(this);
object2.testFunction();
}
return this.initialize();
}
function testObject2(handlerReference)
{
var handler=handlerReference;
this.testFunction=function()
{
handler.saySomething();
}
}
function init()
{
var object=new testObject();
}
init()
</script>