The script below doesn't work (onclose is undefined) for both Firefox and
JXcore(SM):
var q = 1;
if (q) {
var client1 = {on:function(){}};
client1.on('close', onclose);
function onclose() {
console.log('dummy');
}
}
Interestingly it works without 'if scope':
var client1 = {on:function(){}};
client1.on('close', onclose);
function onclose() {
console.log('dummy');
}
Is this a bug ?
_______________________________________________
dev-tech-js-engine-internals mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-js-engine-internals