소스 검색

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 10 년 전
부모
커밋
c9d23e83f7
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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: {
             '*': {