Permalink
Browse files

refactor remove Date.firstDayOfWeek

Supported equivalent is now aria.core.AppEnvironment.firstDayOfWeek
  • Loading branch information...
1 parent b88bc51 commit d9f1e6785e8d567a0470e6f5b1f0ce6a1000ee00 @jakub-g jakub-g committed with divdavem Feb 26, 2013
@@ -20,7 +20,6 @@
Aria.resourcesDefinition({
$classpath : 'aria.resources.DateRes',
$resources : {
- firstDayOfWeek : 0 /* Sunday */,
day : [
"Sunday",
"Monday",
@@ -20,7 +20,6 @@
Aria.resourcesDefinition({
$classpath : 'aria.resources.DateRes',
$resources : {
- firstDayOfWeek : 0 /* Sunday */,
day : [
"星期日",
"星期一",
@@ -45,4 +44,4 @@ Aria.resourcesDefinition({
"十二月"
]
}
-});
+});
@@ -20,7 +20,6 @@
Aria.resourcesDefinition({
$classpath : 'aria.resources.DateRes',
$resources : {
- firstDayOfWeek : 0 /* Sunday */,
day : [
"S\u00F8ndag",
"Mandag",
@@ -20,7 +20,6 @@
Aria.resourcesDefinition({
$classpath : 'aria.resources.DateRes',
$resources : {
- firstDayOfWeek : 0 /* Sunday */,
day : [
"Sonntag",
"Montag",
@@ -20,7 +20,6 @@
Aria.resourcesDefinition({
$classpath : 'aria.resources.DateRes',
$resources : {
- firstDayOfWeek : 0 /* Sunday */,
day : [
"Sunday",
"Monday",
@@ -20,7 +20,6 @@
Aria.resourcesDefinition({
$classpath : 'aria.resources.DateRes',
$resources : {
- firstDayOfWeek : 0 /* Sunday */,
day : [
"Sunday",
"Monday",
@@ -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
-*/
+*/
@@ -20,7 +20,6 @@
Aria.resourcesDefinition({
$classpath : 'aria.resources.DateRes',
$resources : {
- firstDayOfWeek : 0 /* Sunday */,
day : [
"Sunnuntai",
"Maanantai",
@@ -20,7 +20,6 @@
Aria.resourcesDefinition({
$classpath : 'aria.resources.DateRes',
$resources : {
- firstDayOfWeek : 1 /* Monday */,
day : [
"Dimanche",
"Lundi",
@@ -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"
]
}
-});
+});
@@ -20,7 +20,6 @@
Aria.resourcesDefinition({
$classpath : 'aria.resources.DateRes',
$resources : {
- firstDayOfWeek : 0 /* Sunday */,
day : [
"Domenica",
"Luned\u00EC",
@@ -20,7 +20,6 @@
Aria.resourcesDefinition({
$classpath : 'aria.resources.DateRes',
$resources : {
- firstDayOfWeek : 0 /* Sunday */,
day : [
"日曜日",
"月曜日",
@@ -45,4 +44,4 @@ Aria.resourcesDefinition({
"十二月"
]
}
-});
+});
@@ -20,7 +20,6 @@
Aria.resourcesDefinition({
$classpath : 'aria.resources.DateRes',
$resources : {
- firstDayOfWeek : 0 /* Sunday */,
day : [
"일요일",
"월요일",
@@ -20,7 +20,6 @@
Aria.resourcesDefinition({
$classpath : 'aria.resources.DateRes',
$resources : {
- firstDayOfWeek : 0 /* Sunday */,
day : [
"zondag",
"maandag",
@@ -20,7 +20,6 @@
Aria.resourcesDefinition({
$classpath : 'aria.resources.DateRes',
$resources : {
- firstDayOfWeek : 0 /* Sunday */,
day : [
"s\u00F8ndag",
"mandag",
@@ -20,7 +20,6 @@
Aria.resourcesDefinition({
$classpath : 'aria.resources.DateRes',
$resources : {
- firstDayOfWeek : 0 /* Sunday */,
day : [
"Niedziela",
"Poniedzia\u0142ek",
@@ -20,7 +20,6 @@
Aria.resourcesDefinition({
$classpath : 'aria.resources.DateRes',
$resources : {
- firstDayOfWeek : 0 /* Sunday */,
day : [
"Domingo",
"Segunda-feira",
@@ -20,7 +20,6 @@
Aria.resourcesDefinition({
$classpath : 'aria.resources.DateRes',
$resources : {
- firstDayOfWeek : 0 /* Sunday */,
day : [
"Domingo",
"Segunda-feira",
@@ -20,7 +20,6 @@
Aria.resourcesDefinition({
$classpath : 'aria.resources.DateRes',
$resources : {
- firstDayOfWeek : 0 /* Sunday */,
day : [
"Воскресенье",
"Понедельник",
@@ -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*/
@@ -20,7 +20,6 @@
Aria.resourcesDefinition({
$classpath : 'aria.resources.DateRes',
$resources : {
- firstDayOfWeek : 0 /* Sunday */,
day : [
"s\u00F6ndag",
"m\u00E5ndag",
@@ -20,7 +20,6 @@
Aria.resourcesDefinition({
$classpath : 'aria.resources.DateRes',
$resources : {
- firstDayOfWeek : 0 /* Sunday */,
day : [
"วันอาทิตย์",
"วันจันทร์",
@@ -20,7 +20,6 @@
Aria.resourcesDefinition({
$classpath : 'aria.resources.DateRes',
$resources : {
- firstDayOfWeek : 0 /* Sunday */,
day : [
"Pazar",
"Pazartesi",
@@ -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"
]
}
-});
+});
@@ -20,7 +20,6 @@
Aria.resourcesDefinition({
$classpath : 'aria.resources.DateRes',
$resources : {
- firstDayOfWeek : 0 /* Sunday */,
day : [
"星期日",
"星期一",
View
@@ -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);
}
}
-});
+});
@@ -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");
}
}
-});
+});

0 comments on commit d9f1e67

Please sign in to comment.