@sapui5/sap.chart 1.106.0 → 1.108.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/chart/.library +1 -1
- package/src/sap/chart/Chart.js +13 -1
- package/src/sap/chart/library.js +1 -1
package/package.json
CHANGED
package/src/sap/chart/.library
CHANGED
package/src/sap/chart/Chart.js
CHANGED
|
@@ -2164,6 +2164,7 @@ sap.ui.define([
|
|
|
2164
2164
|
|
|
2165
2165
|
|
|
2166
2166
|
Chart.prototype.unbindAggregation = function(sName, bSuppressReset) {
|
|
2167
|
+
var bIsDuplicateUnbindAggregationData = false;
|
|
2167
2168
|
if (sName === "data") {
|
|
2168
2169
|
var oDataset = this._getDataset();
|
|
2169
2170
|
if (oDataset) {
|
|
@@ -2174,8 +2175,19 @@ sap.ui.define([
|
|
|
2174
2175
|
oDataset.unbindAggregation.apply(oDataset, arguments);
|
|
2175
2176
|
}
|
|
2176
2177
|
bSuppressReset = true; // since we explicitly prohibit call to destroyData
|
|
2178
|
+
|
|
2179
|
+
// some functions wull trigger this._getDataset().unbindAggregation('data', true)
|
|
2180
|
+
// (for example Chart.prototype.exit). if another unbindAggregation("data") is triggered
|
|
2181
|
+
// (bIsBeingDestroyed), we do not run BaseControl.prototype.unbindAggregation again
|
|
2182
|
+
// if this.bHasAnalyticalInfo is true and this.aContexts === undefined,
|
|
2183
|
+
// BaseControl.prototype.unbindAggregation will not duplicate unbind
|
|
2184
|
+
bIsDuplicateUnbindAggregationData = (!this.bHasAnalyticalInfo && this.aContexts === undefined && this._getDataset &&
|
|
2185
|
+
this._getDataset() === null && this.mBindingInfos && this.mBindingInfos[sName] &&
|
|
2186
|
+
this.mBindingInfos[sName].binding && this.mBindingInfos[sName].binding.bIsBeingDestroyed);
|
|
2187
|
+
}
|
|
2188
|
+
if (!bIsDuplicateUnbindAggregationData) {
|
|
2189
|
+
return BaseControl.prototype.unbindAggregation.apply(this, [sName, bSuppressReset]);
|
|
2177
2190
|
}
|
|
2178
|
-
return BaseControl.prototype.unbindAggregation.apply(this, [sName, bSuppressReset]);
|
|
2179
2191
|
};
|
|
2180
2192
|
|
|
2181
2193
|
Chart.prototype.unbindData = function() {
|