jsl-ui 9.13.0 → 9.13.3
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.
|
@@ -20,7 +20,16 @@ var IntervalComponent = /** @class */ (function () {
|
|
|
20
20
|
node.dom.value = "";
|
|
21
21
|
}
|
|
22
22
|
var f = function () {
|
|
23
|
-
var result
|
|
23
|
+
var result;
|
|
24
|
+
try {
|
|
25
|
+
result = _this.fnc();
|
|
26
|
+
}
|
|
27
|
+
catch (e) {
|
|
28
|
+
console.error(e);
|
|
29
|
+
if (_this.options.stopOnError) {
|
|
30
|
+
return;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
24
33
|
var isPromise = result && typeof result.then === "function" && typeof result.catch === "function";
|
|
25
34
|
if (isPromise) {
|
|
26
35
|
result.then(function () {
|
|
@@ -39,15 +48,6 @@ var IntervalComponent = /** @class */ (function () {
|
|
|
39
48
|
});
|
|
40
49
|
}
|
|
41
50
|
else {
|
|
42
|
-
try {
|
|
43
|
-
_this.fnc();
|
|
44
|
-
}
|
|
45
|
-
catch (e) {
|
|
46
|
-
console.error(e);
|
|
47
|
-
if (_this.options.stopOnError) {
|
|
48
|
-
return;
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
51
|
if (!_this.options.noRefresh) {
|
|
52
52
|
_this.renderer.refresh();
|
|
53
53
|
}
|
package/lib/core/jq.js
CHANGED
|
@@ -136,7 +136,9 @@ function jQWrapper(elements) {
|
|
|
136
136
|
_elements.remove = function () {
|
|
137
137
|
for (var i = 0; i < _elements.length; i++) {
|
|
138
138
|
var el = _elements[i];
|
|
139
|
-
el.parentNode
|
|
139
|
+
if (el.parentNode) {
|
|
140
|
+
el.parentNode.removeChild(el);
|
|
141
|
+
}
|
|
140
142
|
}
|
|
141
143
|
};
|
|
142
144
|
_elements.data = function (name, value) {
|
|
@@ -194,15 +194,12 @@ export function Overlays(options) {
|
|
|
194
194
|
direction: "y",
|
|
195
195
|
gridY: grid.getOptions().rowHeight,
|
|
196
196
|
onStart: EventHandler.Create(function (e) {
|
|
197
|
-
console.log("onstart");
|
|
198
197
|
handleOverlayDragStart(e);
|
|
199
198
|
}),
|
|
200
199
|
onMove: EventHandler.Create(function (e) {
|
|
201
|
-
console.log("onMove");
|
|
202
200
|
handleOverlayDrag(e);
|
|
203
201
|
}),
|
|
204
202
|
onStop: EventHandler.Create(function (e) {
|
|
205
|
-
console.log("onStop");
|
|
206
203
|
handleOverlayDragEnd(e);
|
|
207
204
|
})
|
|
208
205
|
});
|