Procházet zdrojové kódy

Fix jQuery moving its files around

In 1.10 -> 1.11 as well as 2.0 -> 2.1 transition, bower package
only includes dist directory, so jquery.min.js must be found there.

Specified array of paths to try for require.js to try,
so jQuery is found in pre- as well as post-transition scenarios.
Herbert Vojčík před 10 roky
rodič
revize
c9d23e83f7
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      support/amber.js

+ 1 - 1
support/amber.js

@@ -86,7 +86,7 @@ require = function (require) {
             'helios/set': amber_home + '/support/helios/set',
             'helios/resources': amber_home + '/support/helios/resources',
             'helios/index': amber_home + '/support/helios/index',
-            'jquery': library_home + '/jquery/jquery.min'
+            'jquery': [ library_home + '/jquery/dist/jquery.min', library_home + '/jquery/jquery.min' ]
         },
         map: {
             '*': {