PHP Code:
TestC.mainHandle.trigger( "EchoR", "pre " @ VarHandle.ty @ " : " @ testArr );
Hmm, shouldn't '
testArr' be '
TestC.testArr'?
NVM: If you change it to TestC.testArr you get output, but I see that it doesn't recieve the params, right?
Edit2: Ok, that's the wierdest thing I've seen for a long time:
PHP Code:
function onCreated() {
TestC = null;
TestC = new TStaticVar();
TestC.mainHandle = this;
TestC.testArr = { { 1, 2 }, { 2, 4 }, { 3, 5 } };
TestC.testingFunc1 = function() {
temp.arr = TestC.testArr;
TestC.mainHandle.trigger( "EchoR", "arr: "@ arr @ " - type: " @ arr.type());
TestP.testingFunc2(arr);
};
TestP.testingFunc2 = function(arr2) {
TestC.mainHandle.trigger("EchoR", "arr2: "@ arr2 @ " - type2: " @ arr2.type());
TestC.mainHandle.trigger("EchoR", "arrive:" @ arr2);
//TestC.mainHandle.trigger("EchoR", "pre: " @ arr2);
TestC.mainHandle.trigger("EchoR", {arr2});
};
TestC.testingFunc1();
}
function onEchoR(str) {
echo(str);
}
That works, but, if you remove the '//' in the scirpt, it won't!