@kitware/vtk.js 25.8.6 → 25.8.7
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/Common/Core/ClassHierarchy.js +10 -10
- package/package.json +1 -1
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import _toConsumableArray from '@babel/runtime/helpers/toConsumableArray';
|
|
2
1
|
import _classCallCheck from '@babel/runtime/helpers/classCallCheck';
|
|
3
2
|
import _createClass from '@babel/runtime/helpers/createClass';
|
|
4
3
|
import _get from '@babel/runtime/helpers/get';
|
|
@@ -11,6 +10,7 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflec
|
|
|
11
10
|
|
|
12
11
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
13
12
|
|
|
13
|
+
/* eslint-disable prefer-rest-params */
|
|
14
14
|
var ClassHierarchy = /*#__PURE__*/function (_Array) {
|
|
15
15
|
_inherits(ClassHierarchy, _Array);
|
|
16
16
|
|
|
@@ -25,18 +25,18 @@ var ClassHierarchy = /*#__PURE__*/function (_Array) {
|
|
|
25
25
|
_createClass(ClassHierarchy, [{
|
|
26
26
|
key: "push",
|
|
27
27
|
value: function push() {
|
|
28
|
-
var
|
|
29
|
-
_get2;
|
|
28
|
+
var _get2;
|
|
30
29
|
|
|
31
|
-
|
|
32
|
-
|
|
30
|
+
// using a for loop because a filter would trigger the garbage collector
|
|
31
|
+
var newArgs = [];
|
|
32
|
+
|
|
33
|
+
for (var i = 0; i < arguments.length; i++) {
|
|
34
|
+
if (!this.includes(arguments[i])) {
|
|
35
|
+
newArgs.push(arguments[i]);
|
|
36
|
+
}
|
|
33
37
|
}
|
|
34
38
|
|
|
35
|
-
|
|
36
|
-
var newArgs = args.filter(function (arg) {
|
|
37
|
-
return !_this.includes(arg);
|
|
38
|
-
});
|
|
39
|
-
return (_get2 = _get(_getPrototypeOf(ClassHierarchy.prototype), "push", this)).call.apply(_get2, [this].concat(_toConsumableArray(newArgs)));
|
|
39
|
+
return (_get2 = _get(_getPrototypeOf(ClassHierarchy.prototype), "push", this)).call.apply(_get2, [this].concat(newArgs));
|
|
40
40
|
}
|
|
41
41
|
}]);
|
|
42
42
|
|