Skip to content

Commit 0b11d4d

Browse files
committed
remove redundant check
1 parent 39e67aa commit 0b11d4d

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/ajaxdestroy.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export class AjaxDestroy extends Parser {
2424
let evts = attrs['ajax:bind'];
2525
$(node).off(evts);
2626
}
27-
if (window.bootstrap && window.bootstrap !== undefined) {
27+
if (window.bootstrap !== undefined) {
2828
let dd = window.bootstrap.Dropdown.getInstance(node);
2929
let tt = window.bootstrap.Tooltip.getInstance(node);
3030
if (dd) {

treibstoff/bundle/treibstoff.bundle.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -571,7 +571,7 @@ var ts = (function (exports, $) {
571571
let evts = attrs['ajax:bind'];
572572
$(node).off(evts);
573573
}
574-
if (window.bootstrap) {
574+
if (window.bootstrap !== undefined) {
575575
let dd = window.bootstrap.Dropdown.getInstance(node);
576576
let tt = window.bootstrap.Tooltip.getInstance(node);
577577
if (dd) {
@@ -607,10 +607,10 @@ var ts = (function (exports, $) {
607607
this.is_open = false;
608608
}
609609
compile() {
610-
let zIndex = 1055;
611-
zIndex += $('.modal:visible').length;
610+
let z_index = 1055;
611+
z_index += $('.modal:visible').length;
612612
compile_template(this, `
613-
<div class="modal-wrapper position-absolute" t-elem="wrapper" style="z-index: ${zIndex}">
613+
<div class="modal-wrapper position-absolute" t-elem="wrapper" style="z-index: ${z_index}">
614614
<div class="modal-backdrop opacity-25" t-elem="backdrop"></div>
615615
<div class="modal ${this.css}" id="${this.uid}" t-elem="elem">
616616
<div class="modal-dialog">

0 commit comments

Comments
 (0)