6 ms·
It works on an explicit set, but not on initialization of the object. So: var x = [{"user":"dude"}]; This won't trigger, and this is what the script include ta
by primaryobjects 13y ago
It works on an explicit set, but not on initialization of the object. So:
var x = [{"user":"dude"}];
This won't trigger, and this is what the script include tag executes via the response.
x.user = "wow";
This will trigger, however.
- gsnedders 13y agoAnd that's by design. That's how setters work. There's no security risk from this, given cross-domain JSON loads.