Explorar o código

Load only Bootstrap's dropdown plugin.

The bundled dist/js/bootstrap.js refuses to run on jQuery 4 (its
version check throws), and some of its other plugins call APIs that
jQuery 4 removed. Helios uses just the dropdown, which Bootstrap also
ships standalone as js/dropdown.js, free of both.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Herby Vojčík hai 1 día
pai
achega
753b7b39d9
Modificáronse 2 ficheiros con 4 adicións e 3 borrados
  1. 1 1
      app.js
  2. 3 2
      bootstrap.amd.json

+ 1 - 1
app.js

@@ -9,7 +9,7 @@ define([
     'css!codemirror/addon/hint/show-hint',
     'typeahead',
     'jquery-ui',
-    'bootstrap/js/bootstrap',
+    'bootstrap/js/dropdown',
     './showdown',
     './all',
     'css!./resources/helios',

+ 3 - 2
bootstrap.amd.json

@@ -1,9 +1,10 @@
 {
   "paths": {
-    "bootstrap": "dist"
+    "bootstrap": "dist",
+    "bootstrap/js": "js"
   },
   "shim": {
-    "bootstrap/js/bootstrap": {
+    "bootstrap/js/dropdown": {
       "deps": [
         "jquery",
         "css!bootstrap/css/bootstrap"