I have 2 Javascript objects, Limits and Wind, and are trying to call the function on the one object that is a parameter of the other object. The alert is never called and there's no errors in the console. Am I doing this right?
var Limits = {
minx: 0,
miny: 0,
SetMaxLimits: function (x1, x2, y1, y2, zoom) {
alert('j');
}
};
var Wind = {
Data : Limits,
Screen : Limits,
Rotation: 0,
CanvasW : 0,
CanvasH : 0,
North : true,
_Math : true,
NormalLimits: function (x,y) {
Data.SetMaxlimits(0, 0, 0, 0, 0);
}
};
Wind.NormalLimits(0,0);