@sapui5/sap.gantt 1.130.0 → 1.131.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/sap/gantt/.library +1 -1
- package/src/sap/gantt/AdhocLine.js +1 -1
- package/src/sap/gantt/GanttChart.js +1 -1
- package/src/sap/gantt/GanttChartBase.js +1 -1
- package/src/sap/gantt/GanttChartContainer.js +1 -1
- package/src/sap/gantt/GanttChartWithTable.js +1 -1
- package/src/sap/gantt/axistime/AxisTimeStrategyBase.js +30 -1
- package/src/sap/gantt/axistime/FullScreenStrategy.js +1 -1
- package/src/sap/gantt/axistime/ProportionZoomStrategy.js +13 -2
- package/src/sap/gantt/axistime/StepwiseZoomStrategy.js +1 -1
- package/src/sap/gantt/changeHandlers/simple/AdhocLine.js +1 -1
- package/src/sap/gantt/changeHandlers/simple/DeltaLine.js +1 -1
- package/src/sap/gantt/changeHandlers/simple/GanttChartContainer.js +1 -1
- package/src/sap/gantt/changeHandlers/simple/GanttChartWithTable.js +1 -1
- package/src/sap/gantt/config/BirdEyeGroup.js +1 -1
- package/src/sap/gantt/config/ChartScheme.js +1 -1
- package/src/sap/gantt/config/ColumnAttribute.js +1 -1
- package/src/sap/gantt/config/ContainerLayout.js +1 -1
- package/src/sap/gantt/config/ExpandChart.js +1 -1
- package/src/sap/gantt/config/ExpandChartGroup.js +1 -1
- package/src/sap/gantt/config/GanttChartLayout.js +1 -1
- package/src/sap/gantt/config/Hierarchy.js +1 -1
- package/src/sap/gantt/config/HierarchyColumn.js +1 -1
- package/src/sap/gantt/config/LayoutGroup.js +1 -1
- package/src/sap/gantt/config/Locale.js +78 -3
- package/src/sap/gantt/config/Mode.js +1 -1
- package/src/sap/gantt/config/ModeGroup.js +1 -1
- package/src/sap/gantt/config/ObjectType.js +1 -1
- package/src/sap/gantt/config/SettingGroup.js +1 -1
- package/src/sap/gantt/config/SettingItem.js +1 -1
- package/src/sap/gantt/config/Shape.js +1 -1
- package/src/sap/gantt/config/TimeAxis.js +1 -1
- package/src/sap/gantt/config/TimeHorizon.js +1 -1
- package/src/sap/gantt/config/TimeZoomGroup.js +1 -1
- package/src/sap/gantt/config/ToolbarGroup.js +1 -1
- package/src/sap/gantt/config/ToolbarScheme.js +1 -1
- package/src/sap/gantt/control/Cell.js +1 -1
- package/src/sap/gantt/def/DefBase.js +1 -1
- package/src/sap/gantt/def/SvgDefs.js +1 -1
- package/src/sap/gantt/def/cal/Calendar.js +1 -1
- package/src/sap/gantt/def/cal/CalendarDefs.js +1 -1
- package/src/sap/gantt/def/cal/TimeInterval.js +1 -1
- package/src/sap/gantt/def/filter/MorphologyFilter.js +1 -1
- package/src/sap/gantt/def/gradient/LinearGradient.js +1 -1
- package/src/sap/gantt/def/gradient/RadialGradient.js +1 -1
- package/src/sap/gantt/def/gradient/Stop.js +1 -1
- package/src/sap/gantt/def/pattern/BackSlashPattern.js +1 -1
- package/src/sap/gantt/def/pattern/PatternBase.js +1 -1
- package/src/sap/gantt/def/pattern/SlashPattern.js +1 -1
- package/src/sap/gantt/drawer/AdhocLine.js +1 -1
- package/src/sap/gantt/drawer/Drawer.js +1 -1
- package/src/sap/gantt/drawer/VerticalLine.js +1 -1
- package/src/sap/gantt/eventHandler/AutoScrollHandler.js +1 -1
- package/src/sap/gantt/eventHandler/BirdEyeHandler.js +1 -1
- package/src/sap/gantt/eventHandler/MouseWheelHandler.js +1 -1
- package/src/sap/gantt/eventHandler/ShapeHoverHandler.js +1 -1
- package/src/sap/gantt/eventHandler/ShapeResizeHandler.js +1 -1
- package/src/sap/gantt/eventHandler/TimePeriodZoomHandler.js +1 -1
- package/src/sap/gantt/eventHandler/TimePopoverHandler.js +1 -1
- package/src/sap/gantt/layouts/SidePanel.js +1 -1
- package/src/sap/gantt/legend/DimensionLegend.js +1 -1
- package/src/sap/gantt/legend/LegendBase.js +1 -1
- package/src/sap/gantt/legend/LegendContainer.js +1 -1
- package/src/sap/gantt/legend/ListLegend.js +1 -1
- package/src/sap/gantt/library.js +2 -2
- package/src/sap/gantt/misc/AxisTime.js +40 -24
- package/src/sap/gantt/misc/Memoizer.js +1 -1
- package/src/sap/gantt/misc/RelativeTimeFormatter.js +1 -1
- package/src/sap/gantt/misc/ShapeManager.js +1 -1
- package/src/sap/gantt/misc/Utility.js +51 -0
- package/src/sap/gantt/overlays/GanttRowOverlay.js +1 -1
- package/src/sap/gantt/overlays/Overlay.js +1 -1
- package/src/sap/gantt/shape/Circle.js +1 -1
- package/src/sap/gantt/shape/ClipPath.js +1 -1
- package/src/sap/gantt/shape/Definitions.js +1 -1
- package/src/sap/gantt/shape/Group.js +1 -1
- package/src/sap/gantt/shape/Image.js +1 -1
- package/src/sap/gantt/shape/Line.js +1 -1
- package/src/sap/gantt/shape/Path.js +1 -1
- package/src/sap/gantt/shape/Polygon.js +1 -1
- package/src/sap/gantt/shape/Polyline.js +1 -1
- package/src/sap/gantt/shape/Rectangle.js +1 -1
- package/src/sap/gantt/shape/ResizeShadowShape.js +1 -1
- package/src/sap/gantt/shape/SelectedShape.js +1 -1
- package/src/sap/gantt/shape/Shape.js +1 -1
- package/src/sap/gantt/shape/Text.js +1 -1
- package/src/sap/gantt/shape/cal/Calendar.js +1 -1
- package/src/sap/gantt/shape/ext/Chevron.js +1 -1
- package/src/sap/gantt/shape/ext/Cursor.js +1 -1
- package/src/sap/gantt/shape/ext/Diamond.js +1 -1
- package/src/sap/gantt/shape/ext/Iconfont.js +1 -1
- package/src/sap/gantt/shape/ext/Pentangle.js +1 -1
- package/src/sap/gantt/shape/ext/TextRepeat.js +1 -1
- package/src/sap/gantt/shape/ext/Triangle.js +1 -1
- package/src/sap/gantt/shape/ext/rls/Relationship.js +1 -1
- package/src/sap/gantt/shape/ext/rls/SelectedRelationship.js +1 -1
- package/src/sap/gantt/shape/ext/ubc/UbcBorderPath.js +1 -1
- package/src/sap/gantt/shape/ext/ubc/UbcOverCapacityZonePolygon.js +1 -1
- package/src/sap/gantt/shape/ext/ubc/UbcPolygon.js +1 -1
- package/src/sap/gantt/shape/ext/ubc/UbcShortageCapacityPolygon.js +1 -1
- package/src/sap/gantt/shape/ext/ubc/UbcTooltipRectangle.js +1 -1
- package/src/sap/gantt/shape/ext/ubc/UbcUnderCapacityZonePolygon.js +1 -1
- package/src/sap/gantt/shape/ext/ubc/UbcUsedPolygon.js +1 -1
- package/src/sap/gantt/shape/ext/ubc/UtilizationBarChart.js +1 -1
- package/src/sap/gantt/shape/ext/ulc/UlcBorderPath.js +1 -1
- package/src/sap/gantt/shape/ext/ulc/UlcClipPath.js +1 -1
- package/src/sap/gantt/shape/ext/ulc/UlcClipingPath.js +1 -1
- package/src/sap/gantt/shape/ext/ulc/UlcDimension.js +1 -1
- package/src/sap/gantt/shape/ext/ulc/UlcMiddleLine.js +1 -1
- package/src/sap/gantt/shape/ext/ulc/UlcOverCapacityZoneRectangle.js +1 -1
- package/src/sap/gantt/shape/ext/ulc/UlcOverClipRectangle.js +1 -1
- package/src/sap/gantt/shape/ext/ulc/UlcRectangle.js +1 -1
- package/src/sap/gantt/shape/ext/ulc/UlcTooltipRectangle.js +1 -1
- package/src/sap/gantt/shape/ext/ulc/UlcUnderClipRectangle.js +1 -1
- package/src/sap/gantt/shape/ext/ulc/UtilizationLineChart.js +1 -1
- package/src/sap/gantt/simple/AdhocDiamond.js +1 -1
- package/src/sap/gantt/simple/AdhocLine.js +1 -1
- package/src/sap/gantt/simple/BaseCalendar.js +1 -1
- package/src/sap/gantt/simple/BaseChevron.js +1 -1
- package/src/sap/gantt/simple/BaseConditionalShape.js +1 -1
- package/src/sap/gantt/simple/BaseCursor.js +1 -1
- package/src/sap/gantt/simple/BaseDeltaRectangle.js +1 -1
- package/src/sap/gantt/simple/BaseDiamond.js +10 -7
- package/src/sap/gantt/simple/BaseGroup.js +1 -1
- package/src/sap/gantt/simple/BaseImage.js +1 -1
- package/src/sap/gantt/simple/BaseLine.js +1 -1
- package/src/sap/gantt/simple/BasePath.js +1 -1
- package/src/sap/gantt/simple/BasePseudoShape.js +1 -1
- package/src/sap/gantt/simple/BaseRectangle.js +10 -7
- package/src/sap/gantt/simple/BaseShape.js +21 -2
- package/src/sap/gantt/simple/BaseText.js +1 -1
- package/src/sap/gantt/simple/BaseTriangle.js +1 -1
- package/src/sap/gantt/simple/ContainerToolbar.js +1 -1
- package/src/sap/gantt/simple/ContainerToolbarPlaceholder.js +1 -1
- package/src/sap/gantt/simple/CoordinateUtils.js +1 -1
- package/src/sap/gantt/simple/CustomVariantHandler.js +1 -1
- package/src/sap/gantt/simple/DeltaLine.js +1 -1
- package/src/sap/gantt/simple/ExpandModel.js +1 -1
- package/src/sap/gantt/simple/GanttAdaptationData.js +1 -1
- package/src/sap/gantt/simple/GanttChartContainer.js +17 -7
- package/src/sap/gantt/simple/GanttChartWithTable.js +23 -13
- package/src/sap/gantt/simple/GanttConnectExtension.js +7 -5
- package/src/sap/gantt/simple/GanttDragDropExtension.js +2 -2
- package/src/sap/gantt/simple/GanttExtension.js +1 -1
- package/src/sap/gantt/simple/GanttHeader.js +1 -1
- package/src/sap/gantt/simple/GanttPointerExtension.js +1 -1
- package/src/sap/gantt/simple/GanttPopoverExtension.js +1 -1
- package/src/sap/gantt/simple/GanttPrinting.js +1 -1
- package/src/sap/gantt/simple/GanttResizeExtension.js +7 -5
- package/src/sap/gantt/simple/GanttRowAction.js +1 -1
- package/src/sap/gantt/simple/GanttRowSettings.js +1 -1
- package/src/sap/gantt/simple/GanttZoomExtension.js +1 -1
- package/src/sap/gantt/simple/InnerGanttChart.js +1 -1
- package/src/sap/gantt/simple/LegendContainer.js +1 -1
- package/src/sap/gantt/simple/LegendShapeGroup.js +1 -1
- package/src/sap/gantt/simple/MultiActivityGroup.js +1 -1
- package/src/sap/gantt/simple/MultiActivityRowSettings.js +1 -1
- package/src/sap/gantt/simple/PrintDialogTemplate.js +1 -1
- package/src/sap/gantt/simple/PrintUtils.js +1 -1
- package/src/sap/gantt/simple/Relationship.js +23 -17
- package/src/sap/gantt/simple/ShapeScheme.js +1 -1
- package/src/sap/gantt/simple/ShapeStyle.js +1 -1
- package/src/sap/gantt/simple/StockChart.js +1 -1
- package/src/sap/gantt/simple/StockChartDimension.js +1 -1
- package/src/sap/gantt/simple/StockChartPeriod.js +1 -1
- package/src/sap/gantt/simple/UtilizationBarChart.js +1 -1
- package/src/sap/gantt/simple/UtilizationChart.js +1 -1
- package/src/sap/gantt/simple/UtilizationDimension.js +1 -1
- package/src/sap/gantt/simple/UtilizationLineChart.js +1 -1
- package/src/sap/gantt/simple/UtilizationPeriod.js +1 -1
- package/src/sap/gantt/simple/shapes/Shape.js +1 -1
- package/src/sap/gantt/simple/shapes/Task.js +1 -1
- package/src/sap/gantt/skipTime/DayInterval.js +1 -1
- package/src/sap/gantt/skipTime/DiscontinuousProvider.js +1 -1
- package/src/sap/gantt/skipTime/SkipInterval.js +15 -5
- package/src/sap/gantt/skipTime/SkipPattern.js +58 -1
- package/src/sap/gantt/skipTime/WeekPattern.js +184 -7
- package/src/sap/gantt/skipTime/WeeklyDiscontinuousProvider.js +33 -2
package/package.json
CHANGED
package/src/sap/gantt/.library
CHANGED
|
@@ -74,7 +74,7 @@ sap.ui.define([
|
|
|
74
74
|
* @abstract
|
|
75
75
|
*
|
|
76
76
|
* @author SAP SE
|
|
77
|
-
* @version 1.
|
|
77
|
+
* @version 1.131.0
|
|
78
78
|
*
|
|
79
79
|
* @constructor
|
|
80
80
|
* @public
|
|
@@ -280,6 +280,16 @@ sap.ui.define([
|
|
|
280
280
|
* @public
|
|
281
281
|
*/
|
|
282
282
|
AxisTimeStrategyBase.prototype.setSkipTimePattern = function (oSkipTimePattern, bSuppressInvalidate) {
|
|
283
|
+
var oParent = this.getParent();
|
|
284
|
+
|
|
285
|
+
if (oParent) {
|
|
286
|
+
var oLocale = oParent.getLocale();
|
|
287
|
+
|
|
288
|
+
if (oLocale) {
|
|
289
|
+
oSkipTimePattern.setLocale(oLocale);
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
|
|
283
293
|
var oDiscontinuousProvider = oSkipTimePattern ? oSkipTimePattern.getDiscontinuityProvider() : null;
|
|
284
294
|
this.setAggregation("skipTimePattern", oSkipTimePattern, true);
|
|
285
295
|
delete this._nGanttVisibleWidth;
|
|
@@ -303,6 +313,25 @@ sap.ui.define([
|
|
|
303
313
|
Formatting.detachChange(this._onLocalizationChanged.bind(this));
|
|
304
314
|
};
|
|
305
315
|
|
|
316
|
+
/**
|
|
317
|
+
* @param {object} oParent instance of GanttChartWithTable
|
|
318
|
+
* get the latest locale from the Gantt chart on attach
|
|
319
|
+
* @private
|
|
320
|
+
*/
|
|
321
|
+
AxisTimeStrategyBase.prototype.setParent = function (oParent) {
|
|
322
|
+
Element.prototype.setParent.apply(this, arguments);
|
|
323
|
+
|
|
324
|
+
var oSkipTimePattern = this.getAggregation("skipTimePattern");
|
|
325
|
+
|
|
326
|
+
if (oSkipTimePattern) {
|
|
327
|
+
var oLocale = oParent.getLocale();
|
|
328
|
+
|
|
329
|
+
if (oLocale) {
|
|
330
|
+
oSkipTimePattern.setLocale(oLocale);
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
};
|
|
334
|
+
|
|
306
335
|
/**
|
|
307
336
|
* Check if this axis time strategy enable period zWoom
|
|
308
337
|
|
|
@@ -37,7 +37,7 @@ sap.ui.define([
|
|
|
37
37
|
* @extends sap.gantt.axistime.AxisTimeStrategyBase
|
|
38
38
|
*
|
|
39
39
|
* @author SAP SE
|
|
40
|
-
* @version 1.
|
|
40
|
+
* @version 1.131.0
|
|
41
41
|
*
|
|
42
42
|
* @constructor
|
|
43
43
|
* @public
|
|
@@ -66,6 +66,7 @@ sap.ui.define([
|
|
|
66
66
|
this.setProperty("timeLineOption", ProportionTimeLineOptions["4day"], true);
|
|
67
67
|
this.setProperty("zoomLevel", 0, true);
|
|
68
68
|
this.setProperty("zoomLevels", 10, true);
|
|
69
|
+
this._disableAutoProportion = false;
|
|
69
70
|
};
|
|
70
71
|
|
|
71
72
|
/**
|
|
@@ -222,7 +223,9 @@ sap.ui.define([
|
|
|
222
223
|
this._oZoom.rate = oDeterminedByChartWidth.suitableRate;
|
|
223
224
|
this._adjustRateByBoundary();
|
|
224
225
|
}
|
|
225
|
-
this.
|
|
226
|
+
if (!this._disableAutoProportion) {
|
|
227
|
+
this._bHorizontalScroll = false;
|
|
228
|
+
}
|
|
226
229
|
var iLastZoomLevel = this.getZoomLevel(),
|
|
227
230
|
iZoomLevel = this._calcZoomLevelFromZoomRate(this._oZoom.rate);
|
|
228
231
|
|
|
@@ -245,6 +248,14 @@ sap.ui.define([
|
|
|
245
248
|
|
|
246
249
|
return oRetVal;
|
|
247
250
|
};
|
|
251
|
+
/**
|
|
252
|
+
* This method is used to disable the auto proportion feature in initial rendering of the GanttChart.
|
|
253
|
+
* @private
|
|
254
|
+
* @param {boolean} bValue - value to enable or disable auto proportion
|
|
255
|
+
*/
|
|
256
|
+
ProportionZoomStrategy.prototype.setDisableAutoProportion = function (bValue) {
|
|
257
|
+
this._disableAutoProportion = bValue;
|
|
258
|
+
};
|
|
248
259
|
|
|
249
260
|
ProportionZoomStrategy.prototype._updateVisibleHorizon = function (nClientWidth) {
|
|
250
261
|
var oOriginalVisibleHorizon = this.getVisibleHorizon();
|
|
@@ -23,7 +23,7 @@ sap.ui.define([
|
|
|
23
23
|
* The class allows you to define a zoom strategy whose time line options are stepwise, i.e. the width of each time line option
|
|
24
24
|
* is pre-defined and won't be changed during zooming.
|
|
25
25
|
* @extends sap.gantt.axistime.AxisTimeStrategyBase
|
|
26
|
-
* @version 1.
|
|
26
|
+
* @version 1.131.0
|
|
27
27
|
*
|
|
28
28
|
* @constructor
|
|
29
29
|
* @public
|
|
@@ -6,8 +6,9 @@
|
|
|
6
6
|
*/
|
|
7
7
|
sap.ui.define([
|
|
8
8
|
'sap/ui/core/Element',
|
|
9
|
-
"sap/gantt/utils/GanttChartConfigurationUtils"
|
|
10
|
-
|
|
9
|
+
"sap/gantt/utils/GanttChartConfigurationUtils",
|
|
10
|
+
"sap/base/i18n/Localization"
|
|
11
|
+
], function (Element, GanttChartConfigurationUtils, Localization) {
|
|
11
12
|
"use strict";
|
|
12
13
|
/**
|
|
13
14
|
* Creates and initializes a new Locale
|
|
@@ -20,7 +21,7 @@ sap.ui.define([
|
|
|
20
21
|
* @extends sap.ui.core.Element
|
|
21
22
|
*
|
|
22
23
|
* @author SAP SE
|
|
23
|
-
* @version 1.
|
|
24
|
+
* @version 1.131.0
|
|
24
25
|
*
|
|
25
26
|
* @constructor
|
|
26
27
|
* @public
|
|
@@ -59,6 +60,16 @@ sap.ui.define([
|
|
|
59
60
|
}
|
|
60
61
|
});
|
|
61
62
|
|
|
63
|
+
/**
|
|
64
|
+
* @private
|
|
65
|
+
*/
|
|
66
|
+
Locale.prototype.init = function () {
|
|
67
|
+
this._onLocalizationChangedHandler = this._onLocalizationChanged.bind(this);
|
|
68
|
+
Localization.attachChange(this._onLocalizationChangedHandler);
|
|
69
|
+
Element.prototype.init.apply(this, arguments);
|
|
70
|
+
this._triggerTimezoneChange(this.getTimeZone());
|
|
71
|
+
};
|
|
72
|
+
|
|
62
73
|
/**
|
|
63
74
|
* @returns {string} Returns the specified time zone
|
|
64
75
|
* The localization time zone is considered as the default time zone for the locale, see {@link sap.base.i18n.Localization#getTimezone}..
|
|
@@ -69,6 +80,26 @@ sap.ui.define([
|
|
|
69
80
|
return sTimeZone || GanttChartConfigurationUtils.getTimezone();
|
|
70
81
|
};
|
|
71
82
|
|
|
83
|
+
/**
|
|
84
|
+
* Aggregation to set the timezone to the locale
|
|
85
|
+
* @description Custom timezone for Gantt. The localization time zone is considered as the default time zone for the locale, see {@link sap.base.i18n.Localization#getTimezone}
|
|
86
|
+
* @param {string} sTimeZone Timezone to set
|
|
87
|
+
* @param {boolean} bSuppressInvalidate flag to suppress the invalidation and by default the locale will be invalidate
|
|
88
|
+
* @public
|
|
89
|
+
* @returns {sap.gantt.config.Locale} returns the control for chaining
|
|
90
|
+
*/
|
|
91
|
+
Locale.prototype.setTimeZone = function (sTimeZone, bSuppressInvalidate) {
|
|
92
|
+
var sCurrentTimeZone = this.getProperty("timeZone");
|
|
93
|
+
|
|
94
|
+
if (sCurrentTimeZone !== sTimeZone) {
|
|
95
|
+
this.setProperty("timeZone", sTimeZone, bSuppressInvalidate);
|
|
96
|
+
this._triggerTimezoneChange(sTimeZone);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
return this;
|
|
100
|
+
};
|
|
101
|
+
|
|
102
|
+
|
|
72
103
|
/**
|
|
73
104
|
* @param {sap.ui.core.format.DateFormatWithTimezone} oFormatter formatter for the date input
|
|
74
105
|
* @param {Date} oDate Date to be formatted
|
|
@@ -78,5 +109,49 @@ sap.ui.define([
|
|
|
78
109
|
return oFormatter.format(oDate, this.getTimeZone());
|
|
79
110
|
};
|
|
80
111
|
|
|
112
|
+
/**
|
|
113
|
+
* @param {module:sap/base/i18n/Localization$ChangeEvent} oChanges event object
|
|
114
|
+
* @description The change event is fired, when the configuration options are changed.
|
|
115
|
+
* @private
|
|
116
|
+
*/
|
|
117
|
+
Locale.prototype._onLocalizationChanged = function (oChanges) {
|
|
118
|
+
//console.log(this)
|
|
119
|
+
var sTimezone = this.getProperty("timeZone");
|
|
120
|
+
|
|
121
|
+
if (!sTimezone) {
|
|
122
|
+
var sNewTimezone = oChanges.timezone;
|
|
123
|
+
|
|
124
|
+
if (sNewTimezone && (sNewTimezone !== this._sCurrentLocalizationTimezone)) {
|
|
125
|
+
this._sCurrentLocalizationTimezone = sNewTimezone;
|
|
126
|
+
this._triggerTimezoneChange(sNewTimezone);
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
};
|
|
130
|
+
|
|
131
|
+
/**
|
|
132
|
+
* @private
|
|
133
|
+
*/
|
|
134
|
+
Locale.prototype._triggerTimezoneChange = function () {
|
|
135
|
+
this._handleEvent(new jQuery.Event("TimezoneChanged"));
|
|
136
|
+
};
|
|
137
|
+
|
|
138
|
+
/**
|
|
139
|
+
* @private
|
|
140
|
+
*/
|
|
141
|
+
Locale.prototype.exit = function () {
|
|
142
|
+
Localization.detachChange(this._onLocalizationChangedHandler);
|
|
143
|
+
Element.prototype.exit.apply(this, arguments);
|
|
144
|
+
};
|
|
145
|
+
|
|
146
|
+
/**
|
|
147
|
+
* @returns {object} cloned locale
|
|
148
|
+
* @private
|
|
149
|
+
*/
|
|
150
|
+
Locale.prototype.clone = function () {
|
|
151
|
+
Localization.detachChange(this._onLocalizationChangedHandler);
|
|
152
|
+
|
|
153
|
+
return Element.prototype.clone.apply(this, arguments);
|
|
154
|
+
};
|
|
155
|
+
|
|
81
156
|
return Locale;
|
|
82
157
|
}, true);
|