Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
}
else {
return isOpen ? this._openPromise : this._closePromise;
}
}
this._opened = isOpen;
this._transition = true;
if (isOpen) {
this.onOpenStart.emit(null);
}
else {
this.onCloseStart.emit(null);
}
if (isOpen) {
if (this._openPromise == null) {
var completer = new promise_completer_1.PromiseCompleter();
this._openPromise = completer.promise;
this._openPromiseReject = completer.reject;
this._openPromiseResolve = completer.resolve;
}
return this._openPromise;
}
else {
if (this._closePromise == null) {
var completer = new promise_completer_1.PromiseCompleter();
this._closePromise = completer.promise;
this._closePromiseReject = completer.reject;
this._closePromiseResolve = completer.resolve;
}
return this._closePromise;
}
};