add:  var nthfn = function (n) { return function (dayOfWeek) { if (dayOfWeek || dayOfWeek === 0) { return this.moveToNthOccurrence(dayOfWeek, n); } this._nth = n; return this; }; };  for (var l = 0 ; l < nth.length ; l++) { $D[nth[l]] = (nth[l] == "final") ? nthfn(-1) : nthfn(l); } 
context: (function () {    var $D = Date.prototype, $N = Number.prototype;    /* Do NOT modify the following string tokens. These tokens are used to build dynamic functions. */    var dx = ("sunday monday tuesday wednesday thursday friday saturday").split(/\s/),        mx = ("january february march april may june july august september october november december").split(/\s/),        px = ("Millisecond Second Minute Hour Day Week Month Year").split(/\s/),        de;        // Create day name functions and abbreviated day name functions (eg. monday(), friday(), fri()).    var df = function (n) {        return function () {             if (this._is) {                 this._is = false;                 return this.getDay() == n;             }            return this.moveToDayOfWeek(n, this._orient);        };    };        for (var i = 0 ; i < dx.length ; i++) {         $D[dx[i]] = $D[dx[i].substring(0, 3)] = df(i);    }        // Create month name functions and abbreviated month name functions (eg. january(), march(), mar()).    var mf = function (n) {         return function () {            if (this._is) {                 this._is = false;                 return this.getMonth() === n;             }            return this.moveToMonth(n, this._orient);         };    };        for (var j = 0 ; j < mx.length ; j++) {         $D[mx[j]] = $D[mx[j].substring(0, 3)] = mf(j);    }        // Create date element functions and plural date element functions used with Date (eg. day(), days(), months()).    var ef = function (j) {         return function () {            if (j.substring(j.length - 1) != "s") {                 j += "s";             }            return this["add" + j](this._orient);         };    };        // Create date element functions and plural date element functions used with Number (eg. day(), days(), months()).    var nf = function (n) {        return function () {            this._dateElement = n;            return this;        };    };        for (var k = 0 ; k < px.length ; k++) {        de = px[k].toLowerCase();        $D[de] = $D[de + "s"] = ef(px[k]);        $N[de] = $N[de + "s"] = nf(de);    }}());
meta: 1273	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/1273/2b66060f5bd1f4d3eb7912d3f45f94971b039dda/sugarpak-debug.js/buggy/src/sugarpak-debug.js