@aurelia-mdc-web/base
Advanced tools
Comparing version 8.0.1 to 8.0.2
@@ -30,5 +30,12 @@ define(["require", "exports", "tslib"], function (require, exports, tslib_1) { | ||
switch (_a.label) { | ||
case 0: return [4 /*yield*/, this.initialise()]; | ||
case 0: | ||
this.continueAttaching = true; | ||
return [4 /*yield*/, this.initialise()]; | ||
case 1: | ||
_a.sent(); | ||
// detached might be called straight after attached starts | ||
// do not continue attaching if that's the case | ||
if (!this.continueAttaching) { | ||
return [2 /*return*/]; | ||
} | ||
this.foundation = this.getDefaultFoundation(); | ||
@@ -47,2 +54,3 @@ this.foundation.init(); | ||
var _a; | ||
this.continueAttaching = false; | ||
this.destroy(); | ||
@@ -49,0 +57,0 @@ (_a = this.foundation) === null || _a === void 0 ? void 0 : _a.destroy(); |
@@ -30,5 +30,12 @@ "use strict"; | ||
switch (_a.label) { | ||
case 0: return [4 /*yield*/, this.initialise()]; | ||
case 0: | ||
this.continueAttaching = true; | ||
return [4 /*yield*/, this.initialise()]; | ||
case 1: | ||
_a.sent(); | ||
// detached might be called straight after attached starts | ||
// do not continue attaching if that's the case | ||
if (!this.continueAttaching) { | ||
return [2 /*return*/]; | ||
} | ||
this.foundation = this.getDefaultFoundation(); | ||
@@ -47,2 +54,3 @@ this.foundation.init(); | ||
var _a; | ||
this.continueAttaching = false; | ||
this.destroy(); | ||
@@ -49,0 +57,0 @@ (_a = this.foundation) === null || _a === void 0 ? void 0 : _a.destroy(); |
@@ -20,3 +20,9 @@ import { __awaiter } from "tslib"; | ||
return __awaiter(this, void 0, void 0, function* () { | ||
this.continueAttaching = true; | ||
yield this.initialise(); | ||
// detached might be called straight after attached starts | ||
// do not continue attaching if that's the case | ||
if (!this.continueAttaching) { | ||
return; | ||
} | ||
this.foundation = this.getDefaultFoundation(); | ||
@@ -32,2 +38,3 @@ this.foundation.init(); | ||
var _a; | ||
this.continueAttaching = false; | ||
this.destroy(); | ||
@@ -34,0 +41,0 @@ (_a = this.foundation) === null || _a === void 0 ? void 0 : _a.destroy(); |
@@ -27,5 +27,12 @@ import { __awaiter, __generator } from "tslib"; | ||
switch (_a.label) { | ||
case 0: return [4 /*yield*/, this.initialise()]; | ||
case 0: | ||
this.continueAttaching = true; | ||
return [4 /*yield*/, this.initialise()]; | ||
case 1: | ||
_a.sent(); | ||
// detached might be called straight after attached starts | ||
// do not continue attaching if that's the case | ||
if (!this.continueAttaching) { | ||
return [2 /*return*/]; | ||
} | ||
this.foundation = this.getDefaultFoundation(); | ||
@@ -44,2 +51,3 @@ this.foundation.init(); | ||
var _a; | ||
this.continueAttaching = false; | ||
this.destroy(); | ||
@@ -46,0 +54,0 @@ (_a = this.foundation) === null || _a === void 0 ? void 0 : _a.destroy(); |
@@ -6,2 +6,3 @@ import { MDCFoundation } from '@material/base'; | ||
foundation?: FoundationType; | ||
continueAttaching: boolean; | ||
initialised: Promise<unknown>; | ||
@@ -8,0 +9,0 @@ protected initialisedResolve: (value?: unknown) => void; |
{ | ||
"name": "@aurelia-mdc-web/base", | ||
"version": "8.0.1", | ||
"version": "8.0.2", | ||
"publishConfig": { | ||
@@ -5,0 +5,0 @@ "access": "public" |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
220030
1888