CMTV
Well-known member
Hi!
Let's say I have two element handlers:
So how can I get 'hey!' from
Let's say I have two element handlers:
A
and B
:
JavaScript:
XF.A = XF.Element.newHandler({
init: function() {},
test: function()
{
return 'hey!';
}
});
XF.B = XF.Element.newHandler({
init: function()
{
// How to call "test()" function from A handler?
var result = /* XF.A.test() */
}
});
XF.Element.register('A', 'XF.A');
XF.Element.register('B', 'XF.B');
So how can I get 'hey!' from
test()
function inside B
handler?