Hi
i have something like:
globals.js
var Observable = require("FuseJS/Observable");
var GUserid = Observable(1);
module.exports = {
GUserid: GUserid
};
a.js
var globals = require("globals");
var b = require("b");
function whatever() {
globals.GUserid.value = "4";
debug_log(globals.GUserid.value);
b.run;
}
b.js
var globals = require("globals");
function run() {
debug_log(globals.GUserid.value);
}
the first time i run it i get: 4 4 (everything is fine)
when i run it again i get: 4 1
and i keep getting 4-1 till i change the default value in globals… then i get it right (4-4) again… till i stop it and when i run it again it goes wrong…
when i run it on xcode it works fine so i guess it’s a bug from when previewing in Local.
I run it on OS X El capitan