~renatofilho/ubuntu-calendar-app/optimize

« back to all changes in this revision

Viewing changes to dateExt.js

  • Committer: Renato Araujo Oliveira Filho
  • Date: 2016-02-25 18:56:52 UTC
  • Revision ID: renato.filho@canonical.com-20160225185652-jpxz0athht8svtom
Keep dates in sync btw panels.

Show diffs side-by-side

added added

removed removed

Lines of Context:
59
59
}
60
60
 
61
61
Date.prototype.addDays = function(days) {
 
62
    if (days === 0)
 
63
        return this
 
64
 
62
65
    var date = new Date(this)
63
66
    date.setDate(date.getDate() + days);
64
67
    return date