dojo-rails 0.9.8 → 0.9.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (611) hide show
  1. data/.gitignore +18 -0
  2. data/Gemfile +4 -0
  3. data/LICENSE +22 -0
  4. data/Rakefile +3 -0
  5. data/dojo-rails.gemspec +20 -0
  6. data/lib/dojo-rails.rb +1 -0
  7. data/lib/dojo/rails.rb +2 -0
  8. data/lib/dojo/rails/engine.rb +6 -0
  9. data/lib/dojo/rails/version.rb +9 -0
  10. data/lib/dojo/version.rb +7 -0
  11. data/vendor/assets/javascripts/dojo.js +15 -0
  12. data/vendor/assets/javascripts/dojo/AdapterRegistry.js +38 -0
  13. data/vendor/assets/javascripts/dojo/AdapterRegistry.js.uncompressed.js +113 -0
  14. data/vendor/assets/javascripts/dojo/DeferredList.js +57 -0
  15. data/vendor/assets/javascripts/dojo/DeferredList.js.uncompressed.js +86 -0
  16. data/vendor/assets/javascripts/dojo/Evented.js +23 -0
  17. data/vendor/assets/javascripts/dojo/Evented.js.uncompressed.js +32 -0
  18. data/vendor/assets/javascripts/dojo/LICENSE +195 -0
  19. data/vendor/assets/javascripts/dojo/NodeList-data.js +59 -0
  20. data/vendor/assets/javascripts/dojo/NodeList-data.js.uncompressed.js +181 -0
  21. data/vendor/assets/javascripts/dojo/NodeList-dom.js +122 -0
  22. data/vendor/assets/javascripts/dojo/NodeList-dom.js.uncompressed.js +454 -0
  23. data/vendor/assets/javascripts/dojo/NodeList-fx.js +39 -0
  24. data/vendor/assets/javascripts/dojo/NodeList-fx.js.uncompressed.js +222 -0
  25. data/vendor/assets/javascripts/dojo/NodeList-html.js +20 -0
  26. data/vendor/assets/javascripts/dojo/NodeList-html.js.uncompressed.js +55 -0
  27. data/vendor/assets/javascripts/dojo/NodeList-manipulate.js +210 -0
  28. data/vendor/assets/javascripts/dojo/NodeList-manipulate.js.uncompressed.js +730 -0
  29. data/vendor/assets/javascripts/dojo/NodeList-traverse.js +124 -0
  30. data/vendor/assets/javascripts/dojo/NodeList-traverse.js.uncompressed.js +508 -0
  31. data/vendor/assets/javascripts/dojo/OpenAjax.js +194 -0
  32. data/vendor/assets/javascripts/dojo/Stateful.js +67 -0
  33. data/vendor/assets/javascripts/dojo/Stateful.js.uncompressed.js +139 -0
  34. data/vendor/assets/javascripts/dojo/_base/Color.js +96 -0
  35. data/vendor/assets/javascripts/dojo/_base/Color.js.uncompressed.js +220 -0
  36. data/vendor/assets/javascripts/dojo/_base/Deferred.js +129 -0
  37. data/vendor/assets/javascripts/dojo/_base/Deferred.js.uncompressed.js +366 -0
  38. data/vendor/assets/javascripts/dojo/_base/NodeList.js +24 -0
  39. data/vendor/assets/javascripts/dojo/_base/NodeList.js.uncompressed.js +100 -0
  40. data/vendor/assets/javascripts/dojo/_base/array.js +142 -0
  41. data/vendor/assets/javascripts/dojo/_base/array.js.uncompressed.js +343 -0
  42. data/vendor/assets/javascripts/dojo/_base/browser.js +13 -0
  43. data/vendor/assets/javascripts/dojo/_base/browser.js.uncompressed.js +21 -0
  44. data/vendor/assets/javascripts/dojo/_base/config.js +26 -0
  45. data/vendor/assets/javascripts/dojo/_base/config.js.uncompressed.js +174 -0
  46. data/vendor/assets/javascripts/dojo/_base/configFirefoxExtension.js +334 -0
  47. data/vendor/assets/javascripts/dojo/_base/configNode.js +87 -0
  48. data/vendor/assets/javascripts/dojo/_base/configRhino.js +121 -0
  49. data/vendor/assets/javascripts/dojo/_base/configSpidermonkey.js +84 -0
  50. data/vendor/assets/javascripts/dojo/_base/connect.js +163 -0
  51. data/vendor/assets/javascripts/dojo/_base/connect.js.uncompressed.js +400 -0
  52. data/vendor/assets/javascripts/dojo/_base/declare.js +430 -0
  53. data/vendor/assets/javascripts/dojo/_base/declare.js.uncompressed.js +1050 -0
  54. data/vendor/assets/javascripts/dojo/_base/event.js +36 -0
  55. data/vendor/assets/javascripts/dojo/_base/event.js.uncompressed.js +51 -0
  56. data/vendor/assets/javascripts/dojo/_base/fx.js +295 -0
  57. data/vendor/assets/javascripts/dojo/_base/fx.js.uncompressed.js +666 -0
  58. data/vendor/assets/javascripts/dojo/_base/html.js +88 -0
  59. data/vendor/assets/javascripts/dojo/_base/html.js.uncompressed.js +389 -0
  60. data/vendor/assets/javascripts/dojo/_base/json.js +26 -0
  61. data/vendor/assets/javascripts/dojo/_base/json.js.uncompressed.js +85 -0
  62. data/vendor/assets/javascripts/dojo/_base/kernel.js +114 -0
  63. data/vendor/assets/javascripts/dojo/_base/kernel.js.uncompressed.js +302 -0
  64. data/vendor/assets/javascripts/dojo/_base/lang.js +178 -0
  65. data/vendor/assets/javascripts/dojo/_base/lang.js.uncompressed.js +707 -0
  66. data/vendor/assets/javascripts/dojo/_base/loader.js +258 -0
  67. data/vendor/assets/javascripts/dojo/_base/loader.js.uncompressed.js +718 -0
  68. data/vendor/assets/javascripts/dojo/_base/query.js +10 -0
  69. data/vendor/assets/javascripts/dojo/_base/query.js.uncompressed.js +3 -0
  70. data/vendor/assets/javascripts/dojo/_base/sniff.js +68 -0
  71. data/vendor/assets/javascripts/dojo/_base/sniff.js.uncompressed.js +187 -0
  72. data/vendor/assets/javascripts/dojo/_base/unload.js +21 -0
  73. data/vendor/assets/javascripts/dojo/_base/unload.js.uncompressed.js +81 -0
  74. data/vendor/assets/javascripts/dojo/_base/url.js +88 -0
  75. data/vendor/assets/javascripts/dojo/_base/url.js.uncompressed.js +111 -0
  76. data/vendor/assets/javascripts/dojo/_base/window.js +55 -0
  77. data/vendor/assets/javascripts/dojo/_base/window.js.uncompressed.js +126 -0
  78. data/vendor/assets/javascripts/dojo/_base/xhr.js +381 -0
  79. data/vendor/assets/javascripts/dojo/_base/xhr.js.uncompressed.js +830 -0
  80. data/vendor/assets/javascripts/dojo/_firebug/LICENSE +37 -0
  81. data/vendor/assets/javascripts/dojo/_firebug/errorIcon.png +0 -0
  82. data/vendor/assets/javascripts/dojo/_firebug/firebug.css +208 -0
  83. data/vendor/assets/javascripts/dojo/_firebug/firebug.js +897 -0
  84. data/vendor/assets/javascripts/dojo/_firebug/firebug.js.uncompressed.js +1183 -0
  85. data/vendor/assets/javascripts/dojo/_firebug/infoIcon.png +0 -0
  86. data/vendor/assets/javascripts/dojo/_firebug/tab_lft_norm.png +0 -0
  87. data/vendor/assets/javascripts/dojo/_firebug/tab_lft_over.png +0 -0
  88. data/vendor/assets/javascripts/dojo/_firebug/tab_rgt_norm.png +0 -0
  89. data/vendor/assets/javascripts/dojo/_firebug/tab_rgt_over.png +0 -0
  90. data/vendor/assets/javascripts/dojo/_firebug/warningIcon.png +0 -0
  91. data/vendor/assets/javascripts/dojo/aspect.js +98 -0
  92. data/vendor/assets/javascripts/dojo/aspect.js.uncompressed.js +207 -0
  93. data/vendor/assets/javascripts/dojo/back.js +238 -0
  94. data/vendor/assets/javascripts/dojo/back.js.uncompressed.js +397 -0
  95. data/vendor/assets/javascripts/dojo/behavior.js +92 -0
  96. data/vendor/assets/javascripts/dojo/behavior.js.uncompressed.js +248 -0
  97. data/vendor/assets/javascripts/dojo/cache.js +10 -0
  98. data/vendor/assets/javascripts/dojo/cache.js.uncompressed.js +9 -0
  99. data/vendor/assets/javascripts/dojo/cldr/LICENSE +29 -0
  100. data/vendor/assets/javascripts/dojo/cldr/README +18 -0
  101. data/vendor/assets/javascripts/dojo/cldr/monetary.js +23 -0
  102. data/vendor/assets/javascripts/dojo/cldr/monetary.js.uncompressed.js +35 -0
  103. data/vendor/assets/javascripts/dojo/cldr/nls/ar/buddhist.js +8 -0
  104. data/vendor/assets/javascripts/dojo/cldr/nls/ar/buddhist.js.uncompressed.js +115 -0
  105. data/vendor/assets/javascripts/dojo/cldr/nls/ar/currency.js +8 -0
  106. data/vendor/assets/javascripts/dojo/cldr/nls/ar/currency.js.uncompressed.js +16 -0
  107. data/vendor/assets/javascripts/dojo/cldr/nls/ar/gregorian.js +8 -0
  108. data/vendor/assets/javascripts/dojo/cldr/nls/ar/gregorian.js.uncompressed.js +240 -0
  109. data/vendor/assets/javascripts/dojo/cldr/nls/ar/hebrew.js +8 -0
  110. data/vendor/assets/javascripts/dojo/cldr/nls/ar/hebrew.js.uncompressed.js +124 -0
  111. data/vendor/assets/javascripts/dojo/cldr/nls/ar/islamic.js +8 -0
  112. data/vendor/assets/javascripts/dojo/cldr/nls/ar/islamic.js.uncompressed.js +156 -0
  113. data/vendor/assets/javascripts/dojo/cldr/nls/ar/number.js +8 -0
  114. data/vendor/assets/javascripts/dojo/cldr/nls/ar/number.js.uncompressed.js +18 -0
  115. data/vendor/assets/javascripts/dojo/cldr/nls/buddhist.js +8 -0
  116. data/vendor/assets/javascripts/dojo/cldr/nls/buddhist.js.uncompressed.js +267 -0
  117. data/vendor/assets/javascripts/dojo/cldr/nls/ca/currency.js +8 -0
  118. data/vendor/assets/javascripts/dojo/cldr/nls/ca/currency.js.uncompressed.js +15 -0
  119. data/vendor/assets/javascripts/dojo/cldr/nls/ca/gregorian.js +8 -0
  120. data/vendor/assets/javascripts/dojo/cldr/nls/ca/gregorian.js.uncompressed.js +235 -0
  121. data/vendor/assets/javascripts/dojo/cldr/nls/ca/number.js +8 -0
  122. data/vendor/assets/javascripts/dojo/cldr/nls/ca/number.js.uncompressed.js +22 -0
  123. data/vendor/assets/javascripts/dojo/cldr/nls/cs/currency.js +8 -0
  124. data/vendor/assets/javascripts/dojo/cldr/nls/cs/currency.js.uncompressed.js +15 -0
  125. data/vendor/assets/javascripts/dojo/cldr/nls/cs/gregorian.js +8 -0
  126. data/vendor/assets/javascripts/dojo/cldr/nls/cs/gregorian.js.uncompressed.js +215 -0
  127. data/vendor/assets/javascripts/dojo/cldr/nls/cs/number.js +8 -0
  128. data/vendor/assets/javascripts/dojo/cldr/nls/cs/number.js.uncompressed.js +22 -0
  129. data/vendor/assets/javascripts/dojo/cldr/nls/currency.js +8 -0
  130. data/vendor/assets/javascripts/dojo/cldr/nls/currency.js.uncompressed.js +48 -0
  131. data/vendor/assets/javascripts/dojo/cldr/nls/da/buddhist.js +8 -0
  132. data/vendor/assets/javascripts/dojo/cldr/nls/da/buddhist.js.uncompressed.js +141 -0
  133. data/vendor/assets/javascripts/dojo/cldr/nls/da/currency.js +8 -0
  134. data/vendor/assets/javascripts/dojo/cldr/nls/da/currency.js.uncompressed.js +16 -0
  135. data/vendor/assets/javascripts/dojo/cldr/nls/da/gregorian.js +8 -0
  136. data/vendor/assets/javascripts/dojo/cldr/nls/da/gregorian.js.uncompressed.js +237 -0
  137. data/vendor/assets/javascripts/dojo/cldr/nls/da/islamic.js +8 -0
  138. data/vendor/assets/javascripts/dojo/cldr/nls/da/islamic.js.uncompressed.js +87 -0
  139. data/vendor/assets/javascripts/dojo/cldr/nls/da/number.js +8 -0
  140. data/vendor/assets/javascripts/dojo/cldr/nls/da/number.js.uncompressed.js +22 -0
  141. data/vendor/assets/javascripts/dojo/cldr/nls/de/buddhist.js +8 -0
  142. data/vendor/assets/javascripts/dojo/cldr/nls/de/buddhist.js.uncompressed.js +130 -0
  143. data/vendor/assets/javascripts/dojo/cldr/nls/de/currency.js +8 -0
  144. data/vendor/assets/javascripts/dojo/cldr/nls/de/currency.js.uncompressed.js +17 -0
  145. data/vendor/assets/javascripts/dojo/cldr/nls/de/gregorian.js +8 -0
  146. data/vendor/assets/javascripts/dojo/cldr/nls/de/gregorian.js.uncompressed.js +237 -0
  147. data/vendor/assets/javascripts/dojo/cldr/nls/de/islamic.js +8 -0
  148. data/vendor/assets/javascripts/dojo/cldr/nls/de/islamic.js.uncompressed.js +172 -0
  149. data/vendor/assets/javascripts/dojo/cldr/nls/de/number.js +8 -0
  150. data/vendor/assets/javascripts/dojo/cldr/nls/de/number.js.uncompressed.js +22 -0
  151. data/vendor/assets/javascripts/dojo/cldr/nls/el/buddhist.js +8 -0
  152. data/vendor/assets/javascripts/dojo/cldr/nls/el/buddhist.js.uncompressed.js +120 -0
  153. data/vendor/assets/javascripts/dojo/cldr/nls/el/currency.js +8 -0
  154. data/vendor/assets/javascripts/dojo/cldr/nls/el/currency.js.uncompressed.js +15 -0
  155. data/vendor/assets/javascripts/dojo/cldr/nls/el/gregorian.js +8 -0
  156. data/vendor/assets/javascripts/dojo/cldr/nls/el/gregorian.js.uncompressed.js +241 -0
  157. data/vendor/assets/javascripts/dojo/cldr/nls/el/hebrew.js +8 -0
  158. data/vendor/assets/javascripts/dojo/cldr/nls/el/hebrew.js.uncompressed.js +73 -0
  159. data/vendor/assets/javascripts/dojo/cldr/nls/el/number.js +8 -0
  160. data/vendor/assets/javascripts/dojo/cldr/nls/el/number.js.uncompressed.js +20 -0
  161. data/vendor/assets/javascripts/dojo/cldr/nls/en-au/currency.js +8 -0
  162. data/vendor/assets/javascripts/dojo/cldr/nls/en-au/currency.js.uncompressed.js +8 -0
  163. data/vendor/assets/javascripts/dojo/cldr/nls/en-au/gregorian.js +8 -0
  164. data/vendor/assets/javascripts/dojo/cldr/nls/en-au/gregorian.js.uncompressed.js +17 -0
  165. data/vendor/assets/javascripts/dojo/cldr/nls/en-au/number.js +8 -0
  166. data/vendor/assets/javascripts/dojo/cldr/nls/en-au/number.js.uncompressed.js +7 -0
  167. data/vendor/assets/javascripts/dojo/cldr/nls/en-ca/currency.js +8 -0
  168. data/vendor/assets/javascripts/dojo/cldr/nls/en-ca/currency.js.uncompressed.js +8 -0
  169. data/vendor/assets/javascripts/dojo/cldr/nls/en-ca/gregorian.js +8 -0
  170. data/vendor/assets/javascripts/dojo/cldr/nls/en-ca/gregorian.js.uncompressed.js +20 -0
  171. data/vendor/assets/javascripts/dojo/cldr/nls/en-gb/buddhist.js +8 -0
  172. data/vendor/assets/javascripts/dojo/cldr/nls/en-gb/buddhist.js.uncompressed.js +101 -0
  173. data/vendor/assets/javascripts/dojo/cldr/nls/en-gb/gregorian.js +8 -0
  174. data/vendor/assets/javascripts/dojo/cldr/nls/en-gb/gregorian.js.uncompressed.js +23 -0
  175. data/vendor/assets/javascripts/dojo/cldr/nls/en-gb/islamic.js +8 -0
  176. data/vendor/assets/javascripts/dojo/cldr/nls/en-gb/islamic.js.uncompressed.js +153 -0
  177. data/vendor/assets/javascripts/dojo/cldr/nls/en-gb/number.js +8 -0
  178. data/vendor/assets/javascripts/dojo/cldr/nls/en-gb/number.js.uncompressed.js +7 -0
  179. data/vendor/assets/javascripts/dojo/cldr/nls/en/buddhist.js +8 -0
  180. data/vendor/assets/javascripts/dojo/cldr/nls/en/buddhist.js.uncompressed.js +109 -0
  181. data/vendor/assets/javascripts/dojo/cldr/nls/en/currency.js +8 -0
  182. data/vendor/assets/javascripts/dojo/cldr/nls/en/currency.js.uncompressed.js +17 -0
  183. data/vendor/assets/javascripts/dojo/cldr/nls/en/gregorian.js +8 -0
  184. data/vendor/assets/javascripts/dojo/cldr/nls/en/gregorian.js.uncompressed.js +229 -0
  185. data/vendor/assets/javascripts/dojo/cldr/nls/en/islamic.js +8 -0
  186. data/vendor/assets/javascripts/dojo/cldr/nls/en/islamic.js.uncompressed.js +166 -0
  187. data/vendor/assets/javascripts/dojo/cldr/nls/en/number.js +8 -0
  188. data/vendor/assets/javascripts/dojo/cldr/nls/en/number.js.uncompressed.js +23 -0
  189. data/vendor/assets/javascripts/dojo/cldr/nls/es/buddhist.js +8 -0
  190. data/vendor/assets/javascripts/dojo/cldr/nls/es/buddhist.js.uncompressed.js +125 -0
  191. data/vendor/assets/javascripts/dojo/cldr/nls/es/currency.js +8 -0
  192. data/vendor/assets/javascripts/dojo/cldr/nls/es/currency.js.uncompressed.js +15 -0
  193. data/vendor/assets/javascripts/dojo/cldr/nls/es/gregorian.js +8 -0
  194. data/vendor/assets/javascripts/dojo/cldr/nls/es/gregorian.js.uncompressed.js +238 -0
  195. data/vendor/assets/javascripts/dojo/cldr/nls/es/islamic.js +8 -0
  196. data/vendor/assets/javascripts/dojo/cldr/nls/es/islamic.js.uncompressed.js +179 -0
  197. data/vendor/assets/javascripts/dojo/cldr/nls/es/number.js +8 -0
  198. data/vendor/assets/javascripts/dojo/cldr/nls/es/number.js.uncompressed.js +21 -0
  199. data/vendor/assets/javascripts/dojo/cldr/nls/fi/buddhist.js +8 -0
  200. data/vendor/assets/javascripts/dojo/cldr/nls/fi/buddhist.js.uncompressed.js +166 -0
  201. data/vendor/assets/javascripts/dojo/cldr/nls/fi/currency.js +8 -0
  202. data/vendor/assets/javascripts/dojo/cldr/nls/fi/currency.js.uncompressed.js +22 -0
  203. data/vendor/assets/javascripts/dojo/cldr/nls/fi/gregorian.js +8 -0
  204. data/vendor/assets/javascripts/dojo/cldr/nls/fi/gregorian.js.uncompressed.js +239 -0
  205. data/vendor/assets/javascripts/dojo/cldr/nls/fi/hebrew.js +8 -0
  206. data/vendor/assets/javascripts/dojo/cldr/nls/fi/hebrew.js.uncompressed.js +176 -0
  207. data/vendor/assets/javascripts/dojo/cldr/nls/fi/islamic.js +8 -0
  208. data/vendor/assets/javascripts/dojo/cldr/nls/fi/islamic.js.uncompressed.js +155 -0
  209. data/vendor/assets/javascripts/dojo/cldr/nls/fi/number.js +8 -0
  210. data/vendor/assets/javascripts/dojo/cldr/nls/fi/number.js.uncompressed.js +22 -0
  211. data/vendor/assets/javascripts/dojo/cldr/nls/fr-ch/gregorian.js +8 -0
  212. data/vendor/assets/javascripts/dojo/cldr/nls/fr-ch/gregorian.js.uncompressed.js +9 -0
  213. data/vendor/assets/javascripts/dojo/cldr/nls/fr-ch/number.js +8 -0
  214. data/vendor/assets/javascripts/dojo/cldr/nls/fr-ch/number.js.uncompressed.js +9 -0
  215. data/vendor/assets/javascripts/dojo/cldr/nls/fr/currency.js +8 -0
  216. data/vendor/assets/javascripts/dojo/cldr/nls/fr/currency.js.uncompressed.js +23 -0
  217. data/vendor/assets/javascripts/dojo/cldr/nls/fr/gregorian.js +8 -0
  218. data/vendor/assets/javascripts/dojo/cldr/nls/fr/gregorian.js.uncompressed.js +247 -0
  219. data/vendor/assets/javascripts/dojo/cldr/nls/fr/number.js +8 -0
  220. data/vendor/assets/javascripts/dojo/cldr/nls/fr/number.js.uncompressed.js +22 -0
  221. data/vendor/assets/javascripts/dojo/cldr/nls/gregorian.js +8 -0
  222. data/vendor/assets/javascripts/dojo/cldr/nls/gregorian.js.uncompressed.js +294 -0
  223. data/vendor/assets/javascripts/dojo/cldr/nls/he/currency.js +8 -0
  224. data/vendor/assets/javascripts/dojo/cldr/nls/he/currency.js.uncompressed.js +15 -0
  225. data/vendor/assets/javascripts/dojo/cldr/nls/he/gregorian.js +8 -0
  226. data/vendor/assets/javascripts/dojo/cldr/nls/he/gregorian.js.uncompressed.js +213 -0
  227. data/vendor/assets/javascripts/dojo/cldr/nls/he/hebrew.js +8 -0
  228. data/vendor/assets/javascripts/dojo/cldr/nls/he/hebrew.js.uncompressed.js +125 -0
  229. data/vendor/assets/javascripts/dojo/cldr/nls/he/islamic.js +8 -0
  230. data/vendor/assets/javascripts/dojo/cldr/nls/he/islamic.js.uncompressed.js +119 -0
  231. data/vendor/assets/javascripts/dojo/cldr/nls/he/number.js +8 -0
  232. data/vendor/assets/javascripts/dojo/cldr/nls/he/number.js.uncompressed.js +22 -0
  233. data/vendor/assets/javascripts/dojo/cldr/nls/hebrew.js +8 -0
  234. data/vendor/assets/javascripts/dojo/cldr/nls/hebrew.js.uncompressed.js +265 -0
  235. data/vendor/assets/javascripts/dojo/cldr/nls/hu/currency.js +8 -0
  236. data/vendor/assets/javascripts/dojo/cldr/nls/hu/currency.js.uncompressed.js +17 -0
  237. data/vendor/assets/javascripts/dojo/cldr/nls/hu/gregorian.js +8 -0
  238. data/vendor/assets/javascripts/dojo/cldr/nls/hu/gregorian.js.uncompressed.js +227 -0
  239. data/vendor/assets/javascripts/dojo/cldr/nls/hu/number.js +8 -0
  240. data/vendor/assets/javascripts/dojo/cldr/nls/hu/number.js.uncompressed.js +21 -0
  241. data/vendor/assets/javascripts/dojo/cldr/nls/islamic.js +8 -0
  242. data/vendor/assets/javascripts/dojo/cldr/nls/islamic.js.uncompressed.js +264 -0
  243. data/vendor/assets/javascripts/dojo/cldr/nls/it/currency.js +8 -0
  244. data/vendor/assets/javascripts/dojo/cldr/nls/it/currency.js.uncompressed.js +15 -0
  245. data/vendor/assets/javascripts/dojo/cldr/nls/it/gregorian.js +8 -0
  246. data/vendor/assets/javascripts/dojo/cldr/nls/it/gregorian.js.uncompressed.js +235 -0
  247. data/vendor/assets/javascripts/dojo/cldr/nls/it/number.js +8 -0
  248. data/vendor/assets/javascripts/dojo/cldr/nls/it/number.js.uncompressed.js +12 -0
  249. data/vendor/assets/javascripts/dojo/cldr/nls/ja/currency.js +8 -0
  250. data/vendor/assets/javascripts/dojo/cldr/nls/ja/currency.js.uncompressed.js +18 -0
  251. data/vendor/assets/javascripts/dojo/cldr/nls/ja/gregorian.js +8 -0
  252. data/vendor/assets/javascripts/dojo/cldr/nls/ja/gregorian.js.uncompressed.js +222 -0
  253. data/vendor/assets/javascripts/dojo/cldr/nls/ja/number.js +8 -0
  254. data/vendor/assets/javascripts/dojo/cldr/nls/ja/number.js.uncompressed.js +12 -0
  255. data/vendor/assets/javascripts/dojo/cldr/nls/ko/currency.js +8 -0
  256. data/vendor/assets/javascripts/dojo/cldr/nls/ko/currency.js.uncompressed.js +15 -0
  257. data/vendor/assets/javascripts/dojo/cldr/nls/ko/gregorian.js +8 -0
  258. data/vendor/assets/javascripts/dojo/cldr/nls/ko/gregorian.js.uncompressed.js +243 -0
  259. data/vendor/assets/javascripts/dojo/cldr/nls/ko/number.js +8 -0
  260. data/vendor/assets/javascripts/dojo/cldr/nls/ko/number.js.uncompressed.js +22 -0
  261. data/vendor/assets/javascripts/dojo/cldr/nls/nb/currency.js +8 -0
  262. data/vendor/assets/javascripts/dojo/cldr/nls/nb/currency.js.uncompressed.js +23 -0
  263. data/vendor/assets/javascripts/dojo/cldr/nls/nb/gregorian.js +8 -0
  264. data/vendor/assets/javascripts/dojo/cldr/nls/nb/gregorian.js.uncompressed.js +234 -0
  265. data/vendor/assets/javascripts/dojo/cldr/nls/nb/number.js +8 -0
  266. data/vendor/assets/javascripts/dojo/cldr/nls/nb/number.js.uncompressed.js +22 -0
  267. data/vendor/assets/javascripts/dojo/cldr/nls/nl/currency.js +8 -0
  268. data/vendor/assets/javascripts/dojo/cldr/nls/nl/currency.js.uncompressed.js +15 -0
  269. data/vendor/assets/javascripts/dojo/cldr/nls/nl/gregorian.js +8 -0
  270. data/vendor/assets/javascripts/dojo/cldr/nls/nl/gregorian.js.uncompressed.js +233 -0
  271. data/vendor/assets/javascripts/dojo/cldr/nls/nl/number.js +8 -0
  272. data/vendor/assets/javascripts/dojo/cldr/nls/nl/number.js.uncompressed.js +22 -0
  273. data/vendor/assets/javascripts/dojo/cldr/nls/number.js +8 -0
  274. data/vendor/assets/javascripts/dojo/cldr/nls/number.js.uncompressed.js +64 -0
  275. data/vendor/assets/javascripts/dojo/cldr/nls/pl/currency.js +8 -0
  276. data/vendor/assets/javascripts/dojo/cldr/nls/pl/currency.js.uncompressed.js +15 -0
  277. data/vendor/assets/javascripts/dojo/cldr/nls/pl/gregorian.js +8 -0
  278. data/vendor/assets/javascripts/dojo/cldr/nls/pl/gregorian.js.uncompressed.js +242 -0
  279. data/vendor/assets/javascripts/dojo/cldr/nls/pl/number.js +8 -0
  280. data/vendor/assets/javascripts/dojo/cldr/nls/pl/number.js.uncompressed.js +22 -0
  281. data/vendor/assets/javascripts/dojo/cldr/nls/pt-pt/gregorian.js +8 -0
  282. data/vendor/assets/javascripts/dojo/cldr/nls/pt-pt/gregorian.js.uncompressed.js +141 -0
  283. data/vendor/assets/javascripts/dojo/cldr/nls/pt-pt/number.js +8 -0
  284. data/vendor/assets/javascripts/dojo/cldr/nls/pt-pt/number.js.uncompressed.js +8 -0
  285. data/vendor/assets/javascripts/dojo/cldr/nls/pt/currency.js +8 -0
  286. data/vendor/assets/javascripts/dojo/cldr/nls/pt/currency.js.uncompressed.js +15 -0
  287. data/vendor/assets/javascripts/dojo/cldr/nls/pt/gregorian.js +8 -0
  288. data/vendor/assets/javascripts/dojo/cldr/nls/pt/gregorian.js.uncompressed.js +237 -0
  289. data/vendor/assets/javascripts/dojo/cldr/nls/pt/number.js +8 -0
  290. data/vendor/assets/javascripts/dojo/cldr/nls/pt/number.js.uncompressed.js +22 -0
  291. data/vendor/assets/javascripts/dojo/cldr/nls/ro/buddhist.js +8 -0
  292. data/vendor/assets/javascripts/dojo/cldr/nls/ro/buddhist.js.uncompressed.js +121 -0
  293. data/vendor/assets/javascripts/dojo/cldr/nls/ro/currency.js +8 -0
  294. data/vendor/assets/javascripts/dojo/cldr/nls/ro/currency.js.uncompressed.js +15 -0
  295. data/vendor/assets/javascripts/dojo/cldr/nls/ro/gregorian.js +8 -0
  296. data/vendor/assets/javascripts/dojo/cldr/nls/ro/gregorian.js.uncompressed.js +251 -0
  297. data/vendor/assets/javascripts/dojo/cldr/nls/ro/number.js +8 -0
  298. data/vendor/assets/javascripts/dojo/cldr/nls/ro/number.js.uncompressed.js +22 -0
  299. data/vendor/assets/javascripts/dojo/cldr/nls/ru/currency.js +8 -0
  300. data/vendor/assets/javascripts/dojo/cldr/nls/ru/currency.js.uncompressed.js +16 -0
  301. data/vendor/assets/javascripts/dojo/cldr/nls/ru/gregorian.js +8 -0
  302. data/vendor/assets/javascripts/dojo/cldr/nls/ru/gregorian.js.uncompressed.js +232 -0
  303. data/vendor/assets/javascripts/dojo/cldr/nls/ru/number.js +8 -0
  304. data/vendor/assets/javascripts/dojo/cldr/nls/ru/number.js.uncompressed.js +21 -0
  305. data/vendor/assets/javascripts/dojo/cldr/nls/sk/currency.js +8 -0
  306. data/vendor/assets/javascripts/dojo/cldr/nls/sk/currency.js.uncompressed.js +15 -0
  307. data/vendor/assets/javascripts/dojo/cldr/nls/sk/gregorian.js +8 -0
  308. data/vendor/assets/javascripts/dojo/cldr/nls/sk/gregorian.js.uncompressed.js +225 -0
  309. data/vendor/assets/javascripts/dojo/cldr/nls/sk/number.js +8 -0
  310. data/vendor/assets/javascripts/dojo/cldr/nls/sk/number.js.uncompressed.js +9 -0
  311. data/vendor/assets/javascripts/dojo/cldr/nls/sl/currency.js +8 -0
  312. data/vendor/assets/javascripts/dojo/cldr/nls/sl/currency.js.uncompressed.js +17 -0
  313. data/vendor/assets/javascripts/dojo/cldr/nls/sl/gregorian.js +8 -0
  314. data/vendor/assets/javascripts/dojo/cldr/nls/sl/gregorian.js.uncompressed.js +218 -0
  315. data/vendor/assets/javascripts/dojo/cldr/nls/sl/number.js +8 -0
  316. data/vendor/assets/javascripts/dojo/cldr/nls/sl/number.js.uncompressed.js +22 -0
  317. data/vendor/assets/javascripts/dojo/cldr/nls/sv/currency.js +8 -0
  318. data/vendor/assets/javascripts/dojo/cldr/nls/sv/currency.js.uncompressed.js +18 -0
  319. data/vendor/assets/javascripts/dojo/cldr/nls/sv/gregorian.js +8 -0
  320. data/vendor/assets/javascripts/dojo/cldr/nls/sv/gregorian.js.uncompressed.js +245 -0
  321. data/vendor/assets/javascripts/dojo/cldr/nls/sv/number.js +8 -0
  322. data/vendor/assets/javascripts/dojo/cldr/nls/sv/number.js.uncompressed.js +22 -0
  323. data/vendor/assets/javascripts/dojo/cldr/nls/th/buddhist.js +8 -0
  324. data/vendor/assets/javascripts/dojo/cldr/nls/th/buddhist.js.uncompressed.js +118 -0
  325. data/vendor/assets/javascripts/dojo/cldr/nls/th/currency.js +8 -0
  326. data/vendor/assets/javascripts/dojo/cldr/nls/th/currency.js.uncompressed.js +16 -0
  327. data/vendor/assets/javascripts/dojo/cldr/nls/th/gregorian.js +8 -0
  328. data/vendor/assets/javascripts/dojo/cldr/nls/th/gregorian.js.uncompressed.js +232 -0
  329. data/vendor/assets/javascripts/dojo/cldr/nls/th/number.js +8 -0
  330. data/vendor/assets/javascripts/dojo/cldr/nls/th/number.js.uncompressed.js +22 -0
  331. data/vendor/assets/javascripts/dojo/cldr/nls/tr/currency.js +8 -0
  332. data/vendor/assets/javascripts/dojo/cldr/nls/tr/currency.js.uncompressed.js +17 -0
  333. data/vendor/assets/javascripts/dojo/cldr/nls/tr/gregorian.js +8 -0
  334. data/vendor/assets/javascripts/dojo/cldr/nls/tr/gregorian.js.uncompressed.js +239 -0
  335. data/vendor/assets/javascripts/dojo/cldr/nls/tr/number.js +8 -0
  336. data/vendor/assets/javascripts/dojo/cldr/nls/tr/number.js.uncompressed.js +22 -0
  337. data/vendor/assets/javascripts/dojo/cldr/nls/zh-hant/buddhist.js +8 -0
  338. data/vendor/assets/javascripts/dojo/cldr/nls/zh-hant/buddhist.js.uncompressed.js +146 -0
  339. data/vendor/assets/javascripts/dojo/cldr/nls/zh-hant/currency.js +8 -0
  340. data/vendor/assets/javascripts/dojo/cldr/nls/zh-hant/currency.js.uncompressed.js +16 -0
  341. data/vendor/assets/javascripts/dojo/cldr/nls/zh-hant/gregorian.js +8 -0
  342. data/vendor/assets/javascripts/dojo/cldr/nls/zh-hant/gregorian.js.uncompressed.js +228 -0
  343. data/vendor/assets/javascripts/dojo/cldr/nls/zh-hant/islamic.js +8 -0
  344. data/vendor/assets/javascripts/dojo/cldr/nls/zh-hant/islamic.js.uncompressed.js +87 -0
  345. data/vendor/assets/javascripts/dojo/cldr/nls/zh-hant/number.js +8 -0
  346. data/vendor/assets/javascripts/dojo/cldr/nls/zh-hant/number.js.uncompressed.js +7 -0
  347. data/vendor/assets/javascripts/dojo/cldr/nls/zh-hk/currency.js +8 -0
  348. data/vendor/assets/javascripts/dojo/cldr/nls/zh-hk/currency.js.uncompressed.js +15 -0
  349. data/vendor/assets/javascripts/dojo/cldr/nls/zh-hk/gregorian.js +8 -0
  350. data/vendor/assets/javascripts/dojo/cldr/nls/zh-hk/gregorian.js.uncompressed.js +85 -0
  351. data/vendor/assets/javascripts/dojo/cldr/nls/zh-hk/number.js +8 -0
  352. data/vendor/assets/javascripts/dojo/cldr/nls/zh-hk/number.js.uncompressed.js +7 -0
  353. data/vendor/assets/javascripts/dojo/cldr/nls/zh-tw/currency.js +8 -0
  354. data/vendor/assets/javascripts/dojo/cldr/nls/zh-tw/currency.js.uncompressed.js +14 -0
  355. data/vendor/assets/javascripts/dojo/cldr/nls/zh-tw/gregorian.js +8 -0
  356. data/vendor/assets/javascripts/dojo/cldr/nls/zh-tw/gregorian.js.uncompressed.js +80 -0
  357. data/vendor/assets/javascripts/dojo/cldr/nls/zh/currency.js +8 -0
  358. data/vendor/assets/javascripts/dojo/cldr/nls/zh/currency.js.uncompressed.js +16 -0
  359. data/vendor/assets/javascripts/dojo/cldr/nls/zh/gregorian.js +8 -0
  360. data/vendor/assets/javascripts/dojo/cldr/nls/zh/gregorian.js.uncompressed.js +247 -0
  361. data/vendor/assets/javascripts/dojo/cldr/nls/zh/number.js +8 -0
  362. data/vendor/assets/javascripts/dojo/cldr/nls/zh/number.js.uncompressed.js +12 -0
  363. data/vendor/assets/javascripts/dojo/cldr/supplemental.js +44 -0
  364. data/vendor/assets/javascripts/dojo/cldr/supplemental.js.uncompressed.js +77 -0
  365. data/vendor/assets/javascripts/dojo/colors.js +74 -0
  366. data/vendor/assets/javascripts/dojo/colors.js.uncompressed.js +232 -0
  367. data/vendor/assets/javascripts/dojo/cookie.js +49 -0
  368. data/vendor/assets/javascripts/dojo/cookie.js.uncompressed.js +98 -0
  369. data/vendor/assets/javascripts/dojo/currency.js +32 -0
  370. data/vendor/assets/javascripts/dojo/currency.js.uncompressed.js +132 -0
  371. data/vendor/assets/javascripts/dojo/data/ItemFileReadStore.js +561 -0
  372. data/vendor/assets/javascripts/dojo/data/ItemFileReadStore.js.uncompressed.js +945 -0
  373. data/vendor/assets/javascripts/dojo/data/ItemFileWriteStore.js +499 -0
  374. data/vendor/assets/javascripts/dojo/data/ItemFileWriteStore.js.uncompressed.js +805 -0
  375. data/vendor/assets/javascripts/dojo/data/ObjectStore.js +285 -0
  376. data/vendor/assets/javascripts/dojo/data/ObjectStore.js.uncompressed.js +505 -0
  377. data/vendor/assets/javascripts/dojo/data/api/Identity.js +21 -0
  378. data/vendor/assets/javascripts/dojo/data/api/Identity.js.uncompressed.js +107 -0
  379. data/vendor/assets/javascripts/dojo/data/api/Notification.js +19 -0
  380. data/vendor/assets/javascripts/dojo/data/api/Notification.js.uncompressed.js +122 -0
  381. data/vendor/assets/javascripts/dojo/data/api/Read.js +39 -0
  382. data/vendor/assets/javascripts/dojo/data/api/Read.js.uncompressed.js +485 -0
  383. data/vendor/assets/javascripts/dojo/data/api/Request.js +13 -0
  384. data/vendor/assets/javascripts/dojo/data/api/Request.js.uncompressed.js +36 -0
  385. data/vendor/assets/javascripts/dojo/data/api/Write.js +29 -0
  386. data/vendor/assets/javascripts/dojo/data/api/Write.js.uncompressed.js +221 -0
  387. data/vendor/assets/javascripts/dojo/data/util/filter.js +52 -0
  388. data/vendor/assets/javascripts/dojo/data/util/filter.js.uncompressed.js +74 -0
  389. data/vendor/assets/javascripts/dojo/data/util/simpleFetch.js +63 -0
  390. data/vendor/assets/javascripts/dojo/data/util/simpleFetch.js.uncompressed.js +95 -0
  391. data/vendor/assets/javascripts/dojo/data/util/sorter.js +66 -0
  392. data/vendor/assets/javascripts/dojo/data/util/sorter.js.uncompressed.js +99 -0
  393. data/vendor/assets/javascripts/dojo/date.js +213 -0
  394. data/vendor/assets/javascripts/dojo/date.js.uncompressed.js +347 -0
  395. data/vendor/assets/javascripts/dojo/date/locale.js +452 -0
  396. data/vendor/assets/javascripts/dojo/date/locale.js.uncompressed.js +670 -0
  397. data/vendor/assets/javascripts/dojo/date/stamp.js +82 -0
  398. data/vendor/assets/javascripts/dojo/date/stamp.js.uncompressed.js +146 -0
  399. data/vendor/assets/javascripts/dojo/dnd/AutoSource.js +12 -0
  400. data/vendor/assets/javascripts/dojo/dnd/AutoSource.js.uncompressed.js +13 -0
  401. data/vendor/assets/javascripts/dojo/dnd/Avatar.js +62 -0
  402. data/vendor/assets/javascripts/dojo/dnd/Avatar.js.uncompressed.js +111 -0
  403. data/vendor/assets/javascripts/dojo/dnd/Container.js +231 -0
  404. data/vendor/assets/javascripts/dojo/dnd/Container.js.uncompressed.js +432 -0
  405. data/vendor/assets/javascripts/dojo/dnd/Manager.js +122 -0
  406. data/vendor/assets/javascripts/dojo/dnd/Manager.js.uncompressed.js +213 -0
  407. data/vendor/assets/javascripts/dojo/dnd/Moveable.js +75 -0
  408. data/vendor/assets/javascripts/dojo/dnd/Moveable.js.uncompressed.js +173 -0
  409. data/vendor/assets/javascripts/dojo/dnd/Mover.js +62 -0
  410. data/vendor/assets/javascripts/dojo/dnd/Mover.js.uncompressed.js +119 -0
  411. data/vendor/assets/javascripts/dojo/dnd/Selector.js +233 -0
  412. data/vendor/assets/javascripts/dojo/dnd/Selector.js.uncompressed.js +324 -0
  413. data/vendor/assets/javascripts/dojo/dnd/Source.js +284 -0
  414. data/vendor/assets/javascripts/dojo/dnd/Source.js.uncompressed.js +513 -0
  415. data/vendor/assets/javascripts/dojo/dnd/Target.js +13 -0
  416. data/vendor/assets/javascripts/dojo/dnd/Target.js.uncompressed.js +13 -0
  417. data/vendor/assets/javascripts/dojo/dnd/TimedMoveable.js +34 -0
  418. data/vendor/assets/javascripts/dojo/dnd/TimedMoveable.js.uncompressed.js +69 -0
  419. data/vendor/assets/javascripts/dojo/dnd/autoscroll.js +96 -0
  420. data/vendor/assets/javascripts/dojo/dnd/autoscroll.js.uncompressed.js +118 -0
  421. data/vendor/assets/javascripts/dojo/dnd/common.js +28 -0
  422. data/vendor/assets/javascripts/dojo/dnd/common.js.uncompressed.js +35 -0
  423. data/vendor/assets/javascripts/dojo/dnd/move.js +66 -0
  424. data/vendor/assets/javascripts/dojo/dnd/move.js.uncompressed.js +143 -0
  425. data/vendor/assets/javascripts/dojo/dojo.js +1872 -0
  426. data/vendor/assets/javascripts/dojo/dojo.js.uncompressed.js +16408 -0
  427. data/vendor/assets/javascripts/dojo/dojo.profile.js +40 -0
  428. data/vendor/assets/javascripts/dojo/dom-attr.js +62 -0
  429. data/vendor/assets/javascripts/dojo/dom-attr.js.uncompressed.js +238 -0
  430. data/vendor/assets/javascripts/dojo/dom-class.js +89 -0
  431. data/vendor/assets/javascripts/dojo/dom-class.js.uncompressed.js +320 -0
  432. data/vendor/assets/javascripts/dojo/dom-construct.js +141 -0
  433. data/vendor/assets/javascripts/dojo/dom-construct.js.uncompressed.js +376 -0
  434. data/vendor/assets/javascripts/dojo/dom-form.js +81 -0
  435. data/vendor/assets/javascripts/dojo/dom-form.js.uncompressed.js +166 -0
  436. data/vendor/assets/javascripts/dojo/dom-geometry.js +214 -0
  437. data/vendor/assets/javascripts/dojo/dom-geometry.js.uncompressed.js +751 -0
  438. data/vendor/assets/javascripts/dojo/dom-prop.js +69 -0
  439. data/vendor/assets/javascripts/dojo/dom-prop.js.uncompressed.js +190 -0
  440. data/vendor/assets/javascripts/dojo/dom-style.js +158 -0
  441. data/vendor/assets/javascripts/dojo/dom-style.js.uncompressed.js +321 -0
  442. data/vendor/assets/javascripts/dojo/dom.js +74 -0
  443. data/vendor/assets/javascripts/dojo/dom.js.uncompressed.js +156 -0
  444. data/vendor/assets/javascripts/dojo/domReady.js +95 -0
  445. data/vendor/assets/javascripts/dojo/domReady.js.uncompressed.js +95 -0
  446. data/vendor/assets/javascripts/dojo/fx.js +260 -0
  447. data/vendor/assets/javascripts/dojo/fx.js.uncompressed.js +426 -0
  448. data/vendor/assets/javascripts/dojo/fx/Toggler.js +28 -0
  449. data/vendor/assets/javascripts/dojo/fx/Toggler.js.uncompressed.js +103 -0
  450. data/vendor/assets/javascripts/dojo/fx/easing.js +166 -0
  451. data/vendor/assets/javascripts/dojo/fx/easing.js.uncompressed.js +284 -0
  452. data/vendor/assets/javascripts/dojo/gears.js +44 -0
  453. data/vendor/assets/javascripts/dojo/gears.js.uncompressed.js +61 -0
  454. data/vendor/assets/javascripts/dojo/has.js +66 -0
  455. data/vendor/assets/javascripts/dojo/has.js.uncompressed.js +178 -0
  456. data/vendor/assets/javascripts/dojo/hash.js +137 -0
  457. data/vendor/assets/javascripts/dojo/hash.js.uncompressed.js +243 -0
  458. data/vendor/assets/javascripts/dojo/html.js +148 -0
  459. data/vendor/assets/javascripts/dojo/html.js.uncompressed.js +342 -0
  460. data/vendor/assets/javascripts/dojo/i18n.js +211 -0
  461. data/vendor/assets/javascripts/dojo/i18n.js.uncompressed.js +514 -0
  462. data/vendor/assets/javascripts/dojo/io-query.js +53 -0
  463. data/vendor/assets/javascripts/dojo/io-query.js.uncompressed.js +98 -0
  464. data/vendor/assets/javascripts/dojo/io/iframe.js +230 -0
  465. data/vendor/assets/javascripts/dojo/io/iframe.js.uncompressed.js +376 -0
  466. data/vendor/assets/javascripts/dojo/io/script.js +114 -0
  467. data/vendor/assets/javascripts/dojo/io/script.js.uncompressed.js +256 -0
  468. data/vendor/assets/javascripts/dojo/jaxer.js +18 -0
  469. data/vendor/assets/javascripts/dojo/jaxer.js.uncompressed.js +19 -0
  470. data/vendor/assets/javascripts/dojo/json.js +102 -0
  471. data/vendor/assets/javascripts/dojo/json.js.uncompressed.js +149 -0
  472. data/vendor/assets/javascripts/dojo/keys.js +10 -0
  473. data/vendor/assets/javascripts/dojo/keys.js.uncompressed.js +80 -0
  474. data/vendor/assets/javascripts/dojo/loadInit.js +12 -0
  475. data/vendor/assets/javascripts/dojo/loadInit.js.uncompressed.js +7 -0
  476. data/vendor/assets/javascripts/dojo/main.js +29 -0
  477. data/vendor/assets/javascripts/dojo/main.js.uncompressed.js +50 -0
  478. data/vendor/assets/javascripts/dojo/mouse.js +48 -0
  479. data/vendor/assets/javascripts/dojo/mouse.js.uncompressed.js +127 -0
  480. data/vendor/assets/javascripts/dojo/nls/ar/colors.js +8 -0
  481. data/vendor/assets/javascripts/dojo/nls/ar/colors.js.uncompressed.js +156 -0
  482. data/vendor/assets/javascripts/dojo/nls/az/colors.js +8 -0
  483. data/vendor/assets/javascripts/dojo/nls/az/colors.js.uncompressed.js +153 -0
  484. data/vendor/assets/javascripts/dojo/nls/ca/colors.js +8 -0
  485. data/vendor/assets/javascripts/dojo/nls/ca/colors.js.uncompressed.js +156 -0
  486. data/vendor/assets/javascripts/dojo/nls/colors.js +8 -0
  487. data/vendor/assets/javascripts/dojo/nls/colors.js.uncompressed.js +191 -0
  488. data/vendor/assets/javascripts/dojo/nls/cs/colors.js +8 -0
  489. data/vendor/assets/javascripts/dojo/nls/cs/colors.js.uncompressed.js +156 -0
  490. data/vendor/assets/javascripts/dojo/nls/da/colors.js +8 -0
  491. data/vendor/assets/javascripts/dojo/nls/da/colors.js.uncompressed.js +156 -0
  492. data/vendor/assets/javascripts/dojo/nls/de/colors.js +8 -0
  493. data/vendor/assets/javascripts/dojo/nls/de/colors.js.uncompressed.js +156 -0
  494. data/vendor/assets/javascripts/dojo/nls/el/colors.js +8 -0
  495. data/vendor/assets/javascripts/dojo/nls/el/colors.js.uncompressed.js +156 -0
  496. data/vendor/assets/javascripts/dojo/nls/es/colors.js +8 -0
  497. data/vendor/assets/javascripts/dojo/nls/es/colors.js.uncompressed.js +156 -0
  498. data/vendor/assets/javascripts/dojo/nls/fi/colors.js +8 -0
  499. data/vendor/assets/javascripts/dojo/nls/fi/colors.js.uncompressed.js +156 -0
  500. data/vendor/assets/javascripts/dojo/nls/fr/colors.js +8 -0
  501. data/vendor/assets/javascripts/dojo/nls/fr/colors.js.uncompressed.js +156 -0
  502. data/vendor/assets/javascripts/dojo/nls/he/colors.js +8 -0
  503. data/vendor/assets/javascripts/dojo/nls/he/colors.js.uncompressed.js +158 -0
  504. data/vendor/assets/javascripts/dojo/nls/hr/colors.js +8 -0
  505. data/vendor/assets/javascripts/dojo/nls/hr/colors.js.uncompressed.js +156 -0
  506. data/vendor/assets/javascripts/dojo/nls/hu/colors.js +8 -0
  507. data/vendor/assets/javascripts/dojo/nls/hu/colors.js.uncompressed.js +156 -0
  508. data/vendor/assets/javascripts/dojo/nls/it/colors.js +8 -0
  509. data/vendor/assets/javascripts/dojo/nls/it/colors.js.uncompressed.js +156 -0
  510. data/vendor/assets/javascripts/dojo/nls/ja/colors.js +8 -0
  511. data/vendor/assets/javascripts/dojo/nls/ja/colors.js.uncompressed.js +156 -0
  512. data/vendor/assets/javascripts/dojo/nls/kk/colors.js +8 -0
  513. data/vendor/assets/javascripts/dojo/nls/kk/colors.js.uncompressed.js +156 -0
  514. data/vendor/assets/javascripts/dojo/nls/ko/colors.js +8 -0
  515. data/vendor/assets/javascripts/dojo/nls/ko/colors.js.uncompressed.js +156 -0
  516. data/vendor/assets/javascripts/dojo/nls/nb/colors.js +8 -0
  517. data/vendor/assets/javascripts/dojo/nls/nb/colors.js.uncompressed.js +156 -0
  518. data/vendor/assets/javascripts/dojo/nls/nl/colors.js +8 -0
  519. data/vendor/assets/javascripts/dojo/nls/nl/colors.js.uncompressed.js +156 -0
  520. data/vendor/assets/javascripts/dojo/nls/pl/colors.js +8 -0
  521. data/vendor/assets/javascripts/dojo/nls/pl/colors.js.uncompressed.js +156 -0
  522. data/vendor/assets/javascripts/dojo/nls/pt-pt/colors.js +8 -0
  523. data/vendor/assets/javascripts/dojo/nls/pt-pt/colors.js.uncompressed.js +156 -0
  524. data/vendor/assets/javascripts/dojo/nls/pt/colors.js +8 -0
  525. data/vendor/assets/javascripts/dojo/nls/pt/colors.js.uncompressed.js +156 -0
  526. data/vendor/assets/javascripts/dojo/nls/ro/colors.js +8 -0
  527. data/vendor/assets/javascripts/dojo/nls/ro/colors.js.uncompressed.js +156 -0
  528. data/vendor/assets/javascripts/dojo/nls/ru/colors.js +8 -0
  529. data/vendor/assets/javascripts/dojo/nls/ru/colors.js.uncompressed.js +156 -0
  530. data/vendor/assets/javascripts/dojo/nls/sk/colors.js +8 -0
  531. data/vendor/assets/javascripts/dojo/nls/sk/colors.js.uncompressed.js +156 -0
  532. data/vendor/assets/javascripts/dojo/nls/sl/colors.js +8 -0
  533. data/vendor/assets/javascripts/dojo/nls/sl/colors.js.uncompressed.js +156 -0
  534. data/vendor/assets/javascripts/dojo/nls/sv/colors.js +8 -0
  535. data/vendor/assets/javascripts/dojo/nls/sv/colors.js.uncompressed.js +156 -0
  536. data/vendor/assets/javascripts/dojo/nls/th/colors.js +8 -0
  537. data/vendor/assets/javascripts/dojo/nls/th/colors.js.uncompressed.js +156 -0
  538. data/vendor/assets/javascripts/dojo/nls/tr/colors.js +8 -0
  539. data/vendor/assets/javascripts/dojo/nls/tr/colors.js.uncompressed.js +156 -0
  540. data/vendor/assets/javascripts/dojo/nls/zh-tw/colors.js +8 -0
  541. data/vendor/assets/javascripts/dojo/nls/zh-tw/colors.js.uncompressed.js +156 -0
  542. data/vendor/assets/javascripts/dojo/nls/zh/colors.js +8 -0
  543. data/vendor/assets/javascripts/dojo/nls/zh/colors.js.uncompressed.js +156 -0
  544. data/vendor/assets/javascripts/dojo/number.js +305 -0
  545. data/vendor/assets/javascripts/dojo/number.js.uncompressed.js +576 -0
  546. data/vendor/assets/javascripts/dojo/on.js +311 -0
  547. data/vendor/assets/javascripts/dojo/on.js.uncompressed.js +474 -0
  548. data/vendor/assets/javascripts/dojo/package.json +23 -0
  549. data/vendor/assets/javascripts/dojo/parser.js +299 -0
  550. data/vendor/assets/javascripts/dojo/parser.js.uncompressed.js +594 -0
  551. data/vendor/assets/javascripts/dojo/query.js +195 -0
  552. data/vendor/assets/javascripts/dojo/query.js.uncompressed.js +713 -0
  553. data/vendor/assets/javascripts/dojo/ready.js +82 -0
  554. data/vendor/assets/javascripts/dojo/ready.js.uncompressed.js +138 -0
  555. data/vendor/assets/javascripts/dojo/regexp.js +32 -0
  556. data/vendor/assets/javascripts/dojo/regexp.js.uncompressed.js +73 -0
  557. data/vendor/assets/javascripts/dojo/require.js +12 -0
  558. data/vendor/assets/javascripts/dojo/require.js.uncompressed.js +7 -0
  559. data/vendor/assets/javascripts/dojo/resources/LICENSE +30 -0
  560. data/vendor/assets/javascripts/dojo/resources/_modules.js +36 -0
  561. data/vendor/assets/javascripts/dojo/resources/blank.gif +0 -0
  562. data/vendor/assets/javascripts/dojo/resources/blank.html +1 -0
  563. data/vendor/assets/javascripts/dojo/resources/dnd.css +14 -0
  564. data/vendor/assets/javascripts/dojo/resources/dojo.css +98 -0
  565. data/vendor/assets/javascripts/dojo/resources/iframe_history.html +44 -0
  566. data/vendor/assets/javascripts/dojo/resources/images/dndCopy.png +0 -0
  567. data/vendor/assets/javascripts/dojo/resources/images/dndMove.png +0 -0
  568. data/vendor/assets/javascripts/dojo/resources/images/dndNoCopy.png +0 -0
  569. data/vendor/assets/javascripts/dojo/resources/images/dndNoMove.png +0 -0
  570. data/vendor/assets/javascripts/dojo/rpc/JsonService.js +34 -0
  571. data/vendor/assets/javascripts/dojo/rpc/JsonService.js.uncompressed.js +85 -0
  572. data/vendor/assets/javascripts/dojo/rpc/JsonpService.js +29 -0
  573. data/vendor/assets/javascripts/dojo/rpc/JsonpService.js.uncompressed.js +67 -0
  574. data/vendor/assets/javascripts/dojo/rpc/RpcService.js +87 -0
  575. data/vendor/assets/javascripts/dojo/rpc/RpcService.js.uncompressed.js +175 -0
  576. data/vendor/assets/javascripts/dojo/selector/_loader.js +40 -0
  577. data/vendor/assets/javascripts/dojo/selector/_loader.js.uncompressed.js +45 -0
  578. data/vendor/assets/javascripts/dojo/selector/acme.js +765 -0
  579. data/vendor/assets/javascripts/dojo/selector/acme.js.uncompressed.js +1480 -0
  580. data/vendor/assets/javascripts/dojo/selector/lite.js +213 -0
  581. data/vendor/assets/javascripts/dojo/selector/lite.js.uncompressed.js +264 -0
  582. data/vendor/assets/javascripts/dojo/store/Cache.js +47 -0
  583. data/vendor/assets/javascripts/dojo/store/Cache.js.uncompressed.js +148 -0
  584. data/vendor/assets/javascripts/dojo/store/DataStore.js +103 -0
  585. data/vendor/assets/javascripts/dojo/store/DataStore.js.uncompressed.js +170 -0
  586. data/vendor/assets/javascripts/dojo/store/JsonRest.js +56 -0
  587. data/vendor/assets/javascripts/dojo/store/JsonRest.js.uncompressed.js +155 -0
  588. data/vendor/assets/javascripts/dojo/store/Memory.js +55 -0
  589. data/vendor/assets/javascripts/dojo/store/Memory.js.uncompressed.js +161 -0
  590. data/vendor/assets/javascripts/dojo/store/Observable.js +125 -0
  591. data/vendor/assets/javascripts/dojo/store/Observable.js.uncompressed.js +175 -0
  592. data/vendor/assets/javascripts/dojo/store/README +10 -0
  593. data/vendor/assets/javascripts/dojo/store/api/Store.js +52 -0
  594. data/vendor/assets/javascripts/dojo/store/api/Store.js.uncompressed.js +297 -0
  595. data/vendor/assets/javascripts/dojo/store/util/QueryResults.js +39 -0
  596. data/vendor/assets/javascripts/dojo/store/util/QueryResults.js.uncompressed.js +64 -0
  597. data/vendor/assets/javascripts/dojo/store/util/SimpleQueryEngine.js +63 -0
  598. data/vendor/assets/javascripts/dojo/store/util/SimpleQueryEngine.js.uncompressed.js +108 -0
  599. data/vendor/assets/javascripts/dojo/string.js +57 -0
  600. data/vendor/assets/javascripts/dojo/string.js.uncompressed.js +162 -0
  601. data/vendor/assets/javascripts/dojo/text.js +99 -0
  602. data/vendor/assets/javascripts/dojo/text.js.uncompressed.js +212 -0
  603. data/vendor/assets/javascripts/dojo/topic.js +15 -0
  604. data/vendor/assets/javascripts/dojo/topic.js.uncompressed.js +33 -0
  605. data/vendor/assets/javascripts/dojo/touch.js +17 -0
  606. data/vendor/assets/javascripts/dojo/touch.js.uncompressed.js +89 -0
  607. data/vendor/assets/javascripts/dojo/uacss.js +25 -0
  608. data/vendor/assets/javascripts/dojo/uacss.js.uncompressed.js +66 -0
  609. data/vendor/assets/javascripts/dojo/window.js +119 -0
  610. data/vendor/assets/javascripts/dojo/window.js.uncompressed.js +169 -0
  611. metadata +613 -3
@@ -0,0 +1,830 @@
1
+ define("dojo/_base/xhr", [
2
+ "./kernel", "./sniff", "require", "../io-query", "../dom", "../dom-form", "./Deferred", "./json", "./lang", "./array", "../on"
3
+ ], function(dojo, has, require, ioq, dom, domForm, deferred, json, lang, array, on){
4
+ // module:
5
+ // dojo/_base.xhr
6
+ // summary:
7
+ // This modules defines the dojo.xhr* API.
8
+
9
+ has.add("native-xhr", function() {
10
+ // if true, the environment has a native XHR implementation
11
+ return typeof XMLHttpRequest !== 'undefined';
12
+ });
13
+
14
+ if(1 && require.getXhr){
15
+ dojo._xhrObj = require.getXhr;
16
+ }else if (has("native-xhr")){
17
+ dojo._xhrObj = function(){
18
+ // summary:
19
+ // does the work of portably generating a new XMLHTTPRequest object.
20
+ try{
21
+ return new XMLHttpRequest();
22
+ }catch(e){
23
+ throw new Error("XMLHTTP not available: "+e);
24
+ }
25
+ };
26
+ }else{
27
+ // PROGIDs are in order of decreasing likelihood; this will change in time.
28
+ for(var XMLHTTP_PROGIDS = ['Msxml2.XMLHTTP', 'Microsoft.XMLHTTP', 'Msxml2.XMLHTTP.4.0'], progid, i = 0; i < 3;){
29
+ try{
30
+ progid = XMLHTTP_PROGIDS[i++];
31
+ if (new ActiveXObject(progid)) {
32
+ // this progid works; therefore, use it from now on
33
+ break;
34
+ }
35
+ }catch(e){
36
+ // squelch; we're just trying to find a good ActiveX PROGID
37
+ // if they all fail, then progid ends up as the last attempt and that will signal the error
38
+ // the first time the client actually tries to exec an xhr
39
+ }
40
+ }
41
+ dojo._xhrObj= function() {
42
+ return new ActiveXObject(progid);
43
+ };
44
+ }
45
+
46
+ var cfg = dojo.config;
47
+
48
+ // mix in io-query and dom-form
49
+ dojo.objectToQuery = ioq.objectToQuery;
50
+ dojo.queryToObject = ioq.queryToObject;
51
+ dojo.fieldToObject = domForm.fieldToObject;
52
+ dojo.formToObject = domForm.toObject;
53
+ dojo.formToQuery = domForm.toQuery;
54
+ dojo.formToJson = domForm.toJson;
55
+
56
+ // need to block async callbacks from snatching this thread as the result
57
+ // of an async callback might call another sync XHR, this hangs khtml forever
58
+ // must checked by watchInFlight()
59
+
60
+ dojo._blockAsync = false;
61
+
62
+ // MOW: remove dojo._contentHandlers alias in 2.0
63
+ var handlers = dojo._contentHandlers = dojo.contentHandlers = {
64
+ // summary:
65
+ // A map of availble XHR transport handle types. Name matches the
66
+ // `handleAs` attribute passed to XHR calls.
67
+ //
68
+ // description:
69
+ // A map of availble XHR transport handle types. Name matches the
70
+ // `handleAs` attribute passed to XHR calls. Each contentHandler is
71
+ // called, passing the xhr object for manipulation. The return value
72
+ // from the contentHandler will be passed to the `load` or `handle`
73
+ // functions defined in the original xhr call.
74
+ //
75
+ // example:
76
+ // Creating a custom content-handler:
77
+ // | dojo.contentHandlers.makeCaps = function(xhr){
78
+ // | return xhr.responseText.toUpperCase();
79
+ // | }
80
+ // | // and later:
81
+ // | dojo.xhrGet({
82
+ // | url:"foo.txt",
83
+ // | handleAs:"makeCaps",
84
+ // | load: function(data){ /* data is a toUpper version of foo.txt */ }
85
+ // | });
86
+
87
+ "text": function(xhr){
88
+ // summary: A contentHandler which simply returns the plaintext response data
89
+ return xhr.responseText;
90
+ },
91
+ "json": function(xhr){
92
+ // summary: A contentHandler which returns a JavaScript object created from the response data
93
+ return json.fromJson(xhr.responseText || null);
94
+ },
95
+ "json-comment-filtered": function(xhr){
96
+ // summary: A contentHandler which expects comment-filtered JSON.
97
+ // description:
98
+ // A contentHandler which expects comment-filtered JSON.
99
+ // the json-comment-filtered option was implemented to prevent
100
+ // "JavaScript Hijacking", but it is less secure than standard JSON. Use
101
+ // standard JSON instead. JSON prefixing can be used to subvert hijacking.
102
+ //
103
+ // Will throw a notice suggesting to use application/json mimetype, as
104
+ // json-commenting can introduce security issues. To decrease the chances of hijacking,
105
+ // use the standard `json` contentHandler, and prefix your "JSON" with: {}&&
106
+ //
107
+ // use djConfig.useCommentedJson = true to turn off the notice
108
+ if(!dojo.config.useCommentedJson){
109
+ console.warn("Consider using the standard mimetype:application/json."
110
+ + " json-commenting can introduce security issues. To"
111
+ + " decrease the chances of hijacking, use the standard the 'json' handler and"
112
+ + " prefix your json with: {}&&\n"
113
+ + "Use djConfig.useCommentedJson=true to turn off this message.");
114
+ }
115
+
116
+ var value = xhr.responseText;
117
+ var cStartIdx = value.indexOf("\/*");
118
+ var cEndIdx = value.lastIndexOf("*\/");
119
+ if(cStartIdx == -1 || cEndIdx == -1){
120
+ throw new Error("JSON was not comment filtered");
121
+ }
122
+ return json.fromJson(value.substring(cStartIdx+2, cEndIdx));
123
+ },
124
+ "javascript": function(xhr){
125
+ // summary: A contentHandler which evaluates the response data, expecting it to be valid JavaScript
126
+
127
+ // FIXME: try Moz and IE specific eval variants?
128
+ return dojo.eval(xhr.responseText);
129
+ },
130
+ "xml": function(xhr){
131
+ // summary: A contentHandler returning an XML Document parsed from the response data
132
+ var result = xhr.responseXML;
133
+
134
+ if(has("ie")){
135
+ if((!result || !result.documentElement)){
136
+ //WARNING: this branch used by the xml handling in dojo.io.iframe,
137
+ //so be sure to test dojo.io.iframe if making changes below.
138
+ var ms = function(n){ return "MSXML" + n + ".DOMDocument"; };
139
+ var dp = ["Microsoft.XMLDOM", ms(6), ms(4), ms(3), ms(2)];
140
+ array.some(dp, function(p){
141
+ try{
142
+ var dom = new ActiveXObject(p);
143
+ dom.async = false;
144
+ dom.loadXML(xhr.responseText);
145
+ result = dom;
146
+ }catch(e){ return false; }
147
+ return true;
148
+ });
149
+ }
150
+ }
151
+ return result; // DOMDocument
152
+ },
153
+ "json-comment-optional": function(xhr){
154
+ // summary: A contentHandler which checks the presence of comment-filtered JSON and
155
+ // alternates between the `json` and `json-comment-filtered` contentHandlers.
156
+ if(xhr.responseText && /^[^{\[]*\/\*/.test(xhr.responseText)){
157
+ return handlers["json-comment-filtered"](xhr);
158
+ }else{
159
+ return handlers["json"](xhr);
160
+ }
161
+ }
162
+ };
163
+
164
+ /*=====
165
+ dojo.__IoArgs = function(){
166
+ // url: String
167
+ // URL to server endpoint.
168
+ // content: Object?
169
+ // Contains properties with string values. These
170
+ // properties will be serialized as name1=value2 and
171
+ // passed in the request.
172
+ // timeout: Integer?
173
+ // Milliseconds to wait for the response. If this time
174
+ // passes, the then error callbacks are called.
175
+ // form: DOMNode?
176
+ // DOM node for a form. Used to extract the form values
177
+ // and send to the server.
178
+ // preventCache: Boolean?
179
+ // Default is false. If true, then a
180
+ // "dojo.preventCache" parameter is sent in the request
181
+ // with a value that changes with each request
182
+ // (timestamp). Useful only with GET-type requests.
183
+ // handleAs: String?
184
+ // Acceptable values depend on the type of IO
185
+ // transport (see specific IO calls for more information).
186
+ // rawBody: String?
187
+ // Sets the raw body for an HTTP request. If this is used, then the content
188
+ // property is ignored. This is mostly useful for HTTP methods that have
189
+ // a body to their requests, like PUT or POST. This property can be used instead
190
+ // of postData and putData for dojo.rawXhrPost and dojo.rawXhrPut respectively.
191
+ // ioPublish: Boolean?
192
+ // Set this explicitly to false to prevent publishing of topics related to
193
+ // IO operations. Otherwise, if djConfig.ioPublish is set to true, topics
194
+ // will be published via dojo.publish for different phases of an IO operation.
195
+ // See dojo.__IoPublish for a list of topics that are published.
196
+ // load: Function?
197
+ // This function will be
198
+ // called on a successful HTTP response code.
199
+ // error: Function?
200
+ // This function will
201
+ // be called when the request fails due to a network or server error, the url
202
+ // is invalid, etc. It will also be called if the load or handle callback throws an
203
+ // exception, unless djConfig.debugAtAllCosts is true. This allows deployed applications
204
+ // to continue to run even when a logic error happens in the callback, while making
205
+ // it easier to troubleshoot while in debug mode.
206
+ // handle: Function?
207
+ // This function will
208
+ // be called at the end of every request, whether or not an error occurs.
209
+ this.url = url;
210
+ this.content = content;
211
+ this.timeout = timeout;
212
+ this.form = form;
213
+ this.preventCache = preventCache;
214
+ this.handleAs = handleAs;
215
+ this.ioPublish = ioPublish;
216
+ this.load = function(response, ioArgs){
217
+ // ioArgs: dojo.__IoCallbackArgs
218
+ // Provides additional information about the request.
219
+ // response: Object
220
+ // The response in the format as defined with handleAs.
221
+ }
222
+ this.error = function(response, ioArgs){
223
+ // ioArgs: dojo.__IoCallbackArgs
224
+ // Provides additional information about the request.
225
+ // response: Object
226
+ // The response in the format as defined with handleAs.
227
+ }
228
+ this.handle = function(loadOrError, response, ioArgs){
229
+ // loadOrError: String
230
+ // Provides a string that tells you whether this function
231
+ // was called because of success (load) or failure (error).
232
+ // response: Object
233
+ // The response in the format as defined with handleAs.
234
+ // ioArgs: dojo.__IoCallbackArgs
235
+ // Provides additional information about the request.
236
+ }
237
+ }
238
+ =====*/
239
+
240
+ /*=====
241
+ dojo.__IoCallbackArgs = function(args, xhr, url, query, handleAs, id, canDelete, json){
242
+ // args: Object
243
+ // the original object argument to the IO call.
244
+ // xhr: XMLHttpRequest
245
+ // For XMLHttpRequest calls only, the
246
+ // XMLHttpRequest object that was used for the
247
+ // request.
248
+ // url: String
249
+ // The final URL used for the call. Many times it
250
+ // will be different than the original args.url
251
+ // value.
252
+ // query: String
253
+ // For non-GET requests, the
254
+ // name1=value1&name2=value2 parameters sent up in
255
+ // the request.
256
+ // handleAs: String
257
+ // The final indicator on how the response will be
258
+ // handled.
259
+ // id: String
260
+ // For dojo.io.script calls only, the internal
261
+ // script ID used for the request.
262
+ // canDelete: Boolean
263
+ // For dojo.io.script calls only, indicates
264
+ // whether the script tag that represents the
265
+ // request can be deleted after callbacks have
266
+ // been called. Used internally to know when
267
+ // cleanup can happen on JSONP-type requests.
268
+ // json: Object
269
+ // For dojo.io.script calls only: holds the JSON
270
+ // response for JSONP-type requests. Used
271
+ // internally to hold on to the JSON responses.
272
+ // You should not need to access it directly --
273
+ // the same object should be passed to the success
274
+ // callbacks directly.
275
+ this.args = args;
276
+ this.xhr = xhr;
277
+ this.url = url;
278
+ this.query = query;
279
+ this.handleAs = handleAs;
280
+ this.id = id;
281
+ this.canDelete = canDelete;
282
+ this.json = json;
283
+ }
284
+ =====*/
285
+
286
+
287
+ /*=====
288
+ dojo.__IoPublish = function(){
289
+ // summary:
290
+ // This is a list of IO topics that can be published
291
+ // if djConfig.ioPublish is set to true. IO topics can be
292
+ // published for any Input/Output, network operation. So,
293
+ // dojo.xhr, dojo.io.script and dojo.io.iframe can all
294
+ // trigger these topics to be published.
295
+ // start: String
296
+ // "/dojo/io/start" is sent when there are no outstanding IO
297
+ // requests, and a new IO request is started. No arguments
298
+ // are passed with this topic.
299
+ // send: String
300
+ // "/dojo/io/send" is sent whenever a new IO request is started.
301
+ // It passes the dojo.Deferred for the request with the topic.
302
+ // load: String
303
+ // "/dojo/io/load" is sent whenever an IO request has loaded
304
+ // successfully. It passes the response and the dojo.Deferred
305
+ // for the request with the topic.
306
+ // error: String
307
+ // "/dojo/io/error" is sent whenever an IO request has errored.
308
+ // It passes the error and the dojo.Deferred
309
+ // for the request with the topic.
310
+ // done: String
311
+ // "/dojo/io/done" is sent whenever an IO request has completed,
312
+ // either by loading or by erroring. It passes the error and
313
+ // the dojo.Deferred for the request with the topic.
314
+ // stop: String
315
+ // "/dojo/io/stop" is sent when all outstanding IO requests have
316
+ // finished. No arguments are passed with this topic.
317
+ this.start = "/dojo/io/start";
318
+ this.send = "/dojo/io/send";
319
+ this.load = "/dojo/io/load";
320
+ this.error = "/dojo/io/error";
321
+ this.done = "/dojo/io/done";
322
+ this.stop = "/dojo/io/stop";
323
+ }
324
+ =====*/
325
+
326
+
327
+ dojo._ioSetArgs = function(/*dojo.__IoArgs*/args,
328
+ /*Function*/canceller,
329
+ /*Function*/okHandler,
330
+ /*Function*/errHandler){
331
+ // summary:
332
+ // sets up the Deferred and ioArgs property on the Deferred so it
333
+ // can be used in an io call.
334
+ // args:
335
+ // The args object passed into the public io call. Recognized properties on
336
+ // the args object are:
337
+ // canceller:
338
+ // The canceller function used for the Deferred object. The function
339
+ // will receive one argument, the Deferred object that is related to the
340
+ // canceller.
341
+ // okHandler:
342
+ // The first OK callback to be registered with Deferred. It has the opportunity
343
+ // to transform the OK response. It will receive one argument -- the Deferred
344
+ // object returned from this function.
345
+ // errHandler:
346
+ // The first error callback to be registered with Deferred. It has the opportunity
347
+ // to do cleanup on an error. It will receive two arguments: error (the
348
+ // Error object) and dfd, the Deferred object returned from this function.
349
+
350
+ var ioArgs = {args: args, url: args.url};
351
+
352
+ //Get values from form if requestd.
353
+ var formObject = null;
354
+ if(args.form){
355
+ var form = dom.byId(args.form);
356
+ //IE requires going through getAttributeNode instead of just getAttribute in some form cases,
357
+ //so use it for all. See #2844
358
+ var actnNode = form.getAttributeNode("action");
359
+ ioArgs.url = ioArgs.url || (actnNode ? actnNode.value : null);
360
+ formObject = domForm.toObject(form);
361
+ }
362
+
363
+ // set up the query params
364
+ var miArgs = [{}];
365
+
366
+ if(formObject){
367
+ // potentially over-ride url-provided params w/ form values
368
+ miArgs.push(formObject);
369
+ }
370
+ if(args.content){
371
+ // stuff in content over-rides what's set by form
372
+ miArgs.push(args.content);
373
+ }
374
+ if(args.preventCache){
375
+ miArgs.push({"dojo.preventCache": new Date().valueOf()});
376
+ }
377
+ ioArgs.query = ioq.objectToQuery(lang.mixin.apply(null, miArgs));
378
+
379
+ // .. and the real work of getting the deferred in order, etc.
380
+ ioArgs.handleAs = args.handleAs || "text";
381
+ var d = new deferred(canceller);
382
+ d.addCallbacks(okHandler, function(error){
383
+ return errHandler(error, d);
384
+ });
385
+
386
+ //Support specifying load, error and handle callback functions from the args.
387
+ //For those callbacks, the "this" object will be the args object.
388
+ //The callbacks will get the deferred result value as the
389
+ //first argument and the ioArgs object as the second argument.
390
+ var ld = args.load;
391
+ if(ld && lang.isFunction(ld)){
392
+ d.addCallback(function(value){
393
+ return ld.call(args, value, ioArgs);
394
+ });
395
+ }
396
+ var err = args.error;
397
+ if(err && lang.isFunction(err)){
398
+ d.addErrback(function(value){
399
+ return err.call(args, value, ioArgs);
400
+ });
401
+ }
402
+ var handle = args.handle;
403
+ if(handle && lang.isFunction(handle)){
404
+ d.addBoth(function(value){
405
+ return handle.call(args, value, ioArgs);
406
+ });
407
+ }
408
+
409
+ //Plug in topic publishing, if dojo.publish is loaded.
410
+ if(cfg.ioPublish && dojo.publish && ioArgs.args.ioPublish !== false){
411
+ d.addCallbacks(
412
+ function(res){
413
+ dojo.publish("/dojo/io/load", [d, res]);
414
+ return res;
415
+ },
416
+ function(res){
417
+ dojo.publish("/dojo/io/error", [d, res]);
418
+ return res;
419
+ }
420
+ );
421
+ d.addBoth(function(res){
422
+ dojo.publish("/dojo/io/done", [d, res]);
423
+ return res;
424
+ });
425
+ }
426
+
427
+ d.ioArgs = ioArgs;
428
+
429
+ // FIXME: need to wire up the xhr object's abort method to something
430
+ // analagous in the Deferred
431
+ return d;
432
+ };
433
+
434
+ var _deferredCancel = function(/*Deferred*/dfd){
435
+ // summary: canceller function for dojo._ioSetArgs call.
436
+
437
+ dfd.canceled = true;
438
+ var xhr = dfd.ioArgs.xhr;
439
+ var _at = typeof xhr.abort;
440
+ if(_at == "function" || _at == "object" || _at == "unknown"){
441
+ xhr.abort();
442
+ }
443
+ var err = dfd.ioArgs.error;
444
+ if(!err){
445
+ err = new Error("xhr cancelled");
446
+ err.dojoType="cancel";
447
+ }
448
+ return err;
449
+ };
450
+ var _deferredOk = function(/*Deferred*/dfd){
451
+ // summary: okHandler function for dojo._ioSetArgs call.
452
+
453
+ var ret = handlers[dfd.ioArgs.handleAs](dfd.ioArgs.xhr);
454
+ return ret === undefined ? null : ret;
455
+ };
456
+ var _deferError = function(/*Error*/error, /*Deferred*/dfd){
457
+ // summary: errHandler function for dojo._ioSetArgs call.
458
+
459
+ if(!dfd.ioArgs.args.failOk){
460
+ console.error(error);
461
+ }
462
+ return error;
463
+ };
464
+
465
+ // avoid setting a timer per request. It degrades performance on IE
466
+ // something fierece if we don't use unified loops.
467
+ var _inFlightIntvl = null;
468
+ var _inFlight = [];
469
+
470
+
471
+ //Use a separate count for knowing if we are starting/stopping io calls.
472
+ //Cannot use _inFlight.length since it can change at a different time than
473
+ //when we want to do this kind of test. We only want to decrement the count
474
+ //after a callback/errback has finished, since the callback/errback should be
475
+ //considered as part of finishing a request.
476
+ var _pubCount = 0;
477
+ var _checkPubCount = function(dfd){
478
+ if(_pubCount <= 0){
479
+ _pubCount = 0;
480
+ if(cfg.ioPublish && dojo.publish && (!dfd || dfd && dfd.ioArgs.args.ioPublish !== false)){
481
+ dojo.publish("/dojo/io/stop");
482
+ }
483
+ }
484
+ };
485
+
486
+ var _watchInFlight = function(){
487
+ //summary:
488
+ // internal method that checks each inflight XMLHttpRequest to see
489
+ // if it has completed or if the timeout situation applies.
490
+
491
+ var now = (new Date()).getTime();
492
+ // make sure sync calls stay thread safe, if this callback is called
493
+ // during a sync call and this results in another sync call before the
494
+ // first sync call ends the browser hangs
495
+ if(!dojo._blockAsync){
496
+ // we need manual loop because we often modify _inFlight (and therefore 'i') while iterating
497
+ // note: the second clause is an assigment on purpose, lint may complain
498
+ for(var i = 0, tif; i < _inFlight.length && (tif = _inFlight[i]); i++){
499
+ var dfd = tif.dfd;
500
+ var func = function(){
501
+ if(!dfd || dfd.canceled || !tif.validCheck(dfd)){
502
+ _inFlight.splice(i--, 1);
503
+ _pubCount -= 1;
504
+ }else if(tif.ioCheck(dfd)){
505
+ _inFlight.splice(i--, 1);
506
+ tif.resHandle(dfd);
507
+ _pubCount -= 1;
508
+ }else if(dfd.startTime){
509
+ //did we timeout?
510
+ if(dfd.startTime + (dfd.ioArgs.args.timeout || 0) < now){
511
+ _inFlight.splice(i--, 1);
512
+ var err = new Error("timeout exceeded");
513
+ err.dojoType = "timeout";
514
+ dfd.errback(err);
515
+ //Cancel the request so the io module can do appropriate cleanup.
516
+ dfd.cancel();
517
+ _pubCount -= 1;
518
+ }
519
+ }
520
+ };
521
+ if(dojo.config.debugAtAllCosts){
522
+ func.call(this);
523
+ }else{
524
+ try{
525
+ func.call(this);
526
+ }catch(e){
527
+ dfd.errback(e);
528
+ }
529
+ }
530
+ }
531
+ }
532
+
533
+ _checkPubCount(dfd);
534
+
535
+ if(!_inFlight.length){
536
+ clearInterval(_inFlightIntvl);
537
+ _inFlightIntvl = null;
538
+ }
539
+ };
540
+
541
+ dojo._ioCancelAll = function(){
542
+ //summary: Cancels all pending IO requests, regardless of IO type
543
+ //(xhr, script, iframe).
544
+ try{
545
+ array.forEach(_inFlight, function(i){
546
+ try{
547
+ i.dfd.cancel();
548
+ }catch(e){/*squelch*/}
549
+ });
550
+ }catch(e){/*squelch*/}
551
+ };
552
+
553
+ //Automatically call cancel all io calls on unload
554
+ //in IE for trac issue #2357.
555
+ if(has("ie")){
556
+ on(window, "unload", dojo._ioCancelAll);
557
+ }
558
+
559
+ dojo._ioNotifyStart = function(/*Deferred*/dfd){
560
+ // summary:
561
+ // If dojo.publish is available, publish topics
562
+ // about the start of a request queue and/or the
563
+ // the beginning of request.
564
+ // description:
565
+ // Used by IO transports. An IO transport should
566
+ // call this method before making the network connection.
567
+ if(cfg.ioPublish && dojo.publish && dfd.ioArgs.args.ioPublish !== false){
568
+ if(!_pubCount){
569
+ dojo.publish("/dojo/io/start");
570
+ }
571
+ _pubCount += 1;
572
+ dojo.publish("/dojo/io/send", [dfd]);
573
+ }
574
+ };
575
+
576
+ dojo._ioWatch = function(dfd, validCheck, ioCheck, resHandle){
577
+ // summary:
578
+ // Watches the io request represented by dfd to see if it completes.
579
+ // dfd: Deferred
580
+ // The Deferred object to watch.
581
+ // validCheck: Function
582
+ // Function used to check if the IO request is still valid. Gets the dfd
583
+ // object as its only argument.
584
+ // ioCheck: Function
585
+ // Function used to check if basic IO call worked. Gets the dfd
586
+ // object as its only argument.
587
+ // resHandle: Function
588
+ // Function used to process response. Gets the dfd
589
+ // object as its only argument.
590
+ var args = dfd.ioArgs.args;
591
+ if(args.timeout){
592
+ dfd.startTime = (new Date()).getTime();
593
+ }
594
+
595
+ _inFlight.push({dfd: dfd, validCheck: validCheck, ioCheck: ioCheck, resHandle: resHandle});
596
+ if(!_inFlightIntvl){
597
+ _inFlightIntvl = setInterval(_watchInFlight, 50);
598
+ }
599
+ // handle sync requests
600
+ //A weakness: async calls in flight
601
+ //could have their handlers called as part of the
602
+ //_watchInFlight call, before the sync's callbacks
603
+ // are called.
604
+ if(args.sync){
605
+ _watchInFlight();
606
+ }
607
+ };
608
+
609
+ var _defaultContentType = "application/x-www-form-urlencoded";
610
+
611
+ var _validCheck = function(/*Deferred*/dfd){
612
+ return dfd.ioArgs.xhr.readyState; //boolean
613
+ };
614
+ var _ioCheck = function(/*Deferred*/dfd){
615
+ return 4 == dfd.ioArgs.xhr.readyState; //boolean
616
+ };
617
+ var _resHandle = function(/*Deferred*/dfd){
618
+ var xhr = dfd.ioArgs.xhr;
619
+ if(dojo._isDocumentOk(xhr)){
620
+ dfd.callback(dfd);
621
+ }else{
622
+ var err = new Error("Unable to load " + dfd.ioArgs.url + " status:" + xhr.status);
623
+ err.status = xhr.status;
624
+ err.responseText = xhr.responseText;
625
+ err.xhr = xhr;
626
+ dfd.errback(err);
627
+ }
628
+ };
629
+
630
+ dojo._ioAddQueryToUrl = function(/*dojo.__IoCallbackArgs*/ioArgs){
631
+ //summary: Adds query params discovered by the io deferred construction to the URL.
632
+ //Only use this for operations which are fundamentally GET-type operations.
633
+ if(ioArgs.query.length){
634
+ ioArgs.url += (ioArgs.url.indexOf("?") == -1 ? "?" : "&") + ioArgs.query;
635
+ ioArgs.query = null;
636
+ }
637
+ };
638
+
639
+ /*=====
640
+ dojo.declare("dojo.__XhrArgs", dojo.__IoArgs, {
641
+ constructor: function(){
642
+ // summary:
643
+ // In addition to the properties listed for the dojo._IoArgs type,
644
+ // the following properties are allowed for dojo.xhr* methods.
645
+ // handleAs: String?
646
+ // Acceptable values are: text (default), json, json-comment-optional,
647
+ // json-comment-filtered, javascript, xml. See `dojo.contentHandlers`
648
+ // sync: Boolean?
649
+ // false is default. Indicates whether the request should
650
+ // be a synchronous (blocking) request.
651
+ // headers: Object?
652
+ // Additional HTTP headers to send in the request.
653
+ // failOk: Boolean?
654
+ // false is default. Indicates whether a request should be
655
+ // allowed to fail (and therefore no console error message in
656
+ // the event of a failure)
657
+ // contentType: String|Boolean
658
+ // "application/x-www-form-urlencoded" is default. Set to false to
659
+ // prevent a Content-Type header from being sent, or to a string
660
+ // to send a different Content-Type.
661
+ this.handleAs = handleAs;
662
+ this.sync = sync;
663
+ this.headers = headers;
664
+ this.failOk = failOk;
665
+ }
666
+ });
667
+ =====*/
668
+
669
+ dojo.xhr = function(/*String*/ method, /*dojo.__XhrArgs*/ args, /*Boolean?*/ hasBody){
670
+ // summary:
671
+ // Sends an HTTP request with the given method.
672
+ // description:
673
+ // Sends an HTTP request with the given method.
674
+ // See also dojo.xhrGet(), xhrPost(), xhrPut() and dojo.xhrDelete() for shortcuts
675
+ // for those HTTP methods. There are also methods for "raw" PUT and POST methods
676
+ // via dojo.rawXhrPut() and dojo.rawXhrPost() respectively.
677
+ // method:
678
+ // HTTP method to be used, such as GET, POST, PUT, DELETE. Should be uppercase.
679
+ // hasBody:
680
+ // If the request has an HTTP body, then pass true for hasBody.
681
+
682
+ //Make the Deferred object for this xhr request.
683
+ var dfd = dojo._ioSetArgs(args, _deferredCancel, _deferredOk, _deferError);
684
+ var ioArgs = dfd.ioArgs;
685
+
686
+ //Pass the args to _xhrObj, to allow alternate XHR calls based specific calls, like
687
+ //the one used for iframe proxies.
688
+ var xhr = ioArgs.xhr = dojo._xhrObj(ioArgs.args);
689
+ //If XHR factory fails, cancel the deferred.
690
+ if(!xhr){
691
+ dfd.cancel();
692
+ return dfd;
693
+ }
694
+
695
+ //Allow for specifying the HTTP body completely.
696
+ if("postData" in args){
697
+ ioArgs.query = args.postData;
698
+ }else if("putData" in args){
699
+ ioArgs.query = args.putData;
700
+ }else if("rawBody" in args){
701
+ ioArgs.query = args.rawBody;
702
+ }else if((arguments.length > 2 && !hasBody) || "POST|PUT".indexOf(method.toUpperCase()) == -1){
703
+ //Check for hasBody being passed. If no hasBody,
704
+ //then only append query string if not a POST or PUT request.
705
+ dojo._ioAddQueryToUrl(ioArgs);
706
+ }
707
+
708
+ // IE 6 is a steaming pile. It won't let you call apply() on the native function (xhr.open).
709
+ // workaround for IE6's apply() "issues"
710
+ xhr.open(method, ioArgs.url, args.sync !== true, args.user || undefined, args.password || undefined);
711
+ if(args.headers){
712
+ for(var hdr in args.headers){
713
+ if(hdr.toLowerCase() === "content-type" && !args.contentType){
714
+ args.contentType = args.headers[hdr];
715
+ }else if(args.headers[hdr]){
716
+ //Only add header if it has a value. This allows for instnace, skipping
717
+ //insertion of X-Requested-With by specifying empty value.
718
+ xhr.setRequestHeader(hdr, args.headers[hdr]);
719
+ }
720
+ }
721
+ }
722
+ // FIXME: is this appropriate for all content types?
723
+ if(args.contentType !== false){
724
+ xhr.setRequestHeader("Content-Type", args.contentType || _defaultContentType);
725
+ }
726
+ if(!args.headers || !("X-Requested-With" in args.headers)){
727
+ xhr.setRequestHeader("X-Requested-With", "XMLHttpRequest");
728
+ }
729
+ // FIXME: set other headers here!
730
+ dojo._ioNotifyStart(dfd);
731
+ if(dojo.config.debugAtAllCosts){
732
+ xhr.send(ioArgs.query);
733
+ }else{
734
+ try{
735
+ xhr.send(ioArgs.query);
736
+ }catch(e){
737
+ ioArgs.error = e;
738
+ dfd.cancel();
739
+ }
740
+ }
741
+ dojo._ioWatch(dfd, _validCheck, _ioCheck, _resHandle);
742
+ xhr = null;
743
+ return dfd; // dojo.Deferred
744
+ };
745
+
746
+ dojo.xhrGet = function(/*dojo.__XhrArgs*/ args){
747
+ // summary:
748
+ // Sends an HTTP GET request to the server.
749
+ return dojo.xhr("GET", args); // dojo.Deferred
750
+ };
751
+
752
+ dojo.rawXhrPost = dojo.xhrPost = function(/*dojo.__XhrArgs*/ args){
753
+ // summary:
754
+ // Sends an HTTP POST request to the server. In addtion to the properties
755
+ // listed for the dojo.__XhrArgs type, the following property is allowed:
756
+ // postData:
757
+ // String. Send raw data in the body of the POST request.
758
+ return dojo.xhr("POST", args, true); // dojo.Deferred
759
+ };
760
+
761
+ dojo.rawXhrPut = dojo.xhrPut = function(/*dojo.__XhrArgs*/ args){
762
+ // summary:
763
+ // Sends an HTTP PUT request to the server. In addtion to the properties
764
+ // listed for the dojo.__XhrArgs type, the following property is allowed:
765
+ // putData:
766
+ // String. Send raw data in the body of the PUT request.
767
+ return dojo.xhr("PUT", args, true); // dojo.Deferred
768
+ };
769
+
770
+ dojo.xhrDelete = function(/*dojo.__XhrArgs*/ args){
771
+ // summary:
772
+ // Sends an HTTP DELETE request to the server.
773
+ return dojo.xhr("DELETE", args); //dojo.Deferred
774
+ };
775
+
776
+ /*
777
+ dojo.wrapForm = function(formNode){
778
+ //summary:
779
+ // A replacement for FormBind, but not implemented yet.
780
+
781
+ // FIXME: need to think harder about what extensions to this we might
782
+ // want. What should we allow folks to do w/ this? What events to
783
+ // set/send?
784
+ throw new Error("dojo.wrapForm not yet implemented");
785
+ }
786
+ */
787
+
788
+ dojo._isDocumentOk = function(http){
789
+ var stat = http.status || 0;
790
+ stat =
791
+ (stat >= 200 && stat < 300) || // allow any 2XX response code
792
+ stat == 304 || // or, get it out of the cache
793
+ stat == 1223 || // or, Internet Explorer mangled the status code
794
+ !stat; // or, we're Titanium/browser chrome/chrome extension requesting a local file
795
+ return stat; // Boolean
796
+ };
797
+
798
+ dojo._getText = function(url){
799
+ var result;
800
+ dojo.xhrGet({url:url, sync:true, load:function(text){
801
+ result = text;
802
+ }});
803
+ return result;
804
+ };
805
+
806
+ // Add aliases for static functions to dojo.xhr since dojo.xhr is what's returned from this module
807
+ lang.mixin(dojo.xhr, {
808
+ _xhrObj: dojo._xhrObj,
809
+ fieldToObject: domForm.fieldToObject,
810
+ formToObject: domForm.toObject,
811
+ objectToQuery: ioq.objectToQuery,
812
+ formToQuery: domForm.toQuery,
813
+ formToJson: domForm.toJson,
814
+ queryToObject: ioq.queryToObject,
815
+ contentHandlers: handlers,
816
+ _ioSetArgs: dojo._ioSetArgs,
817
+ _ioCancelAll: dojo._ioCancelAll,
818
+ _ioNotifyStart: dojo._ioNotifyStart,
819
+ _ioWatch: dojo._ioWatch,
820
+ _ioAddQueryToUrl: dojo._ioAddQueryToUrl,
821
+ _isDocumentOk: dojo._isDocumentOk,
822
+ _getText: dojo._getText,
823
+ get: dojo.xhrGet,
824
+ post: dojo.xhrPost,
825
+ put: dojo.xhrPut,
826
+ del: dojo.xhrDelete // because "delete" is a reserved word
827
+ });
828
+
829
+ return dojo.xhr;
830
+ });