Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

refactor remove Date.firstDayOfWeek

Supported equivalent is now aria.core.AppEnvironment.firstDayOfWeek
  • Loading branch information...
commit 39ec3fe4eef2c2cd33750016d936d23682cb515e 1 parent 9259ebc
@jakub-g authored
Showing with 9 additions and 62 deletions.
  1. +0 −1  src/aria/resources/DateRes.js
  2. +1 −2  src/aria/resources/DateRes_cn_CN.js
  3. +0 −1  src/aria/resources/DateRes_da_DK.js
  4. +0 −1  src/aria/resources/DateRes_de_DE.js
  5. +0 −1  src/aria/resources/DateRes_en_GB.js
  6. +0 −1  src/aria/resources/DateRes_en_US.js
  7. +1 −2  src/aria/resources/DateRes_es_ES.js
  8. +0 −1  src/aria/resources/DateRes_fi_FI.js
  9. +0 −1  src/aria/resources/DateRes_fr_FR.js
  10. +1 −2  src/aria/resources/DateRes_is_IS.js
  11. +0 −1  src/aria/resources/DateRes_it_IT.js
  12. +1 −2  src/aria/resources/DateRes_ja_JP.js
  13. +0 −1  src/aria/resources/DateRes_ko_KO.js
  14. +0 −1  src/aria/resources/DateRes_nl_NL.js
  15. +0 −1  src/aria/resources/DateRes_no_NO.js
  16. +0 −1  src/aria/resources/DateRes_pl_PL.js
  17. +0 −1  src/aria/resources/DateRes_pt_BR.js
  18. +0 −1  src/aria/resources/DateRes_pt_PT.js
  19. +0 −1  src/aria/resources/DateRes_ru_RU.js
  20. +1 −2  src/aria/resources/DateRes_sp_AR.js
  21. +0 −1  src/aria/resources/DateRes_sv_SE.js
  22. +0 −1  src/aria/resources/DateRes_th_TH.js
  23. +0 −1  src/aria/resources/DateRes_tk_TK.js
  24. +1 −2  src/aria/resources/DateRes_tr_TR.js
  25. +0 −1  src/aria/resources/DateRes_tw_TW.js
  26. +1 −12 src/aria/utils/Date.js
  27. +2 −19 src/aria/utils/environment/Date.js
View
1  src/aria/resources/DateRes.js
@@ -20,7 +20,6 @@
Aria.resourcesDefinition({
$classpath : 'aria.resources.DateRes',
$resources : {
- firstDayOfWeek : 0 /* Sunday */,
day : [
"Sunday",
"Monday",
View
3  src/aria/resources/DateRes_cn_CN.js
@@ -20,7 +20,6 @@
Aria.resourcesDefinition({
$classpath : 'aria.resources.DateRes',
$resources : {
- firstDayOfWeek : 0 /* Sunday */,
day : [
"星期日",
"星期一",
@@ -45,4 +44,4 @@ Aria.resourcesDefinition({
"十二月"
]
}
-});
+});
View
1  src/aria/resources/DateRes_da_DK.js
@@ -20,7 +20,6 @@
Aria.resourcesDefinition({
$classpath : 'aria.resources.DateRes',
$resources : {
- firstDayOfWeek : 0 /* Sunday */,
day : [
"S\u00F8ndag",
"Mandag",
View
1  src/aria/resources/DateRes_de_DE.js
@@ -20,7 +20,6 @@
Aria.resourcesDefinition({
$classpath : 'aria.resources.DateRes',
$resources : {
- firstDayOfWeek : 0 /* Sunday */,
day : [
"Sonntag",
"Montag",
View
1  src/aria/resources/DateRes_en_GB.js
@@ -20,7 +20,6 @@
Aria.resourcesDefinition({
$classpath : 'aria.resources.DateRes',
$resources : {
- firstDayOfWeek : 0 /* Sunday */,
day : [
"Sunday",
"Monday",
View
1  src/aria/resources/DateRes_en_US.js
@@ -20,7 +20,6 @@
Aria.resourcesDefinition({
$classpath : 'aria.resources.DateRes',
$resources : {
- firstDayOfWeek : 0 /* Sunday */,
day : [
"Sunday",
"Monday",
View
3  src/aria/resources/DateRes_es_ES.js
@@ -20,7 +20,6 @@
Aria.resourcesDefinition({
$classpath : 'aria.resources.DateRes',
$resources : {
- firstDayOfWeek : 0 /* Sunday */,
day : [
"Domingo",
"Lunes",
@@ -66,4 +65,4 @@ uic.r.shortdate.thu=Ju
uic.r.shortdate.fri=Vi
uic.r.shortdate.sat=S\u00E2
uic.r.shortdate.sun=Do
-*/
+*/
View
1  src/aria/resources/DateRes_fi_FI.js
@@ -20,7 +20,6 @@
Aria.resourcesDefinition({
$classpath : 'aria.resources.DateRes',
$resources : {
- firstDayOfWeek : 0 /* Sunday */,
day : [
"Sunnuntai",
"Maanantai",
View
1  src/aria/resources/DateRes_fr_FR.js
@@ -20,7 +20,6 @@
Aria.resourcesDefinition({
$classpath : 'aria.resources.DateRes',
$resources : {
- firstDayOfWeek : 1 /* Monday */,
day : [
"Dimanche",
"Lundi",
View
3  src/aria/resources/DateRes_is_IS.js
@@ -20,7 +20,6 @@
Aria.resourcesDefinition({
$classpath : 'aria.resources.DateRes',
$resources : {
- firstDayOfWeek : 0 /* Sunday */,
day : [
"sunnudagur",
"m\u00E1nudagur",
@@ -45,4 +44,4 @@ Aria.resourcesDefinition({
"desember"
]
}
-});
+});
View
1  src/aria/resources/DateRes_it_IT.js
@@ -20,7 +20,6 @@
Aria.resourcesDefinition({
$classpath : 'aria.resources.DateRes',
$resources : {
- firstDayOfWeek : 0 /* Sunday */,
day : [
"Domenica",
"Luned\u00EC",
View
3  src/aria/resources/DateRes_ja_JP.js
@@ -20,7 +20,6 @@
Aria.resourcesDefinition({
$classpath : 'aria.resources.DateRes',
$resources : {
- firstDayOfWeek : 0 /* Sunday */,
day : [
"日曜日",
"月曜日",
@@ -45,4 +44,4 @@ Aria.resourcesDefinition({
"十二月"
]
}
-});
+});
View
1  src/aria/resources/DateRes_ko_KO.js
@@ -20,7 +20,6 @@
Aria.resourcesDefinition({
$classpath : 'aria.resources.DateRes',
$resources : {
- firstDayOfWeek : 0 /* Sunday */,
day : [
"일요일",
"월요일",
View
1  src/aria/resources/DateRes_nl_NL.js
@@ -20,7 +20,6 @@
Aria.resourcesDefinition({
$classpath : 'aria.resources.DateRes',
$resources : {
- firstDayOfWeek : 0 /* Sunday */,
day : [
"zondag",
"maandag",
View
1  src/aria/resources/DateRes_no_NO.js
@@ -20,7 +20,6 @@
Aria.resourcesDefinition({
$classpath : 'aria.resources.DateRes',
$resources : {
- firstDayOfWeek : 0 /* Sunday */,
day : [
"s\u00F8ndag",
"mandag",
View
1  src/aria/resources/DateRes_pl_PL.js
@@ -20,7 +20,6 @@
Aria.resourcesDefinition({
$classpath : 'aria.resources.DateRes',
$resources : {
- firstDayOfWeek : 0 /* Sunday */,
day : [
"Niedziela",
"Poniedzia\u0142ek",
View
1  src/aria/resources/DateRes_pt_BR.js
@@ -20,7 +20,6 @@
Aria.resourcesDefinition({
$classpath : 'aria.resources.DateRes',
$resources : {
- firstDayOfWeek : 0 /* Sunday */,
day : [
"Domingo",
"Segunda-feira",
View
1  src/aria/resources/DateRes_pt_PT.js
@@ -20,7 +20,6 @@
Aria.resourcesDefinition({
$classpath : 'aria.resources.DateRes',
$resources : {
- firstDayOfWeek : 0 /* Sunday */,
day : [
"Domingo",
"Segunda-feira",
View
1  src/aria/resources/DateRes_ru_RU.js
@@ -20,7 +20,6 @@
Aria.resourcesDefinition({
$classpath : 'aria.resources.DateRes',
$resources : {
- firstDayOfWeek : 0 /* Sunday */,
day : [
"Воскресенье",
"Понедельник",
View
3  src/aria/resources/DateRes_sp_AR.js
@@ -20,7 +20,6 @@
Aria.resourcesDefinition({
$classpath : 'aria.resources.DateRes',
$resources : {
- firstDayOfWeek : 0 /* Sunday */,
day : [
"الأحد",
"الاثنين",
@@ -65,4 +64,4 @@ uic.r.shortdate.wed=We
uic.r.shortdate.thu=Th
uic.r.shortdate.fri=Fr
uic.r.shortdate.sat=Sa
-uic.r.shortdate.sun=Su*/
+uic.r.shortdate.sun=Su*/
View
1  src/aria/resources/DateRes_sv_SE.js
@@ -20,7 +20,6 @@
Aria.resourcesDefinition({
$classpath : 'aria.resources.DateRes',
$resources : {
- firstDayOfWeek : 0 /* Sunday */,
day : [
"s\u00F6ndag",
"m\u00E5ndag",
View
1  src/aria/resources/DateRes_th_TH.js
@@ -20,7 +20,6 @@
Aria.resourcesDefinition({
$classpath : 'aria.resources.DateRes',
$resources : {
- firstDayOfWeek : 0 /* Sunday */,
day : [
"วันอาทิตย์",
"วันจันทร์",
View
1  src/aria/resources/DateRes_tk_TK.js
@@ -20,7 +20,6 @@
Aria.resourcesDefinition({
$classpath : 'aria.resources.DateRes',
$resources : {
- firstDayOfWeek : 0 /* Sunday */,
day : [
"Pazar",
"Pazartesi",
View
3  src/aria/resources/DateRes_tr_TR.js
@@ -20,7 +20,6 @@
Aria.resourcesDefinition({
$classpath : 'aria.resources.DateRes',
$resources : {
- firstDayOfWeek : 0 /* Sunday */,
day : [
"Pazar",
"Pazartesi",
@@ -45,4 +44,4 @@ Aria.resourcesDefinition({
"Aral\u00FDk"
]
}
-});
+});
View
1  src/aria/resources/DateRes_tw_TW.js
@@ -20,7 +20,6 @@
Aria.resourcesDefinition({
$classpath : 'aria.resources.DateRes',
$resources : {
- firstDayOfWeek : 0 /* Sunday */,
day : [
"星期日",
"星期一",
View
13 src/aria/utils/Date.js
@@ -42,17 +42,6 @@ Aria.classDefinition({
var res = this.dateRes, env = this._environment, utilString = aria.utils.String, utilRes = this.res;
- // Backward compatibility code to be removed, PTR#05579605 - start.
- /**
- * Deprecated. Please use aria.core.AppEnvironment.setEnvironment or
- * aria.utils.environment.Date.getFirstDayOfWeek to set or retrieve this value. <br />
- * First day of the week in the current regional settings (0 = Sunday, ... , 6 = Saturday)
- * @type Number
- */
- // Take the value which may have already been set in the environment
- this.firstDayOfWeek = this._environment.getFirstDayOfWeek();
- // Backward compatibility code to be removed, PTR#05579605 - end.
-
/**
* IATA Months for interpretation
* @protected
@@ -1775,4 +1764,4 @@ Aria.classDefinition({
return (difference === 0) ? 0 : difference / Math.abs(difference);
}
}
-});
+});
View
21 src/aria/utils/environment/Date.js
@@ -52,24 +52,7 @@ Aria.classDefinition({
* @return {Integer}
*/
getFirstDayOfWeek : function () {
- var firstDayOfWeek = this.checkApplicationSettings("firstDayOfWeek");
- // Backward compatibility code to be removed, PTR#05579605 - start.
- if (aria.utils.Date) {
- firstDayOfWeek = aria.utils.Date.firstDayOfWeek;
- }
- // Backward compatibility code to be removed, PTR#05579605 - end.
- return firstDayOfWeek;
- },
- /**
- * Backward compatibility code to be removed, PTR#05579605 - start. Apply the current environment.
- * @param {aria.core.JsObject.Callback} callback Will be called after the environment is applied.
- * @override
- */
- _applyEnvironment : function (callback) {
- if (aria.utils.Date) {
- aria.utils.Date.firstDayOfWeek = this.checkApplicationSettings("firstDayOfWeek");
- }
- this.$callback(callback);
+ return this.checkApplicationSettings("firstDayOfWeek");
}
}
-});
+});
Please sign in to comment.
Something went wrong with that request. Please try again.