dojo-rails 0.9.9 → 0.9.10

Sign up to get free protection for your applications and to get access to all the features.
Files changed (646) hide show
  1. data/lib/dojo/rails/version.rb +1 -1
  2. data/lib/dojo/version.rb +2 -2
  3. data/vendor/assets/javascripts/dojo.js +1 -1
  4. data/vendor/assets/javascripts/dojo/AdapterRegistry.js.uncompressed.js +11 -18
  5. data/vendor/assets/javascripts/dojo/Deferred.js +178 -0
  6. data/vendor/assets/javascripts/dojo/Deferred.js.uncompressed.js +314 -0
  7. data/vendor/assets/javascripts/dojo/DeferredList.js.uncompressed.js +4 -6
  8. data/vendor/assets/javascripts/dojo/Evented.js.uncompressed.js +15 -12
  9. data/vendor/assets/javascripts/dojo/LICENSE +1 -1
  10. data/vendor/assets/javascripts/dojo/NodeList-data.js.uncompressed.js +84 -73
  11. data/vendor/assets/javascripts/dojo/NodeList-dom.js +1 -1
  12. data/vendor/assets/javascripts/dojo/NodeList-dom.js.uncompressed.js +121 -66
  13. data/vendor/assets/javascripts/dojo/NodeList-fx.js +28 -27
  14. data/vendor/assets/javascripts/dojo/NodeList-fx.js.uncompressed.js +46 -47
  15. data/vendor/assets/javascripts/dojo/NodeList-html.js.uncompressed.js +19 -21
  16. data/vendor/assets/javascripts/dojo/NodeList-manipulate.js.uncompressed.js +172 -178
  17. data/vendor/assets/javascripts/dojo/NodeList-traverse.js.uncompressed.js +125 -130
  18. data/vendor/assets/javascripts/dojo/NodeList.js +10 -0
  19. data/vendor/assets/javascripts/dojo/NodeList.js.uncompressed.js +6 -0
  20. data/vendor/assets/javascripts/dojo/OpenAjax.js +13 -15
  21. data/vendor/assets/javascripts/dojo/Stateful.js +65 -41
  22. data/vendor/assets/javascripts/dojo/Stateful.js.uncompressed.js +110 -36
  23. data/vendor/assets/javascripts/dojo/_base/Color.js.uncompressed.js +34 -40
  24. data/vendor/assets/javascripts/dojo/_base/Deferred.js +84 -84
  25. data/vendor/assets/javascripts/dojo/_base/Deferred.js.uncompressed.js +57 -74
  26. data/vendor/assets/javascripts/dojo/_base/NodeList.js +2 -3
  27. data/vendor/assets/javascripts/dojo/_base/NodeList.js.uncompressed.js +58 -48
  28. data/vendor/assets/javascripts/dojo/_base/array.js +63 -67
  29. data/vendor/assets/javascripts/dojo/_base/array.js.uncompressed.js +259 -259
  30. data/vendor/assets/javascripts/dojo/_base/browser.js.uncompressed.js +10 -3
  31. data/vendor/assets/javascripts/dojo/_base/config.js.uncompressed.js +85 -72
  32. data/vendor/assets/javascripts/dojo/_base/configFirefoxExtension.js +15 -13
  33. data/vendor/assets/javascripts/dojo/_base/configNode.js +5 -5
  34. data/vendor/assets/javascripts/dojo/_base/configRhino.js +1 -1
  35. data/vendor/assets/javascripts/dojo/_base/configSpidermonkey.js +5 -9
  36. data/vendor/assets/javascripts/dojo/_base/connect.js +1 -1
  37. data/vendor/assets/javascripts/dojo/_base/connect.js.uncompressed.js +177 -203
  38. data/vendor/assets/javascripts/dojo/_base/declare.js +94 -90
  39. data/vendor/assets/javascripts/dojo/_base/declare.js.uncompressed.js +397 -402
  40. data/vendor/assets/javascripts/dojo/_base/event.js +16 -13
  41. data/vendor/assets/javascripts/dojo/_base/event.js.uncompressed.js +41 -33
  42. data/vendor/assets/javascripts/dojo/_base/fx.js +187 -183
  43. data/vendor/assets/javascripts/dojo/_base/fx.js.uncompressed.js +134 -130
  44. data/vendor/assets/javascripts/dojo/_base/html.js.uncompressed.js +14 -11
  45. data/vendor/assets/javascripts/dojo/_base/json.js.uncompressed.js +12 -6
  46. data/vendor/assets/javascripts/dojo/_base/kernel.js +35 -38
  47. data/vendor/assets/javascripts/dojo/_base/kernel.js.uncompressed.js +59 -62
  48. data/vendor/assets/javascripts/dojo/_base/lang.js +99 -98
  49. data/vendor/assets/javascripts/dojo/_base/lang.js.uncompressed.js +435 -537
  50. data/vendor/assets/javascripts/dojo/_base/loader.js +179 -154
  51. data/vendor/assets/javascripts/dojo/_base/loader.js.uncompressed.js +252 -194
  52. data/vendor/assets/javascripts/dojo/_base/query.js +2 -2
  53. data/vendor/assets/javascripts/dojo/_base/query.js.uncompressed.js +12 -2
  54. data/vendor/assets/javascripts/dojo/_base/sniff.js +6 -58
  55. data/vendor/assets/javascripts/dojo/_base/sniff.js.uncompressed.js +60 -151
  56. data/vendor/assets/javascripts/dojo/_base/unload.js +10 -9
  57. data/vendor/assets/javascripts/dojo/_base/unload.js.uncompressed.js +44 -43
  58. data/vendor/assets/javascripts/dojo/_base/url.js.uncompressed.js +1 -3
  59. data/vendor/assets/javascripts/dojo/_base/window.js +32 -35
  60. data/vendor/assets/javascripts/dojo/_base/window.js.uncompressed.js +117 -109
  61. data/vendor/assets/javascripts/dojo/_base/xhr.js +147 -263
  62. data/vendor/assets/javascripts/dojo/_base/xhr.js.uncompressed.js +253 -378
  63. data/vendor/assets/javascripts/dojo/_firebug/firebug.js +459 -458
  64. data/vendor/assets/javascripts/dojo/_firebug/firebug.js.uncompressed.js +39 -31
  65. data/vendor/assets/javascripts/dojo/aspect.js +71 -63
  66. data/vendor/assets/javascripts/dojo/aspect.js.uncompressed.js +111 -99
  67. data/vendor/assets/javascripts/dojo/back.js +11 -10
  68. data/vendor/assets/javascripts/dojo/back.js.uncompressed.js +59 -59
  69. data/vendor/assets/javascripts/dojo/behavior.js +49 -47
  70. data/vendor/assets/javascripts/dojo/behavior.js.uncompressed.js +26 -25
  71. data/vendor/assets/javascripts/dojo/cache.js +1 -1
  72. data/vendor/assets/javascripts/dojo/cache.js.uncompressed.js +2 -4
  73. data/vendor/assets/javascripts/dojo/cldr/monetary.js +13 -12
  74. data/vendor/assets/javascripts/dojo/cldr/monetary.js.uncompressed.js +15 -10
  75. data/vendor/assets/javascripts/dojo/cldr/nls/ar/buddhist.js +1 -1
  76. data/vendor/assets/javascripts/dojo/cldr/nls/ar/buddhist.js.uncompressed.js +85 -70
  77. data/vendor/assets/javascripts/dojo/cldr/nls/ar/currency.js +1 -1
  78. data/vendor/assets/javascripts/dojo/cldr/nls/ar/currency.js.uncompressed.js +6 -6
  79. data/vendor/assets/javascripts/dojo/cldr/nls/ar/gregorian.js +1 -1
  80. data/vendor/assets/javascripts/dojo/cldr/nls/ar/gregorian.js.uncompressed.js +157 -141
  81. data/vendor/assets/javascripts/dojo/cldr/nls/ar/hebrew.js +1 -1
  82. data/vendor/assets/javascripts/dojo/cldr/nls/ar/hebrew.js.uncompressed.js +62 -45
  83. data/vendor/assets/javascripts/dojo/cldr/nls/ar/islamic.js +1 -1
  84. data/vendor/assets/javascripts/dojo/cldr/nls/ar/islamic.js.uncompressed.js +112 -80
  85. data/vendor/assets/javascripts/dojo/cldr/nls/ar/number.js +1 -1
  86. data/vendor/assets/javascripts/dojo/cldr/nls/ar/number.js.uncompressed.js +11 -10
  87. data/vendor/assets/javascripts/dojo/cldr/nls/buddhist.js +1 -1
  88. data/vendor/assets/javascripts/dojo/cldr/nls/buddhist.js.uncompressed.js +110 -109
  89. data/vendor/assets/javascripts/dojo/cldr/nls/ca/currency.js +1 -1
  90. data/vendor/assets/javascripts/dojo/cldr/nls/ca/currency.js.uncompressed.js +6 -6
  91. data/vendor/assets/javascripts/dojo/cldr/nls/ca/gregorian.js +1 -1
  92. data/vendor/assets/javascripts/dojo/cldr/nls/ca/gregorian.js.uncompressed.js +176 -161
  93. data/vendor/assets/javascripts/dojo/cldr/nls/ca/number.js +1 -1
  94. data/vendor/assets/javascripts/dojo/cldr/nls/ca/number.js.uncompressed.js +9 -10
  95. data/vendor/assets/javascripts/dojo/cldr/nls/cs/buddhist.js +8 -0
  96. data/vendor/assets/javascripts/dojo/cldr/nls/cs/buddhist.js.uncompressed.js +170 -0
  97. data/vendor/assets/javascripts/dojo/cldr/nls/cs/currency.js +1 -1
  98. data/vendor/assets/javascripts/dojo/cldr/nls/cs/currency.js.uncompressed.js +9 -9
  99. data/vendor/assets/javascripts/dojo/cldr/nls/cs/gregorian.js +1 -1
  100. data/vendor/assets/javascripts/dojo/cldr/nls/cs/gregorian.js.uncompressed.js +166 -139
  101. data/vendor/assets/javascripts/dojo/cldr/nls/cs/islamic.js +8 -0
  102. data/vendor/assets/javascripts/dojo/cldr/nls/cs/islamic.js.uncompressed.js +99 -0
  103. data/vendor/assets/javascripts/dojo/cldr/nls/cs/number.js +1 -1
  104. data/vendor/assets/javascripts/dojo/cldr/nls/cs/number.js.uncompressed.js +9 -10
  105. data/vendor/assets/javascripts/dojo/cldr/nls/currency.js +1 -1
  106. data/vendor/assets/javascripts/dojo/cldr/nls/currency.js.uncompressed.js +5 -4
  107. data/vendor/assets/javascripts/dojo/cldr/nls/da/buddhist.js +1 -1
  108. data/vendor/assets/javascripts/dojo/cldr/nls/da/buddhist.js.uncompressed.js +91 -89
  109. data/vendor/assets/javascripts/dojo/cldr/nls/da/currency.js +1 -1
  110. data/vendor/assets/javascripts/dojo/cldr/nls/da/currency.js.uncompressed.js +6 -6
  111. data/vendor/assets/javascripts/dojo/cldr/nls/da/gregorian.js +1 -1
  112. data/vendor/assets/javascripts/dojo/cldr/nls/da/gregorian.js.uncompressed.js +174 -156
  113. data/vendor/assets/javascripts/dojo/cldr/nls/da/islamic.js +1 -1
  114. data/vendor/assets/javascripts/dojo/cldr/nls/da/islamic.js.uncompressed.js +60 -56
  115. data/vendor/assets/javascripts/dojo/cldr/nls/da/number.js +1 -1
  116. data/vendor/assets/javascripts/dojo/cldr/nls/da/number.js.uncompressed.js +9 -10
  117. data/vendor/assets/javascripts/dojo/cldr/nls/de/buddhist.js +1 -1
  118. data/vendor/assets/javascripts/dojo/cldr/nls/de/buddhist.js.uncompressed.js +92 -80
  119. data/vendor/assets/javascripts/dojo/cldr/nls/de/currency.js +1 -1
  120. data/vendor/assets/javascripts/dojo/cldr/nls/de/currency.js.uncompressed.js +8 -8
  121. data/vendor/assets/javascripts/dojo/cldr/nls/de/gregorian.js +1 -1
  122. data/vendor/assets/javascripts/dojo/cldr/nls/de/gregorian.js.uncompressed.js +176 -158
  123. data/vendor/assets/javascripts/dojo/cldr/nls/de/islamic.js +1 -1
  124. data/vendor/assets/javascripts/dojo/cldr/nls/de/islamic.js.uncompressed.js +63 -143
  125. data/vendor/assets/javascripts/dojo/cldr/nls/de/number.js +1 -1
  126. data/vendor/assets/javascripts/dojo/cldr/nls/de/number.js.uncompressed.js +9 -10
  127. data/vendor/assets/javascripts/dojo/cldr/nls/el/buddhist.js +1 -1
  128. data/vendor/assets/javascripts/dojo/cldr/nls/el/buddhist.js.uncompressed.js +144 -70
  129. data/vendor/assets/javascripts/dojo/cldr/nls/el/currency.js +1 -1
  130. data/vendor/assets/javascripts/dojo/cldr/nls/el/currency.js.uncompressed.js +6 -5
  131. data/vendor/assets/javascripts/dojo/cldr/nls/el/gregorian.js +1 -1
  132. data/vendor/assets/javascripts/dojo/cldr/nls/el/gregorian.js.uncompressed.js +170 -153
  133. data/vendor/assets/javascripts/dojo/cldr/nls/el/hebrew.js +1 -1
  134. data/vendor/assets/javascripts/dojo/cldr/nls/el/hebrew.js.uncompressed.js +78 -37
  135. data/vendor/assets/javascripts/dojo/cldr/nls/el/number.js +1 -1
  136. data/vendor/assets/javascripts/dojo/cldr/nls/el/number.js.uncompressed.js +9 -9
  137. data/vendor/assets/javascripts/dojo/cldr/nls/en-au/gregorian.js +1 -1
  138. data/vendor/assets/javascripts/dojo/cldr/nls/en-au/gregorian.js.uncompressed.js +15 -8
  139. data/vendor/assets/javascripts/dojo/cldr/nls/en-ca/gregorian.js +1 -1
  140. data/vendor/assets/javascripts/dojo/cldr/nls/en-ca/gregorian.js.uncompressed.js +12 -10
  141. data/vendor/assets/javascripts/dojo/cldr/nls/en-gb/buddhist.js +1 -1
  142. data/vendor/assets/javascripts/dojo/cldr/nls/en-gb/buddhist.js.uncompressed.js +69 -64
  143. data/vendor/assets/javascripts/dojo/cldr/nls/en-gb/gregorian.js +1 -1
  144. data/vendor/assets/javascripts/dojo/cldr/nls/en-gb/gregorian.js.uncompressed.js +16 -12
  145. data/vendor/assets/javascripts/dojo/cldr/nls/en-gb/islamic.js +1 -1
  146. data/vendor/assets/javascripts/dojo/cldr/nls/en-gb/islamic.js.uncompressed.js +40 -127
  147. data/vendor/assets/javascripts/dojo/cldr/nls/en/buddhist.js +1 -1
  148. data/vendor/assets/javascripts/dojo/cldr/nls/en/buddhist.js.uncompressed.js +77 -72
  149. data/vendor/assets/javascripts/dojo/cldr/nls/en/currency.js +1 -1
  150. data/vendor/assets/javascripts/dojo/cldr/nls/en/currency.js.uncompressed.js +7 -7
  151. data/vendor/assets/javascripts/dojo/cldr/nls/en/gregorian.js +1 -1
  152. data/vendor/assets/javascripts/dojo/cldr/nls/en/gregorian.js.uncompressed.js +154 -140
  153. data/vendor/assets/javascripts/dojo/cldr/nls/en/islamic.js +1 -1
  154. data/vendor/assets/javascripts/dojo/cldr/nls/en/islamic.js.uncompressed.js +52 -139
  155. data/vendor/assets/javascripts/dojo/cldr/nls/en/number.js +1 -1
  156. data/vendor/assets/javascripts/dojo/cldr/nls/en/number.js.uncompressed.js +9 -11
  157. data/vendor/assets/javascripts/dojo/cldr/nls/es/buddhist.js +1 -1
  158. data/vendor/assets/javascripts/dojo/cldr/nls/es/buddhist.js.uncompressed.js +104 -78
  159. data/vendor/assets/javascripts/dojo/cldr/nls/es/currency.js +1 -1
  160. data/vendor/assets/javascripts/dojo/cldr/nls/es/currency.js.uncompressed.js +8 -7
  161. data/vendor/assets/javascripts/dojo/cldr/nls/es/gregorian.js +1 -1
  162. data/vendor/assets/javascripts/dojo/cldr/nls/es/gregorian.js.uncompressed.js +177 -156
  163. data/vendor/assets/javascripts/dojo/cldr/nls/es/islamic.js +1 -1
  164. data/vendor/assets/javascripts/dojo/cldr/nls/es/islamic.js.uncompressed.js +74 -145
  165. data/vendor/assets/javascripts/dojo/cldr/nls/es/number.js +1 -1
  166. data/vendor/assets/javascripts/dojo/cldr/nls/es/number.js.uncompressed.js +9 -9
  167. data/vendor/assets/javascripts/dojo/cldr/nls/fi/buddhist.js +1 -1
  168. data/vendor/assets/javascripts/dojo/cldr/nls/fi/buddhist.js.uncompressed.js +150 -102
  169. data/vendor/assets/javascripts/dojo/cldr/nls/fi/currency.js +1 -1
  170. data/vendor/assets/javascripts/dojo/cldr/nls/fi/currency.js.uncompressed.js +7 -12
  171. data/vendor/assets/javascripts/dojo/cldr/nls/fi/gregorian.js +1 -1
  172. data/vendor/assets/javascripts/dojo/cldr/nls/fi/gregorian.js.uncompressed.js +163 -144
  173. data/vendor/assets/javascripts/dojo/cldr/nls/fi/hebrew.js +1 -1
  174. data/vendor/assets/javascripts/dojo/cldr/nls/fi/hebrew.js.uncompressed.js +130 -95
  175. data/vendor/assets/javascripts/dojo/cldr/nls/fi/islamic.js +1 -1
  176. data/vendor/assets/javascripts/dojo/cldr/nls/fi/islamic.js.uncompressed.js +119 -83
  177. data/vendor/assets/javascripts/dojo/cldr/nls/fi/number.js +1 -1
  178. data/vendor/assets/javascripts/dojo/cldr/nls/fi/number.js.uncompressed.js +9 -10
  179. data/vendor/assets/javascripts/dojo/cldr/nls/fr-ch/gregorian.js +1 -1
  180. data/vendor/assets/javascripts/dojo/cldr/nls/fr-ch/gregorian.js.uncompressed.js +2 -2
  181. data/vendor/assets/javascripts/dojo/cldr/nls/fr-ch/number.js +1 -1
  182. data/vendor/assets/javascripts/dojo/cldr/nls/fr-ch/number.js.uncompressed.js +2 -2
  183. data/vendor/assets/javascripts/dojo/cldr/nls/fr/buddhist.js +8 -0
  184. data/vendor/assets/javascripts/dojo/cldr/nls/fr/buddhist.js.uncompressed.js +160 -0
  185. data/vendor/assets/javascripts/dojo/cldr/nls/fr/currency.js +1 -1
  186. data/vendor/assets/javascripts/dojo/cldr/nls/fr/currency.js.uncompressed.js +11 -12
  187. data/vendor/assets/javascripts/dojo/cldr/nls/fr/gregorian.js +1 -1
  188. data/vendor/assets/javascripts/dojo/cldr/nls/fr/gregorian.js.uncompressed.js +171 -157
  189. data/vendor/assets/javascripts/dojo/cldr/nls/fr/hebrew.js +8 -0
  190. data/vendor/assets/javascripts/dojo/cldr/nls/fr/hebrew.js.uncompressed.js +139 -0
  191. data/vendor/assets/javascripts/dojo/cldr/nls/fr/islamic.js +8 -0
  192. data/vendor/assets/javascripts/dojo/cldr/nls/fr/islamic.js.uncompressed.js +177 -0
  193. data/vendor/assets/javascripts/dojo/cldr/nls/fr/number.js +1 -1
  194. data/vendor/assets/javascripts/dojo/cldr/nls/fr/number.js.uncompressed.js +9 -10
  195. data/vendor/assets/javascripts/dojo/cldr/nls/gregorian.js +1 -1
  196. data/vendor/assets/javascripts/dojo/cldr/nls/gregorian.js.uncompressed.js +127 -125
  197. data/vendor/assets/javascripts/dojo/cldr/nls/he/currency.js +1 -1
  198. data/vendor/assets/javascripts/dojo/cldr/nls/he/currency.js.uncompressed.js +6 -6
  199. data/vendor/assets/javascripts/dojo/cldr/nls/he/gregorian.js +1 -1
  200. data/vendor/assets/javascripts/dojo/cldr/nls/he/gregorian.js.uncompressed.js +168 -140
  201. data/vendor/assets/javascripts/dojo/cldr/nls/he/hebrew.js +1 -1
  202. data/vendor/assets/javascripts/dojo/cldr/nls/he/hebrew.js.uncompressed.js +83 -40
  203. data/vendor/assets/javascripts/dojo/cldr/nls/he/islamic.js +1 -1
  204. data/vendor/assets/javascripts/dojo/cldr/nls/he/islamic.js.uncompressed.js +56 -40
  205. data/vendor/assets/javascripts/dojo/cldr/nls/he/number.js +1 -1
  206. data/vendor/assets/javascripts/dojo/cldr/nls/he/number.js.uncompressed.js +9 -10
  207. data/vendor/assets/javascripts/dojo/cldr/nls/hebrew.js +1 -1
  208. data/vendor/assets/javascripts/dojo/cldr/nls/hebrew.js.uncompressed.js +138 -132
  209. data/vendor/assets/javascripts/dojo/cldr/nls/hu/buddhist.js +8 -0
  210. data/vendor/assets/javascripts/dojo/cldr/nls/hu/buddhist.js.uncompressed.js +209 -0
  211. data/vendor/assets/javascripts/dojo/cldr/nls/hu/currency.js +1 -1
  212. data/vendor/assets/javascripts/dojo/cldr/nls/hu/currency.js.uncompressed.js +7 -7
  213. data/vendor/assets/javascripts/dojo/cldr/nls/hu/gregorian.js +1 -1
  214. data/vendor/assets/javascripts/dojo/cldr/nls/hu/gregorian.js.uncompressed.js +161 -138
  215. data/vendor/assets/javascripts/dojo/cldr/nls/hu/hebrew.js +8 -0
  216. data/vendor/assets/javascripts/dojo/cldr/nls/hu/hebrew.js.uncompressed.js +187 -0
  217. data/vendor/assets/javascripts/dojo/cldr/nls/hu/islamic.js +8 -0
  218. data/vendor/assets/javascripts/dojo/cldr/nls/hu/islamic.js.uncompressed.js +199 -0
  219. data/vendor/assets/javascripts/dojo/cldr/nls/hu/number.js +1 -1
  220. data/vendor/assets/javascripts/dojo/cldr/nls/hu/number.js.uncompressed.js +8 -9
  221. data/vendor/assets/javascripts/dojo/cldr/nls/islamic.js +1 -1
  222. data/vendor/assets/javascripts/dojo/cldr/nls/islamic.js.uncompressed.js +137 -132
  223. data/vendor/assets/javascripts/dojo/cldr/nls/it/buddhist.js +8 -0
  224. data/vendor/assets/javascripts/dojo/cldr/nls/it/buddhist.js.uncompressed.js +192 -0
  225. data/vendor/assets/javascripts/dojo/cldr/nls/it/currency.js +1 -1
  226. data/vendor/assets/javascripts/dojo/cldr/nls/it/currency.js.uncompressed.js +6 -6
  227. data/vendor/assets/javascripts/dojo/cldr/nls/it/gregorian.js +1 -1
  228. data/vendor/assets/javascripts/dojo/cldr/nls/it/gregorian.js.uncompressed.js +161 -146
  229. data/vendor/assets/javascripts/dojo/cldr/nls/it/islamic.js +8 -0
  230. data/vendor/assets/javascripts/dojo/cldr/nls/it/islamic.js.uncompressed.js +104 -0
  231. data/vendor/assets/javascripts/dojo/cldr/nls/it/number.js +1 -1
  232. data/vendor/assets/javascripts/dojo/cldr/nls/it/number.js.uncompressed.js +9 -3
  233. data/vendor/assets/javascripts/dojo/cldr/nls/ja/buddhist.js +8 -0
  234. data/vendor/assets/javascripts/dojo/cldr/nls/ja/buddhist.js.uncompressed.js +101 -0
  235. data/vendor/assets/javascripts/dojo/cldr/nls/ja/currency.js +1 -1
  236. data/vendor/assets/javascripts/dojo/cldr/nls/ja/currency.js.uncompressed.js +8 -8
  237. data/vendor/assets/javascripts/dojo/cldr/nls/ja/gregorian.js +1 -1
  238. data/vendor/assets/javascripts/dojo/cldr/nls/ja/gregorian.js.uncompressed.js +159 -139
  239. data/vendor/assets/javascripts/dojo/cldr/nls/ja/hebrew.js +8 -0
  240. data/vendor/assets/javascripts/dojo/cldr/nls/ja/hebrew.js.uncompressed.js +168 -0
  241. data/vendor/assets/javascripts/dojo/cldr/nls/ja/islamic.js +8 -0
  242. data/vendor/assets/javascripts/dojo/cldr/nls/ja/islamic.js.uncompressed.js +128 -0
  243. data/vendor/assets/javascripts/dojo/cldr/nls/ja/number.js +1 -1
  244. data/vendor/assets/javascripts/dojo/cldr/nls/ja/number.js.uncompressed.js +5 -3
  245. data/vendor/assets/javascripts/dojo/cldr/nls/ko/buddhist.js +8 -0
  246. data/vendor/assets/javascripts/dojo/cldr/nls/ko/buddhist.js.uncompressed.js +127 -0
  247. data/vendor/assets/javascripts/dojo/cldr/nls/ko/currency.js +1 -1
  248. data/vendor/assets/javascripts/dojo/cldr/nls/ko/currency.js.uncompressed.js +6 -6
  249. data/vendor/assets/javascripts/dojo/cldr/nls/ko/gregorian.js +1 -1
  250. data/vendor/assets/javascripts/dojo/cldr/nls/ko/gregorian.js.uncompressed.js +153 -137
  251. data/vendor/assets/javascripts/dojo/cldr/nls/ko/number.js +1 -1
  252. data/vendor/assets/javascripts/dojo/cldr/nls/ko/number.js.uncompressed.js +9 -10
  253. data/vendor/assets/javascripts/dojo/cldr/nls/nb/buddhist.js +8 -0
  254. data/vendor/assets/javascripts/dojo/cldr/nls/nb/buddhist.js.uncompressed.js +206 -0
  255. data/vendor/assets/javascripts/dojo/cldr/nls/nb/currency.js +1 -1
  256. data/vendor/assets/javascripts/dojo/cldr/nls/nb/currency.js.uncompressed.js +6 -14
  257. data/vendor/assets/javascripts/dojo/cldr/nls/nb/gregorian.js +1 -1
  258. data/vendor/assets/javascripts/dojo/cldr/nls/nb/gregorian.js.uncompressed.js +176 -153
  259. data/vendor/assets/javascripts/dojo/cldr/nls/nb/islamic.js +8 -0
  260. data/vendor/assets/javascripts/dojo/cldr/nls/nb/islamic.js.uncompressed.js +133 -0
  261. data/vendor/assets/javascripts/dojo/cldr/nls/nb/number.js +1 -1
  262. data/vendor/assets/javascripts/dojo/cldr/nls/nb/number.js.uncompressed.js +9 -10
  263. data/vendor/assets/javascripts/dojo/cldr/nls/nl/buddhist.js +8 -0
  264. data/vendor/assets/javascripts/dojo/cldr/nls/nl/buddhist.js.uncompressed.js +133 -0
  265. data/vendor/assets/javascripts/dojo/cldr/nls/nl/currency.js +1 -1
  266. data/vendor/assets/javascripts/dojo/cldr/nls/nl/currency.js.uncompressed.js +6 -6
  267. data/vendor/assets/javascripts/dojo/cldr/nls/nl/gregorian.js +1 -1
  268. data/vendor/assets/javascripts/dojo/cldr/nls/nl/gregorian.js.uncompressed.js +180 -162
  269. data/vendor/assets/javascripts/dojo/cldr/nls/nl/hebrew.js +8 -0
  270. data/vendor/assets/javascripts/dojo/cldr/nls/nl/hebrew.js.uncompressed.js +123 -0
  271. data/vendor/assets/javascripts/dojo/cldr/nls/nl/islamic.js +8 -0
  272. data/vendor/assets/javascripts/dojo/cldr/nls/nl/islamic.js.uncompressed.js +163 -0
  273. data/vendor/assets/javascripts/dojo/cldr/nls/nl/number.js +1 -1
  274. data/vendor/assets/javascripts/dojo/cldr/nls/nl/number.js.uncompressed.js +9 -10
  275. data/vendor/assets/javascripts/dojo/cldr/nls/number.js +1 -1
  276. data/vendor/assets/javascripts/dojo/cldr/nls/number.js.uncompressed.js +17 -19
  277. data/vendor/assets/javascripts/dojo/cldr/nls/pl/buddhist.js +8 -0
  278. data/vendor/assets/javascripts/dojo/cldr/nls/pl/buddhist.js.uncompressed.js +203 -0
  279. data/vendor/assets/javascripts/dojo/cldr/nls/pl/currency.js +1 -1
  280. data/vendor/assets/javascripts/dojo/cldr/nls/pl/currency.js.uncompressed.js +6 -6
  281. data/vendor/assets/javascripts/dojo/cldr/nls/pl/gregorian.js +1 -1
  282. data/vendor/assets/javascripts/dojo/cldr/nls/pl/gregorian.js.uncompressed.js +169 -149
  283. data/vendor/assets/javascripts/dojo/cldr/nls/pl/hebrew.js +8 -0
  284. data/vendor/assets/javascripts/dojo/cldr/nls/pl/hebrew.js.uncompressed.js +166 -0
  285. data/vendor/assets/javascripts/dojo/cldr/nls/pl/islamic.js +8 -0
  286. data/vendor/assets/javascripts/dojo/cldr/nls/pl/islamic.js.uncompressed.js +196 -0
  287. data/vendor/assets/javascripts/dojo/cldr/nls/pl/number.js +1 -1
  288. data/vendor/assets/javascripts/dojo/cldr/nls/pl/number.js.uncompressed.js +9 -10
  289. data/vendor/assets/javascripts/dojo/cldr/nls/pt-pt/buddhist.js +8 -0
  290. data/vendor/assets/javascripts/dojo/cldr/nls/pt-pt/buddhist.js.uncompressed.js +127 -0
  291. data/vendor/assets/javascripts/dojo/cldr/nls/pt-pt/currency.js +8 -0
  292. data/vendor/assets/javascripts/dojo/cldr/nls/pt-pt/currency.js.uncompressed.js +8 -0
  293. data/vendor/assets/javascripts/dojo/cldr/nls/pt-pt/gregorian.js +1 -1
  294. data/vendor/assets/javascripts/dojo/cldr/nls/pt-pt/gregorian.js.uncompressed.js +78 -62
  295. data/vendor/assets/javascripts/dojo/cldr/nls/pt-pt/islamic.js +8 -0
  296. data/vendor/assets/javascripts/dojo/cldr/nls/pt-pt/islamic.js.uncompressed.js +82 -0
  297. data/vendor/assets/javascripts/dojo/cldr/nls/pt-pt/number.js +1 -1
  298. data/vendor/assets/javascripts/dojo/cldr/nls/pt-pt/number.js.uncompressed.js +3 -2
  299. data/vendor/assets/javascripts/dojo/cldr/nls/pt/buddhist.js +8 -0
  300. data/vendor/assets/javascripts/dojo/cldr/nls/pt/buddhist.js.uncompressed.js +130 -0
  301. data/vendor/assets/javascripts/dojo/cldr/nls/pt/currency.js +1 -1
  302. data/vendor/assets/javascripts/dojo/cldr/nls/pt/currency.js.uncompressed.js +6 -6
  303. data/vendor/assets/javascripts/dojo/cldr/nls/pt/gregorian.js +1 -1
  304. data/vendor/assets/javascripts/dojo/cldr/nls/pt/gregorian.js.uncompressed.js +185 -166
  305. data/vendor/assets/javascripts/dojo/cldr/nls/pt/hebrew.js +8 -0
  306. data/vendor/assets/javascripts/dojo/cldr/nls/pt/hebrew.js.uncompressed.js +137 -0
  307. data/vendor/assets/javascripts/dojo/cldr/nls/pt/islamic.js +8 -0
  308. data/vendor/assets/javascripts/dojo/cldr/nls/pt/islamic.js.uncompressed.js +101 -0
  309. data/vendor/assets/javascripts/dojo/cldr/nls/pt/number.js +1 -1
  310. data/vendor/assets/javascripts/dojo/cldr/nls/pt/number.js.uncompressed.js +9 -10
  311. data/vendor/assets/javascripts/dojo/cldr/nls/ro/buddhist.js +1 -1
  312. data/vendor/assets/javascripts/dojo/cldr/nls/ro/buddhist.js.uncompressed.js +148 -62
  313. data/vendor/assets/javascripts/dojo/cldr/nls/ro/currency.js +1 -1
  314. data/vendor/assets/javascripts/dojo/cldr/nls/ro/currency.js.uncompressed.js +6 -5
  315. data/vendor/assets/javascripts/dojo/cldr/nls/ro/gregorian.js +1 -1
  316. data/vendor/assets/javascripts/dojo/cldr/nls/ro/gregorian.js.uncompressed.js +170 -159
  317. data/vendor/assets/javascripts/dojo/cldr/nls/ro/hebrew.js +8 -0
  318. data/vendor/assets/javascripts/dojo/cldr/nls/ro/hebrew.js.uncompressed.js +169 -0
  319. data/vendor/assets/javascripts/dojo/cldr/nls/ro/islamic.js +8 -0
  320. data/vendor/assets/javascripts/dojo/cldr/nls/ro/islamic.js.uncompressed.js +117 -0
  321. data/vendor/assets/javascripts/dojo/cldr/nls/ro/number.js +1 -1
  322. data/vendor/assets/javascripts/dojo/cldr/nls/ro/number.js.uncompressed.js +9 -10
  323. data/vendor/assets/javascripts/dojo/cldr/nls/ru/buddhist.js +8 -0
  324. data/vendor/assets/javascripts/dojo/cldr/nls/ru/buddhist.js.uncompressed.js +203 -0
  325. data/vendor/assets/javascripts/dojo/cldr/nls/ru/currency.js +1 -1
  326. data/vendor/assets/javascripts/dojo/cldr/nls/ru/currency.js.uncompressed.js +7 -6
  327. data/vendor/assets/javascripts/dojo/cldr/nls/ru/gregorian.js +1 -1
  328. data/vendor/assets/javascripts/dojo/cldr/nls/ru/gregorian.js.uncompressed.js +184 -155
  329. data/vendor/assets/javascripts/dojo/cldr/nls/ru/hebrew.js +8 -0
  330. data/vendor/assets/javascripts/dojo/cldr/nls/ru/hebrew.js.uncompressed.js +169 -0
  331. data/vendor/assets/javascripts/dojo/cldr/nls/ru/islamic.js +8 -0
  332. data/vendor/assets/javascripts/dojo/cldr/nls/ru/islamic.js.uncompressed.js +197 -0
  333. data/vendor/assets/javascripts/dojo/cldr/nls/ru/number.js +1 -1
  334. data/vendor/assets/javascripts/dojo/cldr/nls/ru/number.js.uncompressed.js +10 -10
  335. data/vendor/assets/javascripts/dojo/cldr/nls/sk/currency.js +1 -1
  336. data/vendor/assets/javascripts/dojo/cldr/nls/sk/currency.js.uncompressed.js +7 -7
  337. data/vendor/assets/javascripts/dojo/cldr/nls/sk/gregorian.js +1 -1
  338. data/vendor/assets/javascripts/dojo/cldr/nls/sk/gregorian.js.uncompressed.js +172 -148
  339. data/vendor/assets/javascripts/dojo/cldr/nls/sk/number.js +1 -1
  340. data/vendor/assets/javascripts/dojo/cldr/nls/sk/number.js.uncompressed.js +5 -2
  341. data/vendor/assets/javascripts/dojo/cldr/nls/sl/currency.js +1 -1
  342. data/vendor/assets/javascripts/dojo/cldr/nls/sl/currency.js.uncompressed.js +7 -7
  343. data/vendor/assets/javascripts/dojo/cldr/nls/sl/gregorian.js +1 -1
  344. data/vendor/assets/javascripts/dojo/cldr/nls/sl/gregorian.js.uncompressed.js +157 -134
  345. data/vendor/assets/javascripts/dojo/cldr/nls/sl/number.js +1 -1
  346. data/vendor/assets/javascripts/dojo/cldr/nls/sl/number.js.uncompressed.js +9 -10
  347. data/vendor/assets/javascripts/dojo/cldr/nls/sv/buddhist.js +8 -0
  348. data/vendor/assets/javascripts/dojo/cldr/nls/sv/buddhist.js.uncompressed.js +209 -0
  349. data/vendor/assets/javascripts/dojo/cldr/nls/sv/currency.js +1 -1
  350. data/vendor/assets/javascripts/dojo/cldr/nls/sv/currency.js.uncompressed.js +7 -9
  351. data/vendor/assets/javascripts/dojo/cldr/nls/sv/gregorian.js +1 -1
  352. data/vendor/assets/javascripts/dojo/cldr/nls/sv/gregorian.js.uncompressed.js +164 -152
  353. data/vendor/assets/javascripts/dojo/cldr/nls/sv/hebrew.js +8 -0
  354. data/vendor/assets/javascripts/dojo/cldr/nls/sv/hebrew.js.uncompressed.js +167 -0
  355. data/vendor/assets/javascripts/dojo/cldr/nls/sv/islamic.js +8 -0
  356. data/vendor/assets/javascripts/dojo/cldr/nls/sv/islamic.js.uncompressed.js +189 -0
  357. data/vendor/assets/javascripts/dojo/cldr/nls/sv/number.js +1 -1
  358. data/vendor/assets/javascripts/dojo/cldr/nls/sv/number.js.uncompressed.js +9 -10
  359. data/vendor/assets/javascripts/dojo/cldr/nls/th/buddhist.js +1 -1
  360. data/vendor/assets/javascripts/dojo/cldr/nls/th/buddhist.js.uncompressed.js +91 -65
  361. data/vendor/assets/javascripts/dojo/cldr/nls/th/currency.js +1 -1
  362. data/vendor/assets/javascripts/dojo/cldr/nls/th/currency.js.uncompressed.js +7 -7
  363. data/vendor/assets/javascripts/dojo/cldr/nls/th/gregorian.js +1 -1
  364. data/vendor/assets/javascripts/dojo/cldr/nls/th/gregorian.js.uncompressed.js +161 -138
  365. data/vendor/assets/javascripts/dojo/cldr/nls/th/hebrew.js +8 -0
  366. data/vendor/assets/javascripts/dojo/cldr/nls/th/hebrew.js.uncompressed.js +139 -0
  367. data/vendor/assets/javascripts/dojo/cldr/nls/th/islamic.js +8 -0
  368. data/vendor/assets/javascripts/dojo/cldr/nls/th/islamic.js.uncompressed.js +134 -0
  369. data/vendor/assets/javascripts/dojo/cldr/nls/th/number.js +1 -1
  370. data/vendor/assets/javascripts/dojo/cldr/nls/th/number.js.uncompressed.js +9 -10
  371. data/vendor/assets/javascripts/dojo/cldr/nls/tr/buddhist.js +8 -0
  372. data/vendor/assets/javascripts/dojo/cldr/nls/tr/buddhist.js.uncompressed.js +203 -0
  373. data/vendor/assets/javascripts/dojo/cldr/nls/tr/currency.js +1 -1
  374. data/vendor/assets/javascripts/dojo/cldr/nls/tr/currency.js.uncompressed.js +8 -8
  375. data/vendor/assets/javascripts/dojo/cldr/nls/tr/gregorian.js +1 -1
  376. data/vendor/assets/javascripts/dojo/cldr/nls/tr/gregorian.js.uncompressed.js +160 -146
  377. data/vendor/assets/javascripts/dojo/cldr/nls/tr/hebrew.js +8 -0
  378. data/vendor/assets/javascripts/dojo/cldr/nls/tr/hebrew.js.uncompressed.js +161 -0
  379. data/vendor/assets/javascripts/dojo/cldr/nls/tr/islamic.js +8 -0
  380. data/vendor/assets/javascripts/dojo/cldr/nls/tr/islamic.js.uncompressed.js +181 -0
  381. data/vendor/assets/javascripts/dojo/cldr/nls/tr/number.js +1 -1
  382. data/vendor/assets/javascripts/dojo/cldr/nls/tr/number.js.uncompressed.js +9 -10
  383. data/vendor/assets/javascripts/dojo/cldr/nls/zh-hant/buddhist.js +1 -1
  384. data/vendor/assets/javascripts/dojo/cldr/nls/zh-hant/buddhist.js.uncompressed.js +141 -95
  385. data/vendor/assets/javascripts/dojo/cldr/nls/zh-hant/currency.js +1 -1
  386. data/vendor/assets/javascripts/dojo/cldr/nls/zh-hant/currency.js.uncompressed.js +7 -6
  387. data/vendor/assets/javascripts/dojo/cldr/nls/zh-hant/gregorian.js +1 -1
  388. data/vendor/assets/javascripts/dojo/cldr/nls/zh-hant/gregorian.js.uncompressed.js +144 -146
  389. data/vendor/assets/javascripts/dojo/cldr/nls/zh-hant/hebrew.js +8 -0
  390. data/vendor/assets/javascripts/dojo/cldr/nls/zh-hant/hebrew.js.uncompressed.js +182 -0
  391. data/vendor/assets/javascripts/dojo/cldr/nls/zh-hant/islamic.js +1 -1
  392. data/vendor/assets/javascripts/dojo/cldr/nls/zh-hant/islamic.js.uncompressed.js +153 -54
  393. data/vendor/assets/javascripts/dojo/cldr/nls/zh-hant/number.js +1 -1
  394. data/vendor/assets/javascripts/dojo/cldr/nls/zh-hant/number.js.uncompressed.js +2 -0
  395. data/vendor/assets/javascripts/dojo/cldr/nls/zh-hk/currency.js +1 -1
  396. data/vendor/assets/javascripts/dojo/cldr/nls/zh-hk/currency.js.uncompressed.js +6 -6
  397. data/vendor/assets/javascripts/dojo/cldr/nls/zh-hk/gregorian.js +1 -1
  398. data/vendor/assets/javascripts/dojo/cldr/nls/zh-hk/gregorian.js.uncompressed.js +34 -37
  399. data/vendor/assets/javascripts/dojo/cldr/nls/zh-hk/number.js +1 -1
  400. data/vendor/assets/javascripts/dojo/cldr/nls/zh-hk/number.js.uncompressed.js +1 -1
  401. data/vendor/assets/javascripts/dojo/cldr/nls/zh-tw/currency.js +1 -1
  402. data/vendor/assets/javascripts/dojo/cldr/nls/zh-tw/currency.js.uncompressed.js +5 -4
  403. data/vendor/assets/javascripts/dojo/cldr/nls/zh-tw/gregorian.js +1 -1
  404. data/vendor/assets/javascripts/dojo/cldr/nls/zh-tw/gregorian.js.uncompressed.js +51 -49
  405. data/vendor/assets/javascripts/dojo/cldr/nls/zh-tw/number.js +8 -0
  406. data/vendor/assets/javascripts/dojo/cldr/nls/zh-tw/number.js.uncompressed.js +7 -0
  407. data/vendor/assets/javascripts/dojo/cldr/nls/zh/buddhist.js +8 -0
  408. data/vendor/assets/javascripts/dojo/cldr/nls/zh/buddhist.js.uncompressed.js +205 -0
  409. data/vendor/assets/javascripts/dojo/cldr/nls/zh/currency.js +1 -1
  410. data/vendor/assets/javascripts/dojo/cldr/nls/zh/currency.js.uncompressed.js +6 -6
  411. data/vendor/assets/javascripts/dojo/cldr/nls/zh/gregorian.js +1 -1
  412. data/vendor/assets/javascripts/dojo/cldr/nls/zh/gregorian.js.uncompressed.js +152 -135
  413. data/vendor/assets/javascripts/dojo/cldr/nls/zh/hebrew.js +8 -0
  414. data/vendor/assets/javascripts/dojo/cldr/nls/zh/hebrew.js.uncompressed.js +181 -0
  415. data/vendor/assets/javascripts/dojo/cldr/nls/zh/islamic.js +8 -0
  416. data/vendor/assets/javascripts/dojo/cldr/nls/zh/islamic.js.uncompressed.js +137 -0
  417. data/vendor/assets/javascripts/dojo/cldr/nls/zh/number.js +1 -1
  418. data/vendor/assets/javascripts/dojo/cldr/nls/zh/number.js.uncompressed.js +4 -3
  419. data/vendor/assets/javascripts/dojo/cldr/supplemental.js +25 -28
  420. data/vendor/assets/javascripts/dojo/cldr/supplemental.js.uncompressed.js +46 -39
  421. data/vendor/assets/javascripts/dojo/colors.js +2 -1
  422. data/vendor/assets/javascripts/dojo/colors.js.uncompressed.js +22 -22
  423. data/vendor/assets/javascripts/dojo/cookie.js.uncompressed.js +30 -30
  424. data/vendor/assets/javascripts/dojo/currency.js +14 -13
  425. data/vendor/assets/javascripts/dojo/currency.js.uncompressed.js +64 -66
  426. data/vendor/assets/javascripts/dojo/data/ItemFileReadStore.js +138 -138
  427. data/vendor/assets/javascripts/dojo/data/ItemFileReadStore.js.uncompressed.js +251 -245
  428. data/vendor/assets/javascripts/dojo/data/ItemFileWriteStore.js +1 -1
  429. data/vendor/assets/javascripts/dojo/data/ItemFileWriteStore.js.uncompressed.js +80 -69
  430. data/vendor/assets/javascripts/dojo/data/ObjectStore.js +176 -169
  431. data/vendor/assets/javascripts/dojo/data/ObjectStore.js.uncompressed.js +122 -83
  432. data/vendor/assets/javascripts/dojo/data/api/Identity.js +6 -7
  433. data/vendor/assets/javascripts/dojo/data/api/Identity.js.uncompressed.js +35 -33
  434. data/vendor/assets/javascripts/dojo/data/api/Item.js +10 -0
  435. data/vendor/assets/javascripts/dojo/data/api/Item.js.uncompressed.js +13 -0
  436. data/vendor/assets/javascripts/dojo/data/api/Notification.js +5 -6
  437. data/vendor/assets/javascripts/dojo/data/api/Notification.js.uncompressed.js +39 -51
  438. data/vendor/assets/javascripts/dojo/data/api/Read.js +2 -3
  439. data/vendor/assets/javascripts/dojo/data/api/Read.js.uncompressed.js +85 -84
  440. data/vendor/assets/javascripts/dojo/data/api/Request.js +2 -3
  441. data/vendor/assets/javascripts/dojo/data/api/Request.js.uncompressed.js +10 -13
  442. data/vendor/assets/javascripts/dojo/data/api/Write.js +9 -10
  443. data/vendor/assets/javascripts/dojo/data/api/Write.js.uncompressed.js +28 -43
  444. data/vendor/assets/javascripts/dojo/data/util/filter.js +3 -2
  445. data/vendor/assets/javascripts/dojo/data/util/filter.js.uncompressed.js +19 -16
  446. data/vendor/assets/javascripts/dojo/data/util/simpleFetch.js +37 -40
  447. data/vendor/assets/javascripts/dojo/data/util/simpleFetch.js.uncompressed.js +202 -57
  448. data/vendor/assets/javascripts/dojo/data/util/sorter.js +3 -2
  449. data/vendor/assets/javascripts/dojo/data/util/sorter.js.uncompressed.js +16 -16
  450. data/vendor/assets/javascripts/dojo/date.js +106 -105
  451. data/vendor/assets/javascripts/dojo/date.js.uncompressed.js +46 -47
  452. data/vendor/assets/javascripts/dojo/date/locale.js +196 -183
  453. data/vendor/assets/javascripts/dojo/date/locale.js.uncompressed.js +105 -81
  454. data/vendor/assets/javascripts/dojo/date/stamp.js +10 -9
  455. data/vendor/assets/javascripts/dojo/date/stamp.js.uncompressed.js +40 -42
  456. data/vendor/assets/javascripts/dojo/dnd/AutoSource.js +2 -2
  457. data/vendor/assets/javascripts/dojo/dnd/AutoSource.js.uncompressed.js +3 -4
  458. data/vendor/assets/javascripts/dojo/dnd/Avatar.js +32 -30
  459. data/vendor/assets/javascripts/dojo/dnd/Avatar.js.uncompressed.js +45 -34
  460. data/vendor/assets/javascripts/dojo/dnd/Container.js +99 -96
  461. data/vendor/assets/javascripts/dojo/dnd/Container.js.uncompressed.js +123 -99
  462. data/vendor/assets/javascripts/dojo/dnd/Manager.js +58 -52
  463. data/vendor/assets/javascripts/dojo/dnd/Manager.js.uncompressed.js +52 -42
  464. data/vendor/assets/javascripts/dojo/dnd/Moveable.js +41 -39
  465. data/vendor/assets/javascripts/dojo/dnd/Moveable.js.uncompressed.js +72 -60
  466. data/vendor/assets/javascripts/dojo/dnd/Mover.js +19 -17
  467. data/vendor/assets/javascripts/dojo/dnd/Mover.js.uncompressed.js +37 -32
  468. data/vendor/assets/javascripts/dojo/dnd/Selector.js +52 -50
  469. data/vendor/assets/javascripts/dojo/dnd/Selector.js.uncompressed.js +51 -46
  470. data/vendor/assets/javascripts/dojo/dnd/Source.js +109 -106
  471. data/vendor/assets/javascripts/dojo/dnd/Source.js.uncompressed.js +60 -67
  472. data/vendor/assets/javascripts/dojo/dnd/Target.js +3 -3
  473. data/vendor/assets/javascripts/dojo/dnd/Target.js.uncompressed.js +7 -7
  474. data/vendor/assets/javascripts/dojo/dnd/TimedMoveable.js +19 -20
  475. data/vendor/assets/javascripts/dojo/dnd/TimedMoveable.js.uncompressed.js +9 -14
  476. data/vendor/assets/javascripts/dojo/dnd/autoscroll.js +48 -39
  477. data/vendor/assets/javascripts/dojo/dnd/autoscroll.js.uncompressed.js +77 -46
  478. data/vendor/assets/javascripts/dojo/dnd/common.js +11 -10
  479. data/vendor/assets/javascripts/dojo/dnd/common.js.uncompressed.js +19 -13
  480. data/vendor/assets/javascripts/dojo/dnd/move.js +31 -34
  481. data/vendor/assets/javascripts/dojo/dnd/move.js.uncompressed.js +31 -27
  482. data/vendor/assets/javascripts/dojo/dojo.js +12 -1869
  483. data/vendor/assets/javascripts/dojo/dojo.js.uncompressed.js +7168 -5874
  484. data/vendor/assets/javascripts/dojo/dojo.profile.js +6 -6
  485. data/vendor/assets/javascripts/dojo/dom-attr.js +30 -31
  486. data/vendor/assets/javascripts/dojo/dom-attr.js.uncompressed.js +71 -89
  487. data/vendor/assets/javascripts/dojo/dom-class.js.uncompressed.js +161 -155
  488. data/vendor/assets/javascripts/dojo/dom-construct.js +1 -1
  489. data/vendor/assets/javascripts/dojo/dom-construct.js.uncompressed.js +159 -202
  490. data/vendor/assets/javascripts/dojo/dom-form.js.uncompressed.js +60 -77
  491. data/vendor/assets/javascripts/dojo/dom-geometry.js +43 -45
  492. data/vendor/assets/javascripts/dojo/dom-geometry.js.uncompressed.js +257 -403
  493. data/vendor/assets/javascripts/dojo/dom-prop.js +36 -37
  494. data/vendor/assets/javascripts/dojo/dom-prop.js.uncompressed.js +33 -42
  495. data/vendor/assets/javascripts/dojo/dom-style.js +2 -2
  496. data/vendor/assets/javascripts/dojo/dom-style.js.uncompressed.js +127 -142
  497. data/vendor/assets/javascripts/dojo/dom.js +3 -1
  498. data/vendor/assets/javascripts/dojo/dom.js.uncompressed.js +77 -85
  499. data/vendor/assets/javascripts/dojo/domReady.js +2 -2
  500. data/vendor/assets/javascripts/dojo/domReady.js.uncompressed.js +4 -2
  501. data/vendor/assets/javascripts/dojo/errors/CancelError.js +10 -0
  502. data/vendor/assets/javascripts/dojo/errors/CancelError.js.uncompressed.js +13 -0
  503. data/vendor/assets/javascripts/dojo/errors/RequestError.js +12 -0
  504. data/vendor/assets/javascripts/dojo/errors/RequestError.js.uncompressed.js +15 -0
  505. data/vendor/assets/javascripts/dojo/errors/RequestTimeoutError.js +10 -0
  506. data/vendor/assets/javascripts/dojo/errors/RequestTimeoutError.js.uncompressed.js +15 -0
  507. data/vendor/assets/javascripts/dojo/errors/create.js +36 -0
  508. data/vendor/assets/javascripts/dojo/errors/create.js.uncompressed.js +41 -0
  509. data/vendor/assets/javascripts/dojo/fx.js.uncompressed.js +27 -34
  510. data/vendor/assets/javascripts/dojo/fx/Toggler.js.uncompressed.js +9 -11
  511. data/vendor/assets/javascripts/dojo/fx/easing.js.uncompressed.js +7 -15
  512. data/vendor/assets/javascripts/dojo/gears.js +10 -9
  513. data/vendor/assets/javascripts/dojo/gears.js.uncompressed.js +18 -14
  514. data/vendor/assets/javascripts/dojo/has.js +35 -35
  515. data/vendor/assets/javascripts/dojo/has.js.uncompressed.js +55 -60
  516. data/vendor/assets/javascripts/dojo/hash.js +74 -74
  517. data/vendor/assets/javascripts/dojo/hash.js.uncompressed.js +62 -49
  518. data/vendor/assets/javascripts/dojo/hccss.js +23 -0
  519. data/vendor/assets/javascripts/dojo/hccss.js.uncompressed.js +51 -0
  520. data/vendor/assets/javascripts/dojo/html.js +81 -64
  521. data/vendor/assets/javascripts/dojo/html.js.uncompressed.js +107 -76
  522. data/vendor/assets/javascripts/dojo/i18n.js +155 -139
  523. data/vendor/assets/javascripts/dojo/i18n.js.uncompressed.js +234 -198
  524. data/vendor/assets/javascripts/dojo/io-query.js +28 -30
  525. data/vendor/assets/javascripts/dojo/io-query.js.uncompressed.js +14 -15
  526. data/vendor/assets/javascripts/dojo/io/iframe.js +49 -207
  527. data/vendor/assets/javascripts/dojo/io/iframe.js.uncompressed.js +127 -313
  528. data/vendor/assets/javascripts/dojo/io/script.js +60 -84
  529. data/vendor/assets/javascripts/dojo/io/script.js.uncompressed.js +121 -128
  530. data/vendor/assets/javascripts/dojo/jaxer.js +2 -1
  531. data/vendor/assets/javascripts/dojo/jaxer.js.uncompressed.js +2 -4
  532. data/vendor/assets/javascripts/dojo/json.js +2 -0
  533. data/vendor/assets/javascripts/dojo/json.js.uncompressed.js +38 -35
  534. data/vendor/assets/javascripts/dojo/keys.js +2 -2
  535. data/vendor/assets/javascripts/dojo/keys.js.uncompressed.js +73 -76
  536. data/vendor/assets/javascripts/dojo/main.js +10 -10
  537. data/vendor/assets/javascripts/dojo/main.js.uncompressed.js +13 -11
  538. data/vendor/assets/javascripts/dojo/mouse.js +25 -4
  539. data/vendor/assets/javascripts/dojo/mouse.js.uncompressed.js +78 -34
  540. data/vendor/assets/javascripts/dojo/nls/az/colors.js.uncompressed.js +2 -4
  541. data/vendor/assets/javascripts/dojo/nls/colors.js.uncompressed.js +1 -1
  542. data/vendor/assets/javascripts/dojo/nls/he/colors.js.uncompressed.js +2 -5
  543. data/vendor/assets/javascripts/dojo/nls/hr/colors.js +1 -1
  544. data/vendor/assets/javascripts/dojo/nls/hr/colors.js.uncompressed.js +149 -149
  545. data/vendor/assets/javascripts/dojo/nls/sl/colors.js +1 -1
  546. data/vendor/assets/javascripts/dojo/nls/sl/colors.js.uncompressed.js +7 -7
  547. data/vendor/assets/javascripts/dojo/node.js +18 -0
  548. data/vendor/assets/javascripts/dojo/node.js.uncompressed.js +27 -0
  549. data/vendor/assets/javascripts/dojo/number.js +38 -37
  550. data/vendor/assets/javascripts/dojo/number.js.uncompressed.js +94 -122
  551. data/vendor/assets/javascripts/dojo/on.js +146 -116
  552. data/vendor/assets/javascripts/dojo/on.js.uncompressed.js +135 -92
  553. data/vendor/assets/javascripts/dojo/package.json +1 -1
  554. data/vendor/assets/javascripts/dojo/parser.js +325 -200
  555. data/vendor/assets/javascripts/dojo/parser.js.uncompressed.js +677 -406
  556. data/vendor/assets/javascripts/dojo/promise/Promise.js +37 -0
  557. data/vendor/assets/javascripts/dojo/promise/Promise.js.uncompressed.js +133 -0
  558. data/vendor/assets/javascripts/dojo/promise/all.js +60 -0
  559. data/vendor/assets/javascripts/dojo/promise/all.js.uncompressed.js +76 -0
  560. data/vendor/assets/javascripts/dojo/promise/first.js +34 -0
  561. data/vendor/assets/javascripts/dojo/promise/first.js.uncompressed.js +49 -0
  562. data/vendor/assets/javascripts/dojo/promise/instrumentation.js +86 -0
  563. data/vendor/assets/javascripts/dojo/promise/instrumentation.js.uncompressed.js +103 -0
  564. data/vendor/assets/javascripts/dojo/promise/tracer.js +37 -0
  565. data/vendor/assets/javascripts/dojo/promise/tracer.js.uncompressed.js +85 -0
  566. data/vendor/assets/javascripts/dojo/query.js +8 -8
  567. data/vendor/assets/javascripts/dojo/query.js.uncompressed.js +206 -214
  568. data/vendor/assets/javascripts/dojo/ready.js +1 -7
  569. data/vendor/assets/javascripts/dojo/ready.js.uncompressed.js +31 -33
  570. data/vendor/assets/javascripts/dojo/regexp.js +14 -13
  571. data/vendor/assets/javascripts/dojo/regexp.js.uncompressed.js +15 -18
  572. data/vendor/assets/javascripts/dojo/request.js +10 -0
  573. data/vendor/assets/javascripts/dojo/request.js.uncompressed.js +75 -0
  574. data/vendor/assets/javascripts/dojo/request/default.js +28 -0
  575. data/vendor/assets/javascripts/dojo/request/default.js.uncompressed.js +32 -0
  576. data/vendor/assets/javascripts/dojo/request/handlers.js +47 -0
  577. data/vendor/assets/javascripts/dojo/request/handlers.js.uncompressed.js +62 -0
  578. data/vendor/assets/javascripts/dojo/request/iframe.js +290 -0
  579. data/vendor/assets/javascripts/dojo/request/iframe.js.uncompressed.js +429 -0
  580. data/vendor/assets/javascripts/dojo/request/node.js +81 -0
  581. data/vendor/assets/javascripts/dojo/request/node.js.uncompressed.js +188 -0
  582. data/vendor/assets/javascripts/dojo/request/notify.js +38 -0
  583. data/vendor/assets/javascripts/dojo/request/notify.js.uncompressed.js +73 -0
  584. data/vendor/assets/javascripts/dojo/request/registry.js +68 -0
  585. data/vendor/assets/javascripts/dojo/request/registry.js.uncompressed.js +85 -0
  586. data/vendor/assets/javascripts/dojo/request/script.js +111 -0
  587. data/vendor/assets/javascripts/dojo/request/script.js.uncompressed.js +211 -0
  588. data/vendor/assets/javascripts/dojo/request/util.js +113 -0
  589. data/vendor/assets/javascripts/dojo/request/util.js.uncompressed.js +145 -0
  590. data/vendor/assets/javascripts/dojo/request/watch.js +73 -0
  591. data/vendor/assets/javascripts/dojo/request/watch.js.uncompressed.js +109 -0
  592. data/vendor/assets/javascripts/dojo/request/xhr.js +184 -0
  593. data/vendor/assets/javascripts/dojo/request/xhr.js.uncompressed.js +317 -0
  594. data/vendor/assets/javascripts/dojo/resources/dnd.css +3 -3
  595. data/vendor/assets/javascripts/dojo/router.js +10 -0
  596. data/vendor/assets/javascripts/dojo/router.js.uncompressed.js +28 -0
  597. data/vendor/assets/javascripts/dojo/router/RouterBase.js +160 -0
  598. data/vendor/assets/javascripts/dojo/router/RouterBase.js.uncompressed.js +350 -0
  599. data/vendor/assets/javascripts/dojo/rpc/JsonService.js +20 -21
  600. data/vendor/assets/javascripts/dojo/rpc/JsonService.js.uncompressed.js +29 -27
  601. data/vendor/assets/javascripts/dojo/rpc/JsonpService.js +14 -15
  602. data/vendor/assets/javascripts/dojo/rpc/JsonpService.js.uncompressed.js +28 -29
  603. data/vendor/assets/javascripts/dojo/rpc/RpcService.js +50 -51
  604. data/vendor/assets/javascripts/dojo/rpc/RpcService.js.uncompressed.js +39 -36
  605. data/vendor/assets/javascripts/dojo/selector/_loader.js.uncompressed.js +4 -2
  606. data/vendor/assets/javascripts/dojo/selector/acme.js +442 -408
  607. data/vendor/assets/javascripts/dojo/selector/acme.js.uncompressed.js +160 -147
  608. data/vendor/assets/javascripts/dojo/selector/lite.js +136 -127
  609. data/vendor/assets/javascripts/dojo/selector/lite.js.uncompressed.js +62 -43
  610. data/vendor/assets/javascripts/dojo/sniff.js +41 -0
  611. data/vendor/assets/javascripts/dojo/sniff.js.uncompressed.js +70 -0
  612. data/vendor/assets/javascripts/dojo/store/Cache.js +7 -6
  613. data/vendor/assets/javascripts/dojo/store/Cache.js.uncompressed.js +48 -51
  614. data/vendor/assets/javascripts/dojo/store/DataStore.js +88 -65
  615. data/vendor/assets/javascripts/dojo/store/DataStore.js.uncompressed.js +48 -16
  616. data/vendor/assets/javascripts/dojo/store/JsonRest.js +44 -40
  617. data/vendor/assets/javascripts/dojo/store/JsonRest.js.uncompressed.js +74 -40
  618. data/vendor/assets/javascripts/dojo/store/Memory.js +30 -29
  619. data/vendor/assets/javascripts/dojo/store/Memory.js.uncompressed.js +40 -37
  620. data/vendor/assets/javascripts/dojo/store/Observable.js +90 -79
  621. data/vendor/assets/javascripts/dojo/store/Observable.js.uncompressed.js +35 -23
  622. data/vendor/assets/javascripts/dojo/store/README +5 -9
  623. data/vendor/assets/javascripts/dojo/store/api/Store.js +12 -24
  624. data/vendor/assets/javascripts/dojo/store/api/Store.js.uncompressed.js +31 -41
  625. data/vendor/assets/javascripts/dojo/store/util/QueryResults.js +4 -4
  626. data/vendor/assets/javascripts/dojo/store/util/QueryResults.js.uncompressed.js +13 -14
  627. data/vendor/assets/javascripts/dojo/store/util/SimpleQueryEngine.js +11 -10
  628. data/vendor/assets/javascripts/dojo/store/util/SimpleQueryEngine.js.uncompressed.js +18 -16
  629. data/vendor/assets/javascripts/dojo/string.js +23 -22
  630. data/vendor/assets/javascripts/dojo/string.js.uncompressed.js +38 -38
  631. data/vendor/assets/javascripts/dojo/text.js +50 -50
  632. data/vendor/assets/javascripts/dojo/text.js.uncompressed.js +129 -127
  633. data/vendor/assets/javascripts/dojo/topic.js.uncompressed.js +17 -12
  634. data/vendor/assets/javascripts/dojo/touch.js +35 -7
  635. data/vendor/assets/javascripts/dojo/touch.js.uncompressed.js +146 -34
  636. data/vendor/assets/javascripts/dojo/uacss.js +1 -1
  637. data/vendor/assets/javascripts/dojo/uacss.js.uncompressed.js +19 -10
  638. data/vendor/assets/javascripts/dojo/when.js +31 -0
  639. data/vendor/assets/javascripts/dojo/when.js.uncompressed.js +55 -0
  640. data/vendor/assets/javascripts/dojo/window.js +26 -27
  641. data/vendor/assets/javascripts/dojo/window.js.uncompressed.js +160 -161
  642. metadata +152 -6
  643. data/Gemfile +0 -4
  644. data/LICENSE +0 -22
  645. data/Rakefile +0 -3
  646. data/vendor/assets/javascripts/dojo/resources/_modules.js +0 -36
@@ -1,31 +1,31 @@
1
- define("dojo/i18n", ["./_base/kernel", "require", "./has", "./_base/array", "./_base/config", "./_base/lang", "./_base/xhr", "./json"],
2
- function(dojo, require, has, array, config, lang, xhr, json) {
1
+ define("dojo/i18n", ["./_base/kernel", "require", "./has", "./_base/array", "./_base/config", "./_base/lang", "./_base/xhr", "./json", "module"],
2
+ function(dojo, require, has, array, config, lang, xhr, json, module){
3
+
3
4
  // module:
4
5
  // dojo/i18n
5
- // summary:
6
- // This module implements the !dojo/i18n plugin and the v1.6- i18n API
7
- // description:
8
- // We choose to include our own plugin to leverage functionality already contained in dojo
9
- // and thereby reduce the size of the plugin compared to various loader implementations. Also, this
10
- // allows foreign AMD loaders to be used without their plugins.
11
-
12
6
 
13
7
  has.add("dojo-preload-i18n-Api",
14
8
  // if true, define the preload localizations machinery
15
9
  1
16
10
  );
17
11
 
18
- true || has.add("dojo-v1x-i18n-Api",
12
+ 1 || has.add("dojo-v1x-i18n-Api",
19
13
  // if true, define the v1.x i18n functions
20
14
  1
21
15
  );
22
16
 
23
17
  var
24
- thisModule= dojo.i18n=
25
- // the dojo.i18n module
26
- {},
18
+ thisModule = dojo.i18n =
19
+ {
20
+ // summary:
21
+ // This module implements the dojo/i18n! plugin and the v1.6- i18n API
22
+ // description:
23
+ // We choose to include our own plugin to leverage functionality already contained in dojo
24
+ // and thereby reduce the size of the plugin compared to various loader implementations. Also, this
25
+ // allows foreign AMD loaders to be used without their plugins.
26
+ },
27
27
 
28
- nlsRe=
28
+ nlsRe =
29
29
  // regexp for reconstructing the master bundle name from parts of the regexp match
30
30
  // nlsRe.exec("foo/bar/baz/nls/en-ca/foo") gives:
31
31
  // ["foo/bar/baz/nls/en-ca/foo", "foo/bar/baz/nls/", "/", "/", "en-ca", "foo"]
@@ -35,27 +35,31 @@ define("dojo/i18n", ["./_base/kernel", "require", "./has", "./_base/array", "./_
35
35
  // courtesy of http://requirejs.org
36
36
  /(^.*(^|\/)nls)(\/|$)([^\/]*)\/?([^\/]*)/,
37
37
 
38
- getAvailableLocales= function(
38
+ getAvailableLocales = function(
39
39
  root,
40
40
  locale,
41
41
  bundlePath,
42
42
  bundleName
43
43
  ){
44
- // return a vector of module ids containing all available locales with respect to the target locale
45
- // For example, assuming:
46
- // * the root bundle indicates specific bundles for "fr" and "fr-ca",
47
- // * bundlePath is "myPackage/nls"
48
- // * bundleName is "myBundle"
49
- // Then a locale argument of "fr-ca" would return
50
- // ["myPackage/nls/myBundle", "myPackage/nls/fr/myBundle", "myPackage/nls/fr-ca/myBundle"]
51
- // Notice that bundles are returned least-specific to most-specific, starting with the root.
44
+ // summary:
45
+ // return a vector of module ids containing all available locales with respect to the target locale
46
+ // For example, assuming:
47
+ //
48
+ // - the root bundle indicates specific bundles for "fr" and "fr-ca",
49
+ // - bundlePath is "myPackage/nls"
50
+ // - bundleName is "myBundle"
51
+ //
52
+ // Then a locale argument of "fr-ca" would return
52
53
  //
53
- // If root===false indicates we're working with a pre-AMD i18n bundle that doesn't tell about the available locales;
54
- // therefore, assume everything is available and get 404 errors that indicate a particular localization is not available
54
+ // ["myPackage/nls/myBundle", "myPackage/nls/fr/myBundle", "myPackage/nls/fr-ca/myBundle"]
55
55
  //
56
+ // Notice that bundles are returned least-specific to most-specific, starting with the root.
57
+ //
58
+ // If root===false indicates we're working with a pre-AMD i18n bundle that doesn't tell about the available locales;
59
+ // therefore, assume everything is available and get 404 errors that indicate a particular localization is not available
56
60
 
57
- for(var result= [bundlePath + bundleName], localeParts= locale.split("-"), current= "", i= 0; i<localeParts.length; i++){
58
- current+= (current ? "-" : "") + localeParts[i];
61
+ for(var result = [bundlePath + bundleName], localeParts = locale.split("-"), current = "", i = 0; i<localeParts.length; i++){
62
+ current += (current ? "-" : "") + localeParts[i];
59
63
  if(!root || root[current]){
60
64
  result.push(bundlePath + current + "/" + bundleName);
61
65
  }
@@ -63,38 +67,44 @@ define("dojo/i18n", ["./_base/kernel", "require", "./has", "./_base/array", "./_
63
67
  return result;
64
68
  },
65
69
 
66
- cache= {},
70
+ cache = {},
67
71
 
68
- getL10nName= dojo.getL10nName = function(moduleName, bundleName, locale){
72
+ getBundleName = function(moduleName, bundleName, locale){
69
73
  locale = locale ? locale.toLowerCase() : dojo.locale;
70
- moduleName = "dojo/i18n!" + moduleName.replace(/\./g, "/");
74
+ moduleName = moduleName.replace(/\./g, "/");
71
75
  bundleName = bundleName.replace(/\./g, "/");
72
76
  return (/root/i.test(locale)) ?
73
77
  (moduleName + "/nls/" + bundleName) :
74
78
  (moduleName + "/nls/" + locale + "/" + bundleName);
75
79
  },
76
80
 
81
+ getL10nName = dojo.getL10nName = function(moduleName, bundleName, locale){
82
+ return moduleName = module.id + "!" + getBundleName(moduleName, bundleName, locale);
83
+ },
84
+
77
85
  doLoad = function(require, bundlePathAndName, bundlePath, bundleName, locale, load){
78
- // get the root bundle which instructs which other bundles are required to construct the localized bundle
86
+ // summary:
87
+ // get the root bundle which instructs which other bundles are required to construct the localized bundle
79
88
  require([bundlePathAndName], function(root){
80
- var current= lang.clone(root.root),
81
- availableLocales= getAvailableLocales(!root._v1x && root, locale, bundlePath, bundleName);
89
+ var current = lang.clone(root.root),
90
+ availableLocales = getAvailableLocales(!root._v1x && root, locale, bundlePath, bundleName);
82
91
  require(availableLocales, function(){
83
- for (var i= 1; i<availableLocales.length; i++){
84
- current= lang.mixin(lang.clone(current), arguments[i]);
92
+ for (var i = 1; i<availableLocales.length; i++){
93
+ current = lang.mixin(lang.clone(current), arguments[i]);
85
94
  }
86
95
  // target may not have been resolve (e.g., maybe only "fr" exists when "fr-ca" was requested)
87
- var target= bundlePathAndName + "/" + locale;
88
- cache[target]= current;
96
+ var target = bundlePathAndName + "/" + locale;
97
+ cache[target] = current;
89
98
  load();
90
99
  });
91
100
  });
92
101
  },
93
102
 
94
103
  normalize = function(id, toAbsMid){
95
- // id may be relative
96
- // preload has form *preload*<path>/nls/<module>*<flattened locales> and
97
- // therefore never looks like a relative
104
+ // summary:
105
+ // id may be relative.
106
+ // preload has form `*preload*<path>/nls/<module>*<flattened locales>` and
107
+ // therefore never looks like a relative
98
108
  return /^\./.test(id) ? toAbsMid(id) : id;
99
109
  },
100
110
 
@@ -106,139 +116,139 @@ define("dojo/i18n", ["./_base/kernel", "require", "./has", "./_base/array", "./_
106
116
  },
107
117
 
108
118
  load = function(id, require, load){
119
+ // summary:
120
+ // id is in one of the following formats
109
121
  //
110
- // id is in one of the following formats
111
- //
112
- // 1. <path>/nls/<bundle>
113
- // => load the bundle, localized to config.locale; load all bundles localized to
114
- // config.extraLocale (if any); return the loaded bundle localized to config.locale.
122
+ // 1. <path>/nls/<bundle>
123
+ // => load the bundle, localized to config.locale; load all bundles localized to
124
+ // config.extraLocale (if any); return the loaded bundle localized to config.locale.
115
125
  //
116
- // 2. <path>/nls/<locale>/<bundle>
117
- // => load then return the bundle localized to <locale>
126
+ // 2. <path>/nls/<locale>/<bundle>
127
+ // => load then return the bundle localized to <locale>
118
128
  //
119
- // 3. *preload*<path>/nls/<module>*<JSON array of available locales>
120
- // => for config.locale and all config.extraLocale, load all bundles found
121
- // in the best-matching bundle rollup. A value of 1 is returned, which
122
- // is meaningless other than to say the plugin is executing the requested
123
- // preloads
129
+ // 3. *preload*<path>/nls/<module>*<JSON array of available locales>
130
+ // => for config.locale and all config.extraLocale, load all bundles found
131
+ // in the best-matching bundle rollup. A value of 1 is returned, which
132
+ // is meaningless other than to say the plugin is executing the requested
133
+ // preloads
124
134
  //
125
- // In cases 1 and 2, <path> is always normalized to an absolute module id upon entry; see
126
- // normalize. In case 3, it <path> is assumed to be absolue; this is arranged by the builder.
135
+ // In cases 1 and 2, <path> is always normalized to an absolute module id upon entry; see
136
+ // normalize. In case 3, it <path> is assumed to be absolute; this is arranged by the builder.
127
137
  //
128
- // To load a bundle means to insert the bundle into the plugin's cache and publish the bundle
129
- // value to the loader. Given <path>, <bundle>, and a particular <locale>, the cache key
138
+ // To load a bundle means to insert the bundle into the plugin's cache and publish the bundle
139
+ // value to the loader. Given <path>, <bundle>, and a particular <locale>, the cache key
130
140
  //
131
- // <path>/nls/<bundle>/<locale>
141
+ // <path>/nls/<bundle>/<locale>
132
142
  //
133
- // will hold the value. Similarly, then plugin will publish this value to the loader by
143
+ // will hold the value. Similarly, then plugin will publish this value to the loader by
134
144
  //
135
- // define("<path>/nls/<bundle>/<locale>", <bundle-value>);
145
+ // define("<path>/nls/<bundle>/<locale>", <bundle-value>);
136
146
  //
137
- // Given this algorithm, other machinery can provide fast load paths be preplacing
138
- // values in the plugin's cache, which is public. When a load is demanded the
139
- // cache is inspected before starting any loading. Explicitly placing values in the plugin
140
- // cache is an advanced/experimental feature that should not be needed; use at your own risk.
147
+ // Given this algorithm, other machinery can provide fast load paths be preplacing
148
+ // values in the plugin's cache, which is public. When a load is demanded the
149
+ // cache is inspected before starting any loading. Explicitly placing values in the plugin
150
+ // cache is an advanced/experimental feature that should not be needed; use at your own risk.
141
151
  //
142
- // For the normal AMD algorithm, the root bundle is loaded first, which instructs the
143
- // plugin what additional localized bundles are required for a particular locale. These
144
- // additional locales are loaded and a mix of the root and each progressively-specific
145
- // locale is returned. For example:
152
+ // For the normal AMD algorithm, the root bundle is loaded first, which instructs the
153
+ // plugin what additional localized bundles are required for a particular locale. These
154
+ // additional locales are loaded and a mix of the root and each progressively-specific
155
+ // locale is returned. For example:
146
156
  //
147
- // 1. The client demands "dojo/i18n!some/path/nls/someBundle
157
+ // 1. The client demands "dojo/i18n!some/path/nls/someBundle
148
158
  //
149
- // 2. The loader demands load(some/path/nls/someBundle)
159
+ // 2. The loader demands load(some/path/nls/someBundle)
150
160
  //
151
- // 3. This plugin require's "some/path/nls/someBundle", which is the root bundle.
161
+ // 3. This plugin require's "some/path/nls/someBundle", which is the root bundle.
152
162
  //
153
- // 4. Assuming config.locale is "ab-cd-ef" and the root bundle indicates that localizations
154
- // are available for "ab" and "ab-cd-ef" (note the missing "ab-cd", then the plugin
155
- // requires "some/path/nls/ab/someBundle" and "some/path/nls/ab-cd-ef/someBundle"
163
+ // 4. Assuming config.locale is "ab-cd-ef" and the root bundle indicates that localizations
164
+ // are available for "ab" and "ab-cd-ef" (note the missing "ab-cd", then the plugin
165
+ // requires "some/path/nls/ab/someBundle" and "some/path/nls/ab-cd-ef/someBundle"
156
166
  //
157
- // 5. Upon receiving all required bundles, the plugin constructs the value of the bundle
158
- // ab-cd-ef as...
167
+ // 5. Upon receiving all required bundles, the plugin constructs the value of the bundle
168
+ // ab-cd-ef as...
159
169
  //
160
- // mixin(mixin(mixin({}, require("some/path/nls/someBundle"),
161
- // require("some/path/nls/ab/someBundle")),
162
- // require("some/path/nls/ab-cd-ef/someBundle"));
170
+ // mixin(mixin(mixin({}, require("some/path/nls/someBundle"),
171
+ // require("some/path/nls/ab/someBundle")),
172
+ // require("some/path/nls/ab-cd-ef/someBundle"));
163
173
  //
164
- // This value is inserted into the cache and published to the loader at the
165
- // key/module-id some/path/nls/someBundle/ab-cd-ef.
174
+ // This value is inserted into the cache and published to the loader at the
175
+ // key/module-id some/path/nls/someBundle/ab-cd-ef.
166
176
  //
167
- // The special preload signature (case 3) instructs the plugin to stop servicing all normal requests
168
- // (further preload requests will be serviced) until all ongoing preloading has completed.
177
+ // The special preload signature (case 3) instructs the plugin to stop servicing all normal requests
178
+ // (further preload requests will be serviced) until all ongoing preloading has completed.
169
179
  //
170
- // The preload signature instructs the plugin that a special rollup module is available that contains
171
- // one or more flattened, localized bundles. The JSON array of available locales indicates which locales
172
- // are available. Here is an example:
180
+ // The preload signature instructs the plugin that a special rollup module is available that contains
181
+ // one or more flattened, localized bundles. The JSON array of available locales indicates which locales
182
+ // are available. Here is an example:
173
183
  //
174
- // *preload*some/path/nls/someModule*["root", "ab", "ab-cd-ef"]
184
+ // *preload*some/path/nls/someModule*["root", "ab", "ab-cd-ef"]
175
185
  //
176
- // This indicates the following rollup modules are available:
186
+ // This indicates the following rollup modules are available:
177
187
  //
178
- // some/path/nls/someModule_ROOT
179
- // some/path/nls/someModule_ab
180
- // some/path/nls/someModule_ab-cd-ef
188
+ // some/path/nls/someModule_ROOT
189
+ // some/path/nls/someModule_ab
190
+ // some/path/nls/someModule_ab-cd-ef
181
191
  //
182
- // Each of these modules is a normal AMD module that contains one or more flattened bundles in a hash.
183
- // For example, assume someModule contained the bundles some/bundle/path/someBundle and
184
- // some/bundle/path/someOtherBundle, then some/path/nls/someModule_ab would be expressed as folllows:
192
+ // Each of these modules is a normal AMD module that contains one or more flattened bundles in a hash.
193
+ // For example, assume someModule contained the bundles some/bundle/path/someBundle and
194
+ // some/bundle/path/someOtherBundle, then some/path/nls/someModule_ab would be expressed as follows:
185
195
  //
186
- // define({
187
- // some/bundle/path/someBundle:<value of someBundle, flattened with respect to locale ab>,
188
- // some/bundle/path/someOtherBundle:<value of someOtherBundle, flattened with respect to locale ab>,
189
- // });
196
+ // define({
197
+ // some/bundle/path/someBundle:<value of someBundle, flattened with respect to locale ab>,
198
+ // some/bundle/path/someOtherBundle:<value of someOtherBundle, flattened with respect to locale ab>,
199
+ // });
190
200
  //
191
- // E.g., given this design, preloading for locale=="ab" can execute the following algorithm:
201
+ // E.g., given this design, preloading for locale=="ab" can execute the following algorithm:
192
202
  //
193
- // require(["some/path/nls/someModule_ab"], function(rollup){
194
- // for(var p in rollup){
195
- // var id = p + "/ab",
196
- // cache[id] = rollup[p];
197
- // define(id, rollup[p]);
198
- // }
199
- // });
203
+ // require(["some/path/nls/someModule_ab"], function(rollup){
204
+ // for(var p in rollup){
205
+ // var id = p + "/ab",
206
+ // cache[id] = rollup[p];
207
+ // define(id, rollup[p]);
208
+ // }
209
+ // });
200
210
  //
201
- // Similarly, if "ab-cd" is requested, the algorithm can determine that "ab" is the best available and
202
- // load accordingly.
211
+ // Similarly, if "ab-cd" is requested, the algorithm can determine that "ab" is the best available and
212
+ // load accordingly.
203
213
  //
204
- // The builder will write such rollups for every layer if a non-empty localeList profile property is
205
- // provided. Further, the builder will include the following cache entry in the cache associated with
206
- // any layer.
214
+ // The builder will write such rollups for every layer if a non-empty localeList profile property is
215
+ // provided. Further, the builder will include the following cache entry in the cache associated with
216
+ // any layer.
207
217
  //
208
- // "*now":function(r){r(['dojo/i18n!*preload*<path>/nls/<module>*<JSON array of available locales>']);}
218
+ // "*now":function(r){r(['dojo/i18n!*preload*<path>/nls/<module>*<JSON array of available locales>']);}
209
219
  //
210
- // The *now special cache module instructs the loader to apply the provided function to context-require
211
- // with respect to the particular layer being defined. This causes the plugin to hold all normal service
212
- // requests until all preloading is complete.
220
+ // The *now special cache module instructs the loader to apply the provided function to context-require
221
+ // with respect to the particular layer being defined. This causes the plugin to hold all normal service
222
+ // requests until all preloading is complete.
213
223
  //
214
- // Notice that this algorithm is rarely better than the standard AMD load algorithm. Consider the normal case
215
- // where the target locale has a single segment and a layer depends on a single bundle:
224
+ // Notice that this algorithm is rarely better than the standard AMD load algorithm. Consider the normal case
225
+ // where the target locale has a single segment and a layer depends on a single bundle:
216
226
  //
217
- // Without Preloads:
227
+ // Without Preloads:
218
228
  //
219
- // 1. Layer loads root bundle.
220
- // 2. bundle is demanded; plugin loads single localized bundle.
229
+ // 1. Layer loads root bundle.
230
+ // 2. bundle is demanded; plugin loads single localized bundle.
221
231
  //
222
- // With Preloads:
232
+ // With Preloads:
223
233
  //
224
- // 1. Layer causes preloading of target bundle.
225
- // 2. bundle is demanded; service is delayed until preloading complete; bundle is returned.
226
- //
227
- // In each case a single transaction is required to load the target bundle. In cases where multiple bundles
228
- // are required and/or the locale has multiple segments, preloads still requires a single transaction whereas
229
- // the normal path requires an additional transaction for each additional bundle/locale-segment. However all
230
- // of these additional transactions can be done concurrently. Owing to this analysis, the entire preloading
231
- // algorithm can be discard during a build by setting the has feature dojo-preload-i18n-Api to false.
234
+ // 1. Layer causes preloading of target bundle.
235
+ // 2. bundle is demanded; service is delayed until preloading complete; bundle is returned.
232
236
  //
237
+ // In each case a single transaction is required to load the target bundle. In cases where multiple bundles
238
+ // are required and/or the locale has multiple segments, preloads still requires a single transaction whereas
239
+ // the normal path requires an additional transaction for each additional bundle/locale-segment. However all
240
+ // of these additional transactions can be done concurrently. Owing to this analysis, the entire preloading
241
+ // algorithm can be discard during a build by setting the has feature dojo-preload-i18n-Api to false.
242
+
233
243
  if(has("dojo-preload-i18n-Api")){
234
244
  var split = id.split("*"),
235
- preloadDemand = split[1]=="preload";
245
+ preloadDemand = split[1] == "preload";
236
246
  if(preloadDemand){
237
247
  if(!cache[id]){
238
248
  // use cache[id] to prevent multiple preloads of the same preload; this shouldn't happen, but
239
249
  // who knows what over-aggressive human optimizers may attempt
240
250
  cache[id] = 1;
241
- preloadL10n(split[2], json.parse(split[3]), 1);
251
+ preloadL10n(split[2], json.parse(split[3]), 1, require);
242
252
  }
243
253
  // don't stall the loader!
244
254
  load(1);
@@ -248,13 +258,13 @@ define("dojo/i18n", ["./_base/kernel", "require", "./has", "./_base/array", "./_
248
258
  }
249
259
  }
250
260
 
251
- var match= nlsRe.exec(id),
252
- bundlePath= match[1] + "/",
253
- bundleName= match[5] || match[4],
254
- bundlePathAndName= bundlePath + bundleName,
261
+ var match = nlsRe.exec(id),
262
+ bundlePath = match[1] + "/",
263
+ bundleName = match[5] || match[4],
264
+ bundlePathAndName = bundlePath + bundleName,
255
265
  localeSpecified = (match[5] && match[4]),
256
- targetLocale= localeSpecified || dojo.locale,
257
- loadTarget= bundlePathAndName + "/" + targetLocale,
266
+ targetLocale = localeSpecified || dojo.locale,
267
+ loadTarget = bundlePathAndName + "/" + targetLocale,
258
268
  loadList = localeSpecified ? [targetLocale] : getLocalesToLoad(targetLocale),
259
269
  remaining = loadList.length,
260
270
  finish = function(){
@@ -279,15 +289,15 @@ define("dojo/i18n", ["./_base/kernel", "require", "./has", "./_base/array", "./_
279
289
  var unitTests = thisModule.unitTests = [];
280
290
  }
281
291
 
282
- if(has("dojo-preload-i18n-Api") || 1){
283
- var normalizeLocale = thisModule.normalizeLocale= function(locale){
292
+ if(has("dojo-preload-i18n-Api") || 1 ){
293
+ var normalizeLocale = thisModule.normalizeLocale = function(locale){
284
294
  var result = locale ? locale.toLowerCase() : dojo.locale;
285
295
  return result == "root" ? "ROOT" : result;
286
296
  },
287
297
 
288
- isXd = function(mid){
289
- return (1 && 1) ?
290
- require.isXdUrl(require.toUrl(mid + ".js")) :
298
+ isXd = function(mid, contextRequire){
299
+ return ( 1 && 1 ) ?
300
+ contextRequire.isXdUrl(require.toUrl(mid + ".js")) :
291
301
  true;
292
302
  },
293
303
 
@@ -295,29 +305,40 @@ define("dojo/i18n", ["./_base/kernel", "require", "./has", "./_base/array", "./_
295
305
 
296
306
  preloadWaitQueue = [],
297
307
 
298
- preloadL10n = thisModule._preloadLocalizations = function(/*String*/bundlePrefix, /*Array*/localesGenerated, /*boolean*/ guaranteedAmdFormat){
299
- // summary:
300
- // Load available flattened resource bundles associated with a particular module for dojo.locale and all dojo.config.extraLocale (if any)
301
- //
302
- // descirption:
308
+ preloadL10n = thisModule._preloadLocalizations = function(/*String*/bundlePrefix, /*Array*/localesGenerated, /*boolean?*/ guaranteedAmdFormat, /*function?*/ contextRequire){
309
+ // summary:
310
+ // Load available flattened resource bundles associated with a particular module for dojo/locale and all dojo/config.extraLocale (if any)
311
+ // description:
303
312
  // Only called by built layer files. The entire locale hierarchy is loaded. For example,
304
313
  // if locale=="ab-cd", then ROOT, "ab", and "ab-cd" are loaded. This is different than v1.6-
305
- // in that the v1.6- would lonly load ab-cd...which was *always* flattened.
314
+ // in that the v1.6- would only load ab-cd...which was *always* flattened.
306
315
  //
307
316
  // If guaranteedAmdFormat is true, then the module can be loaded with require thereby circumventing the detection algorithm
308
317
  // and the extra possible extra transaction.
309
- //
318
+
319
+ // If this function is called from legacy code, then guaranteedAmdFormat and contextRequire will be undefined. Since the function
320
+ // needs a require in order to resolve module ids, fall back to the context-require associated with this dojo/i18n module, which
321
+ // itself may have been mapped.
322
+ contextRequire = contextRequire || require;
323
+
324
+ function doRequire(mid, callback){
325
+ if(isXd(mid, contextRequire) || guaranteedAmdFormat){
326
+ contextRequire([mid], callback);
327
+ }else{
328
+ syncRequire([mid], callback, contextRequire);
329
+ }
330
+ }
310
331
 
311
332
  function forEachLocale(locale, func){
312
333
  // given locale= "ab-cd-ef", calls func on "ab-cd-ef", "ab-cd", "ab", "ROOT"; stops calling the first time func returns truthy
313
334
  var parts = locale.split("-");
314
335
  while(parts.length){
315
336
  if(func(parts.join("-"))){
316
- return true;
337
+ return;
317
338
  }
318
339
  parts.pop();
319
340
  }
320
- return func("ROOT");
341
+ func("ROOT");
321
342
  }
322
343
 
323
344
  function preload(locale){
@@ -326,9 +347,9 @@ define("dojo/i18n", ["./_base/kernel", "require", "./has", "./_base/array", "./_
326
347
  if(array.indexOf(localesGenerated, loc)>=0){
327
348
  var mid = bundlePrefix.replace(/\./g, "/")+"_"+loc;
328
349
  preloading++;
329
- (isXd(mid) || guaranteedAmdFormat ? require : syncRequire)([mid], function(rollup){
350
+ doRequire(mid, function(rollup){
330
351
  for(var p in rollup){
331
- cache[p + "/" + locale] = rollup[p];
352
+ cache[require.toAbsMid(p) + "/" + loc] = rollup[p];
332
353
  }
333
354
  --preloading;
334
355
  while(!preloading && preloadWaitQueue.length){
@@ -350,17 +371,22 @@ define("dojo/i18n", ["./_base/kernel", "require", "./has", "./_base/array", "./_
350
371
  preloadWaitQueue.push([id, require, load]);
351
372
  }
352
373
  return preloading;
353
- };
374
+ },
375
+
376
+ checkForLegacyModules = function()
377
+ {};
354
378
  }
355
379
 
356
- if(1){
380
+ if( 1 ){
357
381
  // this code path assumes the dojo loader and won't work with a standard AMD loader
358
- var evalBundle=
382
+ var amdValue = {},
383
+ evalBundle =
359
384
  // use the function ctor to keep the minifiers away (also come close to global scope, but this is secondary)
360
385
  new Function(
361
- "__bundle", // the bundle to evalutate
386
+ "__bundle", // the bundle to evalutate
362
387
  "__checkForLegacyModules", // a function that checks if __bundle defined __mid in the global space
363
- "__mid", // the mid that __bundle is intended to define
388
+ "__mid", // the mid that __bundle is intended to define
389
+ "__amdValue",
364
390
 
365
391
  // returns one of:
366
392
  // 1 => the bundle was an AMD bundle
@@ -368,15 +394,15 @@ define("dojo/i18n", ["./_base/kernel", "require", "./has", "./_base/array", "./_
368
394
  // instance of Error => could not figure out how to evaluate bundle
369
395
 
370
396
  // used to detect when __bundle calls define
371
- "var define = function(){define.called = 1;},"
372
- + " require = function(){define.called = 1;};"
397
+ "var define = function(mid, factory){define.called = 1; __amdValue.result = factory || mid;},"
398
+ + " require = function(){define.called = 1;};"
373
399
 
374
400
  + "try{"
375
401
  + "define.called = 0;"
376
402
  + "eval(__bundle);"
377
403
  + "if(define.called==1)"
378
404
  // bundle called define; therefore signal it's an AMD bundle
379
- + "return 1;"
405
+ + "return __amdValue;"
380
406
 
381
407
  + "if((__checkForLegacyModules = __checkForLegacyModules(__mid)))"
382
408
  // bundle was probably a v1.6- built NLS flattened NLS bundle that defined __mid in the global space
@@ -387,28 +413,26 @@ define("dojo/i18n", ["./_base/kernel", "require", "./has", "./_base/array", "./_
387
413
  // either way, re-eval *after* surrounding with parentheses
388
414
 
389
415
  + "try{"
390
- + "return eval('('+__bundle+')');"
416
+ + "return eval('('+__bundle+')');"
391
417
  + "}catch(e){"
392
- + "return e;"
418
+ + "return e;"
393
419
  + "}"
394
420
  ),
395
421
 
396
- syncRequire= function(deps, callback){
397
- var results= [];
422
+ syncRequire = function(deps, callback, require){
423
+ var results = [];
398
424
  array.forEach(deps, function(mid){
399
- var url= require.toUrl(mid + ".js");
425
+ var url = require.toUrl(mid + ".js");
400
426
 
401
427
  function load(text){
402
- var result = evalBundle(text, checkForLegacyModules, mid);
403
- if(result===1){
428
+ var result = evalBundle(text, checkForLegacyModules, mid, amdValue);
429
+ if(result===amdValue){
404
430
  // the bundle was an AMD module; re-inject it through the normal AMD path
405
431
  // we gotta do this since it could be an anonymous module and simply evaluating
406
432
  // the text here won't provide the loader with the context to know what
407
433
  // module is being defined()'d. With browser caching, this should be free; further
408
434
  // this entire code path can be circumvented by using the AMD format to begin with
409
- require([mid], function(bundle){
410
- results.push(cache[url]= bundle);
411
- });
435
+ results.push(cache[url] = amdValue.result);
412
436
  }else{
413
437
  if(result instanceof Error){
414
438
  console.error("failed to evaluate i18n bundle; url=" + url, result);
@@ -422,7 +446,7 @@ define("dojo/i18n", ["./_base/kernel", "require", "./has", "./_base/array", "./_
422
446
  if(cache[url]){
423
447
  results.push(cache[url]);
424
448
  }else{
425
- var bundle= require.syncLoadNls(mid);
449
+ var bundle = require.syncLoadNls(mid);
426
450
  // don't need to check for legacy since syncLoadNls returns a module if the module
427
451
  // (1) was already loaded, or (2) was in the cache. In case 1, if syncRequire is called
428
452
  // from getLocalization --> load, then load will have called checkForLegacyModules() before
@@ -437,7 +461,7 @@ define("dojo/i18n", ["./_base/kernel", "require", "./has", "./_base/array", "./_
437
461
  try{
438
462
  require.getText(url, true, load);
439
463
  }catch(e){
440
- results.push(cache[url]= {});
464
+ results.push(cache[url] = {});
441
465
  }
442
466
  }else{
443
467
  xhr.get({
@@ -445,7 +469,7 @@ define("dojo/i18n", ["./_base/kernel", "require", "./has", "./_base/array", "./_
445
469
  sync:true,
446
470
  load:load,
447
471
  error:function(){
448
- results.push(cache[url]= {});
472
+ results.push(cache[url] = {});
449
473
  }
450
474
  });
451
475
  }
@@ -453,28 +477,37 @@ define("dojo/i18n", ["./_base/kernel", "require", "./has", "./_base/array", "./_
453
477
  }
454
478
  });
455
479
  callback && callback.apply(null, results);
456
- },
480
+ };
457
481
 
458
- checkForLegacyModules = function(target){
459
- // legacy code may have already loaded [e.g] the raw bundle x/y/z at x.y.z; when true, push into the cache
460
- for(var result, names = target.split("/"), object = dojo.global[names[0]], i = 1; object && i<names.length-1; object = object[names[i++]]){}
461
- if(object){
462
- result = object[names[i]];
463
- if(!result){
464
- // fallback for incorrect bundle build of 1.6
465
- result = object[names[i].replace(/-/g,"_")];
466
- }
467
- if(result){
468
- cache[target] = result;
469
- }
482
+ checkForLegacyModules = function(target){
483
+ // legacy code may have already loaded [e.g] the raw bundle x/y/z at x.y.z; when true, push into the cache
484
+ for(var result, names = target.split("/"), object = dojo.global[names[0]], i = 1; object && i<names.length-1; object = object[names[i++]]){}
485
+ if(object){
486
+ result = object[names[i]];
487
+ if(!result){
488
+ // fallback for incorrect bundle build of 1.6
489
+ result = object[names[i].replace(/-/g,"_")];
470
490
  }
471
- return result;
472
- };
491
+ if(result){
492
+ cache[target] = result;
493
+ }
494
+ }
495
+ return result;
496
+ };
473
497
 
474
- thisModule.getLocalization= function(moduleName, bundleName, locale){
498
+ thisModule.getLocalization = function(moduleName, bundleName, locale){
475
499
  var result,
476
- l10nName= getL10nName(moduleName, bundleName, locale).substring(10);
477
- load(l10nName, (!isXd(l10nName) ? syncRequire : require), function(result_){ result= result_; });
500
+ l10nName = getBundleName(moduleName, bundleName, locale);
501
+ load(
502
+ l10nName,
503
+
504
+ // isXd() and syncRequire() need a context-require in order to resolve the mid with respect to a reference module.
505
+ // Since this legacy function does not have the concept of a reference module, resolve with respect to this
506
+ // dojo/i18n module, which, itself may have been mapped.
507
+ (!isXd(l10nName, require) ? function(deps, callback){ syncRequire(deps, callback, require); } : require),
508
+
509
+ function(result_){ result = result_; }
510
+ );
478
511
  return result;
479
512
  };
480
513
 
@@ -483,22 +516,25 @@ define("dojo/i18n", ["./_base/kernel", "require", "./has", "./_base/array", "./_
483
516
  doh.register("tests.i18n.unit", function(t){
484
517
  var check;
485
518
 
486
- check = evalBundle("{prop:1}");
519
+ check = evalBundle("{prop:1}", checkForLegacyModules, "nonsense", amdValue);
487
520
  t.is({prop:1}, check); t.is(undefined, check[1]);
488
521
 
489
- check = evalBundle("({prop:1})");
522
+ check = evalBundle("({prop:1})", checkForLegacyModules, "nonsense", amdValue);
490
523
  t.is({prop:1}, check); t.is(undefined, check[1]);
491
524
 
492
- check = evalBundle("{'prop-x':1}");
525
+ check = evalBundle("{'prop-x':1}", checkForLegacyModules, "nonsense", amdValue);
493
526
  t.is({'prop-x':1}, check); t.is(undefined, check[1]);
494
527
 
495
- check = evalBundle("({'prop-x':1})");
528
+ check = evalBundle("({'prop-x':1})", checkForLegacyModules, "nonsense", amdValue);
496
529
  t.is({'prop-x':1}, check); t.is(undefined, check[1]);
497
530
 
498
- check = evalBundle("define({'prop-x':1})");
499
- t.is(1, check);
531
+ check = evalBundle("define({'prop-x':1})", checkForLegacyModules, "nonsense", amdValue);
532
+ t.is(amdValue, check); t.is({'prop-x':1}, amdValue.result);
533
+
534
+ check = evalBundle("define('some/module', {'prop-x':1})", checkForLegacyModules, "nonsense", amdValue);
535
+ t.is(amdValue, check); t.is({'prop-x':1}, amdValue.result);
500
536
 
501
- check = evalBundle("this is total nonsense and should throw an error");
537
+ check = evalBundle("this is total nonsense and should throw an error", checkForLegacyModules, "nonsense", amdValue);
502
538
  t.is(check instanceof Error, true);
503
539
  });
504
540
  });