Permalink
Browse files

Build for documentation updates for calendar and uploader and minor b…

…ug fixes.
  • Loading branch information...
1 parent ec749fd commit 71bbbe94567d63ab107a7eab263595bcc6e47833 @allenrabinovich allenrabinovich committed Mar 17, 2012
Showing with 3,891 additions and 1,584 deletions.
  1. +6 −6 build/calendar-base/calendar-base-debug.js
  2. +2 −2 build/calendar-base/calendar-base-min.js
  3. +6 −6 build/calendar-base/calendar-base.js
  4. +17 −16 build/calendar/calendar-debug.js
  5. +1 −1 build/calendar/calendar-min.js
  6. +17 −16 build/calendar/calendar.js
  7. +18 −14 build/calendarnavigator/calendarnavigator-debug.js
  8. +1 −1 build/calendarnavigator/calendarnavigator-min.js
  9. +18 −14 build/calendarnavigator/calendarnavigator.js
  10. +200 −27 build/file-flash/file-flash-debug.js
  11. +1 −1 build/file-flash/file-flash-min.js
  12. +200 −27 build/file-flash/file-flash.js
  13. +232 −39 build/file-html5/file-html5-debug.js
  14. +1 −1 build/file-html5/file-html5-min.js
  15. +232 −39 build/file-html5/file-html5.js
  16. +8 −1 build/file/file-debug.js
  17. +8 −1 build/file/file.js
  18. +32 −32 build/swf/swf-debug.js
  19. +1 −1 build/swf/swf-min.js
  20. +32 −32 build/swf/swf.js
  21. +54 −54 build/swfdetect/swfdetect-debug.js
  22. +53 −53 build/swfdetect/swfdetect.js
  23. +94 −44 build/uploader-deprecated/uploader-deprecated-debug.js
  24. +94 −44 build/uploader-deprecated/uploader-deprecated.js
  25. +695 −336 build/uploader-flash/uploader-flash-debug.js
  26. +2 −2 build/uploader-flash/uploader-flash-min.js
  27. +695 −336 build/uploader-flash/uploader-flash.js
  28. +462 −164 build/uploader-html5/uploader-html5-debug.js
  29. +2 −1 build/uploader-html5/uploader-html5-min.js
  30. +462 −164 build/uploader-html5/uploader-html5.js
  31. +97 −53 build/uploader-queue/uploader-queue-debug.js
  32. +1 −1 build/uploader-queue/uploader-queue-min.js
  33. +97 −53 build/uploader-queue/uploader-queue.js
  34. BIN build/uploader/assets/flashuploader.swf
  35. +25 −1 build/uploader/uploader-debug.js
  36. +25 −1 build/uploader/uploader.js
@@ -448,7 +448,7 @@ Y.CalendarBase = Y.extend( CalendarBase, Y.Widget, {
* argument if all dates should be deselected.
*/
deselectDates : function (dates) {
- if (dates == null) {
+ if (!dates) {
this._clearSelection();
}
else if (ydate.isValidDate(dates)) {
@@ -494,7 +494,7 @@ Y.CalendarBase = Y.extend( CalendarBase, Y.Widget, {
this._selectedDates = setVal(this._selectedDates, [year, month, day], oDate);
this._renderSelectedDate(oDate);
- if (index == null) {
+ if (!index) {
this._fireSelectionChange();
}
}
@@ -559,7 +559,7 @@ Y.CalendarBase = Y.extend( CalendarBase, Y.Widget, {
hasKey(this._selectedDates[year][month], day)) {
delete this._selectedDates[year][month][day];
this._renderUnselectedDate(oDate);
- if (index == null) {
+ if (!index) {
this._fireSelectionChange();
}
}
@@ -811,7 +811,7 @@ Y.CalendarBase = Y.extend( CalendarBase, Y.Widget, {
* set to noon.
*/
_normalizeDate : function (date) {
- if (date != null) {
+ if (date) {
return new Date(date.getFullYear(), date.getMonth(), 1, 12, 0, 0, 0);
}
else {
@@ -926,7 +926,7 @@ Y.CalendarBase = Y.extend( CalendarBase, Y.Widget, {
if (daysInMonth == 31 && (cutoffCol <= 1)) {
startingCell = 2;
}
- else if (daysInMonth== 30 && cutoffCol == 0) {
+ else if (daysInMonth == 30 && cutoffCol === 0) {
startingCell = 1;
}
@@ -957,7 +957,7 @@ Y.CalendarBase = Y.extend( CalendarBase, Y.Widget, {
if (daysInMonth == 31 && (cutoffCol <= 1)) {
startingCell = 2;
}
- else if (daysInMonth == 30 && cutoffCol == 0) {
+ else if (daysInMonth == 30 && cutoffCol === 0) {
startingCell = 1;
}

Large diffs are not rendered by default.

Oops, something went wrong.
@@ -448,7 +448,7 @@ Y.CalendarBase = Y.extend( CalendarBase, Y.Widget, {
* argument if all dates should be deselected.
*/
deselectDates : function (dates) {
- if (dates == null) {
+ if (!dates) {
this._clearSelection();
}
else if (ydate.isValidDate(dates)) {
@@ -494,7 +494,7 @@ Y.CalendarBase = Y.extend( CalendarBase, Y.Widget, {
this._selectedDates = setVal(this._selectedDates, [year, month, day], oDate);
this._renderSelectedDate(oDate);
- if (index == null) {
+ if (!index) {
this._fireSelectionChange();
}
}
@@ -559,7 +559,7 @@ Y.CalendarBase = Y.extend( CalendarBase, Y.Widget, {
hasKey(this._selectedDates[year][month], day)) {
delete this._selectedDates[year][month][day];
this._renderUnselectedDate(oDate);
- if (index == null) {
+ if (!index) {
this._fireSelectionChange();
}
}
@@ -811,7 +811,7 @@ Y.CalendarBase = Y.extend( CalendarBase, Y.Widget, {
* set to noon.
*/
_normalizeDate : function (date) {
- if (date != null) {
+ if (date) {
return new Date(date.getFullYear(), date.getMonth(), 1, 12, 0, 0, 0);
}
else {
@@ -926,7 +926,7 @@ Y.CalendarBase = Y.extend( CalendarBase, Y.Widget, {
if (daysInMonth == 31 && (cutoffCol <= 1)) {
startingCell = 2;
}
- else if (daysInMonth== 30 && cutoffCol == 0) {
+ else if (daysInMonth == 30 && cutoffCol === 0) {
startingCell = 1;
}
@@ -957,7 +957,7 @@ Y.CalendarBase = Y.extend( CalendarBase, Y.Widget, {
if (daysInMonth == 31 && (cutoffCol <= 1)) {
startingCell = 2;
}
- else if (daysInMonth == 30 && cutoffCol == 0) {
+ else if (daysInMonth == 30 && cutoffCol === 0) {
startingCell = 1;
}
@@ -117,12 +117,13 @@ Y.Calendar = Y.extend(Calendar, Y.CalendarBase, {
/**
* Unhighlights a specific date node currently highlighted with keyboard highlight class
- * @method _unhighlightDateNode
+ * @method _unhighlightCurrentDateNode
* @protected
*/
_unhighlightCurrentDateNode : function () {
- if (this._highlightedDateNode) {
- this._highlightedDateNode.removeClass(CAL_DAY_HILITED);
+ var allHilitedNodes = this.get("contentBox").all("." + CAL_DAY_HILITED);
+ if (allHilitedNodes) {
+ allHilitedNodes.removeClass(CAL_DAY_HILITED);
}
},
@@ -174,7 +175,7 @@ Y.Calendar = Y.extend(Calendar, Y.CalendarBase, {
*/
_keydownCalendar : function (ev) {
var gridNum = this._getGridNumber(ev.target),
- curDate = this._highlightedDateNode == null ? null : this._nodeToDate(this._highlightedDateNode),
+ curDate = !this._highlightedDateNode ? null : this._nodeToDate(this._highlightedDateNode),
keyCode = ev.keyCode,
dayNum = 0,
dir = '';
@@ -185,7 +186,7 @@ Y.Calendar = Y.extend(Calendar, Y.CalendarBase, {
dir = 's';
break;
case KEY_UP:
- dayNum = -7
+ dayNum = -7;
dir = 'n';
break;
case KEY_LEFT:
@@ -218,7 +219,7 @@ Y.Calendar = Y.extend(Calendar, Y.CalendarBase, {
if (keyCode == KEY_DOWN || keyCode == KEY_UP || keyCode == KEY_LEFT || keyCode == KEY_RIGHT) {
- if (curDate == null) {
+ if (!curDate) {
curDate = ydate.addMonths(this.get("date"), gridNum);
dayNum = 0;
}
@@ -307,7 +308,7 @@ Y.Calendar = Y.extend(Calendar, Y.CalendarBase, {
}
}
else if (((os == 'macintosh' && ev.metaKey) || (os != 'macintosh' && ev.ctrlKey)) && ev.shiftKey) {
- if (this._lastSelectedDate != null) {
+ if (this._lastSelectedDate) {
var selectedDate = this._nodeToDate(clickedCell);
this._addDateRangeToSelection(selectedDate, this._lastSelectedDate);
this._lastSelectedDate = selectedDate;
@@ -319,7 +320,7 @@ Y.Calendar = Y.extend(Calendar, Y.CalendarBase, {
}
else if (ev.shiftKey) {
- if (this._lastSelectedDate != null) {
+ if (this._lastSelectedDate) {
var selectedDate = this._nodeToDate(clickedCell);
this._clearSelection(true);
this._addDateRangeToSelection(selectedDate, this._lastSelectedDate);
@@ -461,16 +462,16 @@ Y.Calendar = Y.extend(Calendar, Y.CalendarBase, {
newTopDate = ydate.addMonths(newDate, this._paneNumber - 1);
var minDate = this.get("minimumDate");
var maxDate = this.get("maximumDate");
- if ((minDate == null || ydate.isGreaterOrEqual(newDate, minDate)) &&
- (maxDate == null || ydate.isGreaterOrEqual(maxDate, newTopDate))) {
+ if ((!minDate || ydate.isGreaterOrEqual(newDate, minDate)) &&
+ (!maxDate || ydate.isGreaterOrEqual(maxDate, newTopDate))) {
return newDate;
}
- else if (minDate != null && ydate.isGreater(minDate, newDate)) {
+ else if (minDate && ydate.isGreater(minDate, newDate)) {
return minDate;
}
- else if (maxDate != null && ydate.isGreater(newTopDate, maxDate)) {
+ else if (maxDate && ydate.isGreater(newTopDate, maxDate)) {
var actualMaxDate = ydate.addMonths(maxDate, -1*(this._paneNumber - 1));
return actualMaxDate;
}
@@ -489,10 +490,10 @@ Y.Calendar = Y.extend(Calendar, Y.CalendarBase, {
minimumDate: {
value: null,
setter: function (val) {
- if (val != null) {
+ if (val) {
var curDate = this.get('date'),
newMinDate = this._normalizeDate(val);
- if (curDate!= null && !ydate.isGreaterOrEqual(curDate, newMinDate)) {
+ if (curDate && !ydate.isGreaterOrEqual(curDate, newMinDate)) {
this.set('date', newMinDate);
}
return newMinDate;
@@ -515,10 +516,10 @@ Y.Calendar = Y.extend(Calendar, Y.CalendarBase, {
maximumDate: {
value: null,
setter: function (val) {
- if (val != null) {
+ if (val) {
var curDate = this.get('date'),
newMaxDate = this._normalizeDate(val);
- if (curDate!= null && !ydate.isGreaterOrEqual(val, ydate.addMonths(curDate, this._paneNumber - 1))) {
+ if (curDate && !ydate.isGreaterOrEqual(val, ydate.addMonths(curDate, this._paneNumber - 1))) {
this.set('date', ydate.addMonths(newMaxDate, -1*(this._paneNumber -1)));
}
return newMaxDate;
Oops, something went wrong.

0 comments on commit 71bbbe9

Please sign in to comment.