Oops that last message got messed up:
---------------------------------------------

A quick fix to two methods that should have used "weeks" not "days" in
their change methods.

// Sets date representing the start of the given day in next week
(default is Monday). 
Date.prototype.nextWeek = function(sunday) {
        this.change("weeks", 1);
        if (!sunday) {
                this.monday();
        } else {
                this.sunday()
        }
};
// Sets date representing the start of the given day in last week
(default is Monday). 
Date.prototype.lastWeek = function(sunday) {
        this.change("weeks", -1);
        if (!sunday) {
                this.monday();
        } else {
                this.sunday()
        }
};
_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to