~ci-train-bot/ubuntu-settings-components/ubuntu-settings-components-ubuntu-zesty-2106

« back to all changes in this revision

Viewing changes to plugins/Ubuntu/Settings/Components/Calendar.js

  • Committer: Marco Trevisan (Treviño)
  • Date: 2016-10-27 11:23:24 UTC
  • mto: This revision was merged to the branch mainline in revision 171.
  • Revision ID: mail@3v1n0.net-20161027112324-9r7n75hxccy17bd6
OtherComponents: move RadioMenu components to a different location not to clash with calendar

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
    return new Month(date.getFullYear(), date.getMonth());
26
26
}
27
27
 
28
 
Month.prototype.firstDay = function() {
29
 
    return new Day(this.year, this.month, 1)
30
 
}
31
 
 
32
28
Month.prototype.toString = function() {
33
29
    return JSON.stringify(this);
34
30
}
103
99
    }
104
100
    return false;
105
101
}
106
 
 
107
 
Day.prototype.toDate = function() {
108
 
    return new Date(this.year, this.month, this.day)
109
 
}