1. Matthew Schinckel
  2. django-jquery

Commits

Matthew Schinckel  committed d0ef2da

Give all of my nice functions names, so we can see them better in the traceback.

  • Participants
  • Parent commits a65edd3
  • Branches default

Comments (0)

Files changed (1)

File jquery/static/jquery/js/isoDate.js

View file
  • Ignore whitespace
 }(Date));
 
 
-Date.prototype.addDays = function(days) {
+Date.prototype.addDays = function addDays(days) {
   this.setDate(this.getDate() + days);
   return this;
 };
 
-Date.prototype.getWeek = function(start) {
+Date.prototype.getWeek = function getWeek(start) {
   var target = new Date(this.valueOf());
   var dayNo = (this.getDay() + 6) % 7;
   target.setDate(target.getDate() - dayNo + 3);
   return 1 + Math.ceil((firstThursday - target) / 604800000);
 };
 
-Date.prototype.strftime = function(format) {
+Date.prototype.strftime = function strftime(format) {
   var $P = Date.prototype;
   function NotImplemented() {
     throw "Not Implemented";
 Date.ISO_TIME = "%H:%M:%S";
 Date.ISO_FULL = Date.ISO_DATE + ' ' + Date.ISO_TIME;
 
-Date.dateRange = function(start, finish) {
+Date.dateRange = function dateRange(start, finish) {
   var result = [];
   var current = new Date(Date.parse(start)), last = new Date(Date.parse(finish));
   if (finish < start) {