Fixed in attached patch. Thanks!
--i
I've written this to monitor the creation of globals during development. Just run it once as soon as possible and it will keep logging new, fresh globals to the console in almost real time... :-)
(function () {
var global= this;
var saved= Object.getOwnPropertyNames(global);
(function globalsMonitor (current, symbols) {
current= Object.getOwnPropertyNames(global);
if (current.length !== saved.length) {
symbols= [];
current.forEach(function (v,i,o) {
if (saved.indexOf(v) < 0) {
symbols.push( v+ " ["+ typeof global[v]+ "] : "+ global[v]+ "\r\n");
}
});
console.log(symbols.length+ " new globals :\r\n"+ symbols);
saved= current;
}
setTimeout(globalsMonitor, 1e3);
})();
})();
//Create some globals to test it
var global= function(){return this}();
global.x= "x";
global.y= "y";
global.z= "z";
global.n= 27;
--
Jorge.