浏览代码

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: {
             '*': {