Oop Js: Function Incrementing Date Repeatedly, And I Don't Know Why?
Following on from my previous thread, I went on to design the following Objects. /* --- LEAP Namespace --- */ var LEAP = {}; /* --- LEAP.Schedule Object --- */ LEAP.Schedu
Solution 1:
Probably doesn't matter here but is bad form anyway:
for (i = 1; i < 51; i++) {
The variable i should be declared.
In the statement (my wrapping):
$("select#filter").change( function() {
WeeklyUpdate.filterPointTotalsByStaff( weeks, $(this).val() )
});
You do not show how weeks is initialised or assigned a value. There is a weeks property of LEAP.Schedule instances, but above it is used in the context of a global variable.
Post a Comment for "Oop Js: Function Incrementing Date Repeatedly, And I Don't Know Why?"