|
|
@@ -10,7 +10,13 @@
|
|
|
|
|
|
let bootstrapVersion = 3
|
|
|
try {
|
|
|
- bootstrapVersion = parseInt($.fn.dropdown.Constructor.VERSION, 10)
|
|
|
+ var rawVersion = $.fn.dropdown.Constructor.VERSION
|
|
|
+
|
|
|
+ // Only try to parse VERSION if is is defined.
|
|
|
+ // It is undefined in older versions of Bootstrap (tested with 3.1.1).
|
|
|
+ if (rawVersion !== undefined) {
|
|
|
+ bootstrapVersion = parseInt(rawVersion, 10)
|
|
|
+ }
|
|
|
} catch (e) {}
|
|
|
|
|
|
const bootstrap = {
|