1
1
/*
2
2
@license
3
3
4
- dhtmlxGantt v.7.1.1 Standard
4
+ dhtmlxGantt v.7.1.2 Standard
5
5
6
6
This version of dhtmlxGantt is distributed under GPL 2.0 license and can be legally used in GPL projects.
7
7
@@ -11117,6 +11117,14 @@ function initDataStores(gantt) {
11117
11117
});
11118
11118
tasksStore.attachEvent("onIdChange", function (oldId, newId) {
11119
11119
gantt._update_flags(oldId, newId);
11120
+
11121
+ var changedTask = gantt.getTask(newId);
11122
+
11123
+ if (changedTask.$split_subtask || changedTask.rollup) {
11124
+ gantt.eachParent(function (parent) {
11125
+ gantt.refreshTask(parent.id);
11126
+ }, newId);
11127
+ }
11120
11128
});
11121
11129
tasksStore.attachEvent("onAfterUpdate", function (id) {
11122
11130
gantt._update_parents(id);
@@ -13999,6 +14007,10 @@ module.exports = function (gantt) {
13999
14007
return;
14000
14008
}
14001
14009
14010
+ if (gantt.$destroyed) {
14011
+ return;
14012
+ }
14013
+
14002
14014
this.callEvent("onBeforeParse", []);
14003
14015
if (!type) type = "json";
14004
14016
this.assert(this[type], "Invalid data type:'" + type + "'");
@@ -20693,7 +20705,11 @@ var ScrollbarCell = function (_super) {
20693
20705
20694
20706
ScrollbarCell.prototype._initMouseWheel = function () {
20695
20707
var ff = env.isFF;
20696
- if (ff) this.$domEvents.attach(this._getRootParent().$view, "wheel", this._mouseWheelHandler);else this.$domEvents.attach(this._getRootParent().$view, "mousewheel", this._mouseWheelHandler);
20708
+ if (ff) this.$domEvents.attach(this._getRootParent().$view, "wheel", this._mouseWheelHandler, {
20709
+ passive: false
20710
+ });else this.$domEvents.attach(this._getRootParent().$view, "mousewheel", this._mouseWheelHandler, {
20711
+ passive: false
20712
+ });
20697
20713
};
20698
20714
20699
20715
ScrollbarCell.prototype.scrollHorizontally = function (left) {
@@ -24928,7 +24944,7 @@ var TimelineZoom = /** @class */ (function () {
24928
24944
this._handler.apply(this, [e]);
24929
24945
return true;
24930
24946
}
24931
- }, _this));
24947
+ }, _this), { passive: false } );
24932
24948
};
24933
24949
this._defaultHandler = function (e) {
24934
24950
var timelineOffset = _this.$gantt.$task.getBoundingClientRect().x;
@@ -39351,7 +39367,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
39351
39367
39352
39368
function DHXGantt() {
39353
39369
this.constants = __webpack_require__(/*! ../constants */ "./sources/constants/index.js");
39354
- this.version = "7.1.1 ";
39370
+ this.version = "7.1.2 ";
39355
39371
this.license = "gpl";
39356
39372
this.templates = {};
39357
39373
this.ext = {};
@@ -42782,9 +42798,10 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
42782
42798
42783
42799
var helpers = __webpack_require__(/*! ./helpers */ "./sources/utils/helpers.js");
42784
42800
42801
+ var plainObjectConstructor = {}.constructor.toString();
42802
+
42785
42803
function isCustomType(object) {
42786
42804
var constructorString = object.constructor.toString();
42787
- var plainObjectConstructor = {}.constructor.toString();
42788
42805
return constructorString !== plainObjectConstructor;
42789
42806
}
42790
42807
@@ -42806,17 +42823,15 @@ function copy(object) {
42806
42823
42807
42824
break;
42808
42825
42809
- case helpers.isStringObject(object):
42810
- result = new String(object);
42811
- break;
42812
-
42813
- case helpers.isNumberObject(object):
42814
- result = new Number(object);
42815
- break;
42816
-
42817
- case helpers.isBooleanObject(object):
42818
- result = new Boolean(object);
42819
- break;
42826
+ /* case (helpers.isStringObject(object)):
42827
+ result = new String(object);
42828
+ break;
42829
+ case (helpers.isNumberObject(object)):
42830
+ result = new Number(object);
42831
+ break;
42832
+ case (helpers.isBooleanObject(object)):
42833
+ result = new Boolean(object);
42834
+ break;*/
42820
42835
42821
42836
default:
42822
42837
if (isCustomType(object)) {
0 commit comments