File tree 2 files changed +15
-17
lines changed
2 files changed +15
-17
lines changed Original file line number Diff line number Diff line change @@ -12,14 +12,6 @@ import Util from './util'
12
12
13
13
const Dropdown = ( ( $ ) => {
14
14
15
- /**
16
- * Check for Popper dependency
17
- * Popper - https://popper.js.org
18
- */
19
- if ( typeof Popper === 'undefined' ) {
20
- throw new Error ( 'Bootstrap dropdown require Popper.js (https://popper.js.org)' )
21
- }
22
-
23
15
/**
24
16
* ------------------------------------------------------------------------
25
17
* Constants
@@ -151,6 +143,14 @@ const Dropdown = (($) => {
151
143
return
152
144
}
153
145
146
+ /**
147
+ * Check for Popper dependency
148
+ * Popper - https://popper.js.org
149
+ */
150
+ if ( typeof Popper === 'undefined' ) {
151
+ throw new Error ( 'Bootstrap dropdown require Popper.js (https://popper.js.org)' )
152
+ }
153
+
154
154
let element = this . _element
155
155
// for dropup with alignment we use the parent as popper container
156
156
if ( $ ( parent ) . hasClass ( ClassName . DROPUP ) ) {
Original file line number Diff line number Diff line change @@ -12,15 +12,6 @@ import Util from './util'
12
12
13
13
const Tooltip = ( ( $ ) => {
14
14
15
- /**
16
- * Check for Popper dependency
17
- * Popper - https://popper.js.org
18
- */
19
- if ( typeof Popper === 'undefined' ) {
20
- throw new Error ( 'Bootstrap tooltips require Popper.js (https://popper.js.org)' )
21
- }
22
-
23
-
24
15
/**
25
16
* ------------------------------------------------------------------------
26
17
* Constants
@@ -120,6 +111,13 @@ const Tooltip = (($) => {
120
111
class Tooltip {
121
112
122
113
constructor ( element , config ) {
114
+ /**
115
+ * Check for Popper dependency
116
+ * Popper - https://popper.js.org
117
+ */
118
+ if ( typeof Popper === 'undefined' ) {
119
+ throw new Error ( 'Bootstrap tooltips require Popper.js (https://popper.js.org)' )
120
+ }
123
121
124
122
// private
125
123
this . _isEnabled = true
You can’t perform that action at this time.
0 commit comments