Skip to content

Commit

Permalink
Merge remote branch 'upstream/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
lsmith committed Sep 21, 2011
2 parents 9147dc1 + 8602286 commit 65ffb29
Show file tree
Hide file tree
Showing 9 changed files with 290 additions and 13 deletions.
21 changes: 18 additions & 3 deletions build/calendar-base/calendar-base-debug.js
Expand Up @@ -88,7 +88,7 @@ Y.CalendarBase = Y.extend( CalendarBase, Y.Widget, {
* @type String
* @private
*/
_calendarId : Y.guid(CALENDAR),
_calendarId : null,

/**
* The hash map of selected dates, populated with
Expand Down Expand Up @@ -134,10 +134,17 @@ Y.CalendarBase = Y.extend( CalendarBase, Y.Widget, {

/**
* Designated initializer
* Initializes instance-level properties of
* calendar.
*
* @method initializer
*/
initializer : function () {
this._paneProperties = {};
this._calendarId = Y.guid('calendar');
this._selectedDates = {};
this._rules = {};
this.storedDateCells = {};
},

/**
Expand Down Expand Up @@ -589,6 +596,13 @@ Y.CalendarBase = Y.extend( CalendarBase, Y.Widget, {
* @private
*/
_fireSelectionChange : function () {

/**
* Fired when the set of selected dates changes. Contains a payload with
* a `newSelection` property with an array of selected dates.
*
* @event selectionChange
*/
this.fire("selectionChange", {newSelection: this._getSelectedDatesList()});
},

Expand Down Expand Up @@ -1493,7 +1507,8 @@ Y.CalendarBase = Y.extend( CalendarBase, Y.Widget, {
*
* @attribute date
* @type Date
* @default Today's date as set on the user's computer.
* @default The first of the month containing today's date, as
* set on the end user's system.
*/
date: {
value: new Date(),
Expand Down Expand Up @@ -1615,4 +1630,4 @@ Y.CalendarBase = Y.extend( CalendarBase, Y.Widget, {
});


}, '@VERSION@' ,{lang:['en', 'ja', 'ru'], requires:['widget', 'substitute', 'datatype-date', 'datatype-date-math', 'cssgrids']});
}, '@VERSION@' ,{requires:['widget', 'substitute', 'datatype-date', 'datatype-date-math', 'cssgrids'], lang:['en', 'ja', 'ru']});
6 changes: 3 additions & 3 deletions build/calendar-base/calendar-base-min.js

Large diffs are not rendered by default.

21 changes: 18 additions & 3 deletions build/calendar-base/calendar-base.js
Expand Up @@ -88,7 +88,7 @@ Y.CalendarBase = Y.extend( CalendarBase, Y.Widget, {
* @type String
* @private
*/
_calendarId : Y.guid(CALENDAR),
_calendarId : null,

/**
* The hash map of selected dates, populated with
Expand Down Expand Up @@ -134,10 +134,17 @@ Y.CalendarBase = Y.extend( CalendarBase, Y.Widget, {

/**
* Designated initializer
* Initializes instance-level properties of
* calendar.
*
* @method initializer
*/
initializer : function () {
this._paneProperties = {};
this._calendarId = Y.guid('calendar');
this._selectedDates = {};
this._rules = {};
this.storedDateCells = {};
},

/**
Expand Down Expand Up @@ -589,6 +596,13 @@ Y.CalendarBase = Y.extend( CalendarBase, Y.Widget, {
* @private
*/
_fireSelectionChange : function () {

/**
* Fired when the set of selected dates changes. Contains a payload with
* a `newSelection` property with an array of selected dates.
*
* @event selectionChange
*/
this.fire("selectionChange", {newSelection: this._getSelectedDatesList()});
},

Expand Down Expand Up @@ -1493,7 +1507,8 @@ Y.CalendarBase = Y.extend( CalendarBase, Y.Widget, {
*
* @attribute date
* @type Date
* @default Today's date as set on the user's computer.
* @default The first of the month containing today's date, as
* set on the end user's system.
*/
date: {
value: new Date(),
Expand Down Expand Up @@ -1615,4 +1630,4 @@ Y.CalendarBase = Y.extend( CalendarBase, Y.Widget, {
});


}, '@VERSION@' ,{lang:['en', 'ja', 'ru'], requires:['widget', 'substitute', 'datatype-date', 'datatype-date-math', 'cssgrids']});
}, '@VERSION@' ,{requires:['widget', 'substitute', 'datatype-date', 'datatype-date-math', 'cssgrids'], lang:['en', 'ja', 'ru']});
2 changes: 1 addition & 1 deletion build/calendar/calendar-debug.js
Expand Up @@ -335,4 +335,4 @@ Y.Calendar = Y.extend(Calendar, Y.CalendarBase, {
});


}, '@VERSION@' ,{lang:['en', 'ja', 'ru'], requires:['calendar-base', 'calendarnavigator']});
}, '@VERSION@' ,{requires:['calendar-base', 'calendarnavigator'], lang:['en', 'ja', 'ru']});
2 changes: 1 addition & 1 deletion build/calendar/calendar-min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion build/calendar/calendar.js
Expand Up @@ -335,4 +335,4 @@ Y.Calendar = Y.extend(Calendar, Y.CalendarBase, {
});


}, '@VERSION@' ,{lang:['en', 'ja', 'ru'], requires:['calendar-base', 'calendarnavigator']});
}, '@VERSION@' ,{requires:['calendar-base', 'calendarnavigator'], lang:['en', 'ja', 'ru']});
10 changes: 9 additions & 1 deletion src/calendar/js/calendar-base.js
Expand Up @@ -594,6 +594,13 @@ Y.CalendarBase = Y.extend( CalendarBase, Y.Widget, {
* @private
*/
_fireSelectionChange : function () {

/**
* Fired when the set of selected dates changes. Contains a payload with
* a `newSelection` property with an array of selected dates.
*
* @event selectionChange
*/
this.fire("selectionChange", {newSelection: this._getSelectedDatesList()});
},

Expand Down Expand Up @@ -1498,7 +1505,8 @@ Y.CalendarBase = Y.extend( CalendarBase, Y.Widget, {
*
* @attribute date
* @type Date
* @default Today's date as set on the user's computer.
* @default The first of the month containing today's date, as
* set on the end user's system.
*/
date: {
value: new Date(),
Expand Down

0 comments on commit 65ffb29

Please sign in to comment.