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.
- data/.gitignore +18 -0
- data/Gemfile +4 -0
- data/LICENSE +22 -0
- data/Rakefile +3 -0
- data/dojo-rails.gemspec +20 -0
- data/lib/dojo-rails.rb +1 -0
- data/lib/dojo/rails.rb +2 -0
- data/lib/dojo/rails/engine.rb +6 -0
- data/lib/dojo/rails/version.rb +9 -0
- data/lib/dojo/version.rb +7 -0
- data/vendor/assets/javascripts/dojo.js +15 -0
- data/vendor/assets/javascripts/dojo/AdapterRegistry.js +38 -0
- data/vendor/assets/javascripts/dojo/AdapterRegistry.js.uncompressed.js +113 -0
- data/vendor/assets/javascripts/dojo/DeferredList.js +57 -0
- data/vendor/assets/javascripts/dojo/DeferredList.js.uncompressed.js +86 -0
- data/vendor/assets/javascripts/dojo/Evented.js +23 -0
- data/vendor/assets/javascripts/dojo/Evented.js.uncompressed.js +32 -0
- data/vendor/assets/javascripts/dojo/LICENSE +195 -0
- data/vendor/assets/javascripts/dojo/NodeList-data.js +59 -0
- data/vendor/assets/javascripts/dojo/NodeList-data.js.uncompressed.js +181 -0
- data/vendor/assets/javascripts/dojo/NodeList-dom.js +122 -0
- data/vendor/assets/javascripts/dojo/NodeList-dom.js.uncompressed.js +454 -0
- data/vendor/assets/javascripts/dojo/NodeList-fx.js +39 -0
- data/vendor/assets/javascripts/dojo/NodeList-fx.js.uncompressed.js +222 -0
- data/vendor/assets/javascripts/dojo/NodeList-html.js +20 -0
- data/vendor/assets/javascripts/dojo/NodeList-html.js.uncompressed.js +55 -0
- data/vendor/assets/javascripts/dojo/NodeList-manipulate.js +210 -0
- data/vendor/assets/javascripts/dojo/NodeList-manipulate.js.uncompressed.js +730 -0
- data/vendor/assets/javascripts/dojo/NodeList-traverse.js +124 -0
- data/vendor/assets/javascripts/dojo/NodeList-traverse.js.uncompressed.js +508 -0
- data/vendor/assets/javascripts/dojo/OpenAjax.js +194 -0
- data/vendor/assets/javascripts/dojo/Stateful.js +67 -0
- data/vendor/assets/javascripts/dojo/Stateful.js.uncompressed.js +139 -0
- data/vendor/assets/javascripts/dojo/_base/Color.js +96 -0
- data/vendor/assets/javascripts/dojo/_base/Color.js.uncompressed.js +220 -0
- data/vendor/assets/javascripts/dojo/_base/Deferred.js +129 -0
- data/vendor/assets/javascripts/dojo/_base/Deferred.js.uncompressed.js +366 -0
- data/vendor/assets/javascripts/dojo/_base/NodeList.js +24 -0
- data/vendor/assets/javascripts/dojo/_base/NodeList.js.uncompressed.js +100 -0
- data/vendor/assets/javascripts/dojo/_base/array.js +142 -0
- data/vendor/assets/javascripts/dojo/_base/array.js.uncompressed.js +343 -0
- data/vendor/assets/javascripts/dojo/_base/browser.js +13 -0
- data/vendor/assets/javascripts/dojo/_base/browser.js.uncompressed.js +21 -0
- data/vendor/assets/javascripts/dojo/_base/config.js +26 -0
- data/vendor/assets/javascripts/dojo/_base/config.js.uncompressed.js +174 -0
- data/vendor/assets/javascripts/dojo/_base/configFirefoxExtension.js +334 -0
- data/vendor/assets/javascripts/dojo/_base/configNode.js +87 -0
- data/vendor/assets/javascripts/dojo/_base/configRhino.js +121 -0
- data/vendor/assets/javascripts/dojo/_base/configSpidermonkey.js +84 -0
- data/vendor/assets/javascripts/dojo/_base/connect.js +163 -0
- data/vendor/assets/javascripts/dojo/_base/connect.js.uncompressed.js +400 -0
- data/vendor/assets/javascripts/dojo/_base/declare.js +430 -0
- data/vendor/assets/javascripts/dojo/_base/declare.js.uncompressed.js +1050 -0
- data/vendor/assets/javascripts/dojo/_base/event.js +36 -0
- data/vendor/assets/javascripts/dojo/_base/event.js.uncompressed.js +51 -0
- data/vendor/assets/javascripts/dojo/_base/fx.js +295 -0
- data/vendor/assets/javascripts/dojo/_base/fx.js.uncompressed.js +666 -0
- data/vendor/assets/javascripts/dojo/_base/html.js +88 -0
- data/vendor/assets/javascripts/dojo/_base/html.js.uncompressed.js +389 -0
- data/vendor/assets/javascripts/dojo/_base/json.js +26 -0
- data/vendor/assets/javascripts/dojo/_base/json.js.uncompressed.js +85 -0
- data/vendor/assets/javascripts/dojo/_base/kernel.js +114 -0
- data/vendor/assets/javascripts/dojo/_base/kernel.js.uncompressed.js +302 -0
- data/vendor/assets/javascripts/dojo/_base/lang.js +178 -0
- data/vendor/assets/javascripts/dojo/_base/lang.js.uncompressed.js +707 -0
- data/vendor/assets/javascripts/dojo/_base/loader.js +258 -0
- data/vendor/assets/javascripts/dojo/_base/loader.js.uncompressed.js +718 -0
- data/vendor/assets/javascripts/dojo/_base/query.js +10 -0
- data/vendor/assets/javascripts/dojo/_base/query.js.uncompressed.js +3 -0
- data/vendor/assets/javascripts/dojo/_base/sniff.js +68 -0
- data/vendor/assets/javascripts/dojo/_base/sniff.js.uncompressed.js +187 -0
- data/vendor/assets/javascripts/dojo/_base/unload.js +21 -0
- data/vendor/assets/javascripts/dojo/_base/unload.js.uncompressed.js +81 -0
- data/vendor/assets/javascripts/dojo/_base/url.js +88 -0
- data/vendor/assets/javascripts/dojo/_base/url.js.uncompressed.js +111 -0
- data/vendor/assets/javascripts/dojo/_base/window.js +55 -0
- data/vendor/assets/javascripts/dojo/_base/window.js.uncompressed.js +126 -0
- data/vendor/assets/javascripts/dojo/_base/xhr.js +381 -0
- data/vendor/assets/javascripts/dojo/_base/xhr.js.uncompressed.js +830 -0
- data/vendor/assets/javascripts/dojo/_firebug/LICENSE +37 -0
- data/vendor/assets/javascripts/dojo/_firebug/errorIcon.png +0 -0
- data/vendor/assets/javascripts/dojo/_firebug/firebug.css +208 -0
- data/vendor/assets/javascripts/dojo/_firebug/firebug.js +897 -0
- data/vendor/assets/javascripts/dojo/_firebug/firebug.js.uncompressed.js +1183 -0
- data/vendor/assets/javascripts/dojo/_firebug/infoIcon.png +0 -0
- data/vendor/assets/javascripts/dojo/_firebug/tab_lft_norm.png +0 -0
- data/vendor/assets/javascripts/dojo/_firebug/tab_lft_over.png +0 -0
- data/vendor/assets/javascripts/dojo/_firebug/tab_rgt_norm.png +0 -0
- data/vendor/assets/javascripts/dojo/_firebug/tab_rgt_over.png +0 -0
- data/vendor/assets/javascripts/dojo/_firebug/warningIcon.png +0 -0
- data/vendor/assets/javascripts/dojo/aspect.js +98 -0
- data/vendor/assets/javascripts/dojo/aspect.js.uncompressed.js +207 -0
- data/vendor/assets/javascripts/dojo/back.js +238 -0
- data/vendor/assets/javascripts/dojo/back.js.uncompressed.js +397 -0
- data/vendor/assets/javascripts/dojo/behavior.js +92 -0
- data/vendor/assets/javascripts/dojo/behavior.js.uncompressed.js +248 -0
- data/vendor/assets/javascripts/dojo/cache.js +10 -0
- data/vendor/assets/javascripts/dojo/cache.js.uncompressed.js +9 -0
- data/vendor/assets/javascripts/dojo/cldr/LICENSE +29 -0
- data/vendor/assets/javascripts/dojo/cldr/README +18 -0
- data/vendor/assets/javascripts/dojo/cldr/monetary.js +23 -0
- data/vendor/assets/javascripts/dojo/cldr/monetary.js.uncompressed.js +35 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/ar/buddhist.js +8 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/ar/buddhist.js.uncompressed.js +115 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/ar/currency.js +8 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/ar/currency.js.uncompressed.js +16 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/ar/gregorian.js +8 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/ar/gregorian.js.uncompressed.js +240 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/ar/hebrew.js +8 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/ar/hebrew.js.uncompressed.js +124 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/ar/islamic.js +8 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/ar/islamic.js.uncompressed.js +156 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/ar/number.js +8 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/ar/number.js.uncompressed.js +18 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/buddhist.js +8 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/buddhist.js.uncompressed.js +267 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/ca/currency.js +8 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/ca/currency.js.uncompressed.js +15 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/ca/gregorian.js +8 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/ca/gregorian.js.uncompressed.js +235 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/ca/number.js +8 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/ca/number.js.uncompressed.js +22 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/cs/currency.js +8 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/cs/currency.js.uncompressed.js +15 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/cs/gregorian.js +8 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/cs/gregorian.js.uncompressed.js +215 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/cs/number.js +8 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/cs/number.js.uncompressed.js +22 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/currency.js +8 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/currency.js.uncompressed.js +48 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/da/buddhist.js +8 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/da/buddhist.js.uncompressed.js +141 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/da/currency.js +8 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/da/currency.js.uncompressed.js +16 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/da/gregorian.js +8 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/da/gregorian.js.uncompressed.js +237 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/da/islamic.js +8 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/da/islamic.js.uncompressed.js +87 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/da/number.js +8 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/da/number.js.uncompressed.js +22 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/de/buddhist.js +8 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/de/buddhist.js.uncompressed.js +130 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/de/currency.js +8 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/de/currency.js.uncompressed.js +17 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/de/gregorian.js +8 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/de/gregorian.js.uncompressed.js +237 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/de/islamic.js +8 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/de/islamic.js.uncompressed.js +172 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/de/number.js +8 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/de/number.js.uncompressed.js +22 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/el/buddhist.js +8 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/el/buddhist.js.uncompressed.js +120 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/el/currency.js +8 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/el/currency.js.uncompressed.js +15 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/el/gregorian.js +8 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/el/gregorian.js.uncompressed.js +241 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/el/hebrew.js +8 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/el/hebrew.js.uncompressed.js +73 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/el/number.js +8 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/el/number.js.uncompressed.js +20 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/en-au/currency.js +8 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/en-au/currency.js.uncompressed.js +8 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/en-au/gregorian.js +8 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/en-au/gregorian.js.uncompressed.js +17 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/en-au/number.js +8 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/en-au/number.js.uncompressed.js +7 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/en-ca/currency.js +8 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/en-ca/currency.js.uncompressed.js +8 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/en-ca/gregorian.js +8 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/en-ca/gregorian.js.uncompressed.js +20 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/en-gb/buddhist.js +8 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/en-gb/buddhist.js.uncompressed.js +101 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/en-gb/gregorian.js +8 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/en-gb/gregorian.js.uncompressed.js +23 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/en-gb/islamic.js +8 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/en-gb/islamic.js.uncompressed.js +153 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/en-gb/number.js +8 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/en-gb/number.js.uncompressed.js +7 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/en/buddhist.js +8 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/en/buddhist.js.uncompressed.js +109 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/en/currency.js +8 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/en/currency.js.uncompressed.js +17 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/en/gregorian.js +8 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/en/gregorian.js.uncompressed.js +229 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/en/islamic.js +8 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/en/islamic.js.uncompressed.js +166 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/en/number.js +8 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/en/number.js.uncompressed.js +23 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/es/buddhist.js +8 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/es/buddhist.js.uncompressed.js +125 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/es/currency.js +8 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/es/currency.js.uncompressed.js +15 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/es/gregorian.js +8 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/es/gregorian.js.uncompressed.js +238 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/es/islamic.js +8 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/es/islamic.js.uncompressed.js +179 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/es/number.js +8 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/es/number.js.uncompressed.js +21 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/fi/buddhist.js +8 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/fi/buddhist.js.uncompressed.js +166 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/fi/currency.js +8 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/fi/currency.js.uncompressed.js +22 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/fi/gregorian.js +8 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/fi/gregorian.js.uncompressed.js +239 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/fi/hebrew.js +8 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/fi/hebrew.js.uncompressed.js +176 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/fi/islamic.js +8 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/fi/islamic.js.uncompressed.js +155 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/fi/number.js +8 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/fi/number.js.uncompressed.js +22 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/fr-ch/gregorian.js +8 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/fr-ch/gregorian.js.uncompressed.js +9 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/fr-ch/number.js +8 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/fr-ch/number.js.uncompressed.js +9 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/fr/currency.js +8 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/fr/currency.js.uncompressed.js +23 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/fr/gregorian.js +8 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/fr/gregorian.js.uncompressed.js +247 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/fr/number.js +8 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/fr/number.js.uncompressed.js +22 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/gregorian.js +8 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/gregorian.js.uncompressed.js +294 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/he/currency.js +8 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/he/currency.js.uncompressed.js +15 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/he/gregorian.js +8 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/he/gregorian.js.uncompressed.js +213 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/he/hebrew.js +8 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/he/hebrew.js.uncompressed.js +125 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/he/islamic.js +8 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/he/islamic.js.uncompressed.js +119 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/he/number.js +8 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/he/number.js.uncompressed.js +22 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/hebrew.js +8 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/hebrew.js.uncompressed.js +265 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/hu/currency.js +8 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/hu/currency.js.uncompressed.js +17 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/hu/gregorian.js +8 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/hu/gregorian.js.uncompressed.js +227 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/hu/number.js +8 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/hu/number.js.uncompressed.js +21 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/islamic.js +8 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/islamic.js.uncompressed.js +264 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/it/currency.js +8 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/it/currency.js.uncompressed.js +15 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/it/gregorian.js +8 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/it/gregorian.js.uncompressed.js +235 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/it/number.js +8 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/it/number.js.uncompressed.js +12 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/ja/currency.js +8 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/ja/currency.js.uncompressed.js +18 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/ja/gregorian.js +8 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/ja/gregorian.js.uncompressed.js +222 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/ja/number.js +8 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/ja/number.js.uncompressed.js +12 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/ko/currency.js +8 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/ko/currency.js.uncompressed.js +15 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/ko/gregorian.js +8 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/ko/gregorian.js.uncompressed.js +243 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/ko/number.js +8 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/ko/number.js.uncompressed.js +22 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/nb/currency.js +8 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/nb/currency.js.uncompressed.js +23 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/nb/gregorian.js +8 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/nb/gregorian.js.uncompressed.js +234 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/nb/number.js +8 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/nb/number.js.uncompressed.js +22 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/nl/currency.js +8 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/nl/currency.js.uncompressed.js +15 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/nl/gregorian.js +8 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/nl/gregorian.js.uncompressed.js +233 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/nl/number.js +8 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/nl/number.js.uncompressed.js +22 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/number.js +8 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/number.js.uncompressed.js +64 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/pl/currency.js +8 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/pl/currency.js.uncompressed.js +15 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/pl/gregorian.js +8 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/pl/gregorian.js.uncompressed.js +242 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/pl/number.js +8 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/pl/number.js.uncompressed.js +22 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/pt-pt/gregorian.js +8 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/pt-pt/gregorian.js.uncompressed.js +141 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/pt-pt/number.js +8 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/pt-pt/number.js.uncompressed.js +8 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/pt/currency.js +8 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/pt/currency.js.uncompressed.js +15 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/pt/gregorian.js +8 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/pt/gregorian.js.uncompressed.js +237 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/pt/number.js +8 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/pt/number.js.uncompressed.js +22 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/ro/buddhist.js +8 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/ro/buddhist.js.uncompressed.js +121 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/ro/currency.js +8 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/ro/currency.js.uncompressed.js +15 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/ro/gregorian.js +8 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/ro/gregorian.js.uncompressed.js +251 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/ro/number.js +8 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/ro/number.js.uncompressed.js +22 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/ru/currency.js +8 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/ru/currency.js.uncompressed.js +16 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/ru/gregorian.js +8 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/ru/gregorian.js.uncompressed.js +232 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/ru/number.js +8 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/ru/number.js.uncompressed.js +21 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/sk/currency.js +8 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/sk/currency.js.uncompressed.js +15 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/sk/gregorian.js +8 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/sk/gregorian.js.uncompressed.js +225 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/sk/number.js +8 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/sk/number.js.uncompressed.js +9 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/sl/currency.js +8 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/sl/currency.js.uncompressed.js +17 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/sl/gregorian.js +8 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/sl/gregorian.js.uncompressed.js +218 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/sl/number.js +8 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/sl/number.js.uncompressed.js +22 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/sv/currency.js +8 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/sv/currency.js.uncompressed.js +18 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/sv/gregorian.js +8 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/sv/gregorian.js.uncompressed.js +245 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/sv/number.js +8 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/sv/number.js.uncompressed.js +22 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/th/buddhist.js +8 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/th/buddhist.js.uncompressed.js +118 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/th/currency.js +8 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/th/currency.js.uncompressed.js +16 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/th/gregorian.js +8 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/th/gregorian.js.uncompressed.js +232 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/th/number.js +8 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/th/number.js.uncompressed.js +22 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/tr/currency.js +8 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/tr/currency.js.uncompressed.js +17 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/tr/gregorian.js +8 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/tr/gregorian.js.uncompressed.js +239 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/tr/number.js +8 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/tr/number.js.uncompressed.js +22 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/zh-hant/buddhist.js +8 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/zh-hant/buddhist.js.uncompressed.js +146 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/zh-hant/currency.js +8 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/zh-hant/currency.js.uncompressed.js +16 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/zh-hant/gregorian.js +8 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/zh-hant/gregorian.js.uncompressed.js +228 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/zh-hant/islamic.js +8 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/zh-hant/islamic.js.uncompressed.js +87 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/zh-hant/number.js +8 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/zh-hant/number.js.uncompressed.js +7 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/zh-hk/currency.js +8 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/zh-hk/currency.js.uncompressed.js +15 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/zh-hk/gregorian.js +8 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/zh-hk/gregorian.js.uncompressed.js +85 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/zh-hk/number.js +8 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/zh-hk/number.js.uncompressed.js +7 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/zh-tw/currency.js +8 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/zh-tw/currency.js.uncompressed.js +14 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/zh-tw/gregorian.js +8 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/zh-tw/gregorian.js.uncompressed.js +80 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/zh/currency.js +8 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/zh/currency.js.uncompressed.js +16 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/zh/gregorian.js +8 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/zh/gregorian.js.uncompressed.js +247 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/zh/number.js +8 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/zh/number.js.uncompressed.js +12 -0
- data/vendor/assets/javascripts/dojo/cldr/supplemental.js +44 -0
- data/vendor/assets/javascripts/dojo/cldr/supplemental.js.uncompressed.js +77 -0
- data/vendor/assets/javascripts/dojo/colors.js +74 -0
- data/vendor/assets/javascripts/dojo/colors.js.uncompressed.js +232 -0
- data/vendor/assets/javascripts/dojo/cookie.js +49 -0
- data/vendor/assets/javascripts/dojo/cookie.js.uncompressed.js +98 -0
- data/vendor/assets/javascripts/dojo/currency.js +32 -0
- data/vendor/assets/javascripts/dojo/currency.js.uncompressed.js +132 -0
- data/vendor/assets/javascripts/dojo/data/ItemFileReadStore.js +561 -0
- data/vendor/assets/javascripts/dojo/data/ItemFileReadStore.js.uncompressed.js +945 -0
- data/vendor/assets/javascripts/dojo/data/ItemFileWriteStore.js +499 -0
- data/vendor/assets/javascripts/dojo/data/ItemFileWriteStore.js.uncompressed.js +805 -0
- data/vendor/assets/javascripts/dojo/data/ObjectStore.js +285 -0
- data/vendor/assets/javascripts/dojo/data/ObjectStore.js.uncompressed.js +505 -0
- data/vendor/assets/javascripts/dojo/data/api/Identity.js +21 -0
- data/vendor/assets/javascripts/dojo/data/api/Identity.js.uncompressed.js +107 -0
- data/vendor/assets/javascripts/dojo/data/api/Notification.js +19 -0
- data/vendor/assets/javascripts/dojo/data/api/Notification.js.uncompressed.js +122 -0
- data/vendor/assets/javascripts/dojo/data/api/Read.js +39 -0
- data/vendor/assets/javascripts/dojo/data/api/Read.js.uncompressed.js +485 -0
- data/vendor/assets/javascripts/dojo/data/api/Request.js +13 -0
- data/vendor/assets/javascripts/dojo/data/api/Request.js.uncompressed.js +36 -0
- data/vendor/assets/javascripts/dojo/data/api/Write.js +29 -0
- data/vendor/assets/javascripts/dojo/data/api/Write.js.uncompressed.js +221 -0
- data/vendor/assets/javascripts/dojo/data/util/filter.js +52 -0
- data/vendor/assets/javascripts/dojo/data/util/filter.js.uncompressed.js +74 -0
- data/vendor/assets/javascripts/dojo/data/util/simpleFetch.js +63 -0
- data/vendor/assets/javascripts/dojo/data/util/simpleFetch.js.uncompressed.js +95 -0
- data/vendor/assets/javascripts/dojo/data/util/sorter.js +66 -0
- data/vendor/assets/javascripts/dojo/data/util/sorter.js.uncompressed.js +99 -0
- data/vendor/assets/javascripts/dojo/date.js +213 -0
- data/vendor/assets/javascripts/dojo/date.js.uncompressed.js +347 -0
- data/vendor/assets/javascripts/dojo/date/locale.js +452 -0
- data/vendor/assets/javascripts/dojo/date/locale.js.uncompressed.js +670 -0
- data/vendor/assets/javascripts/dojo/date/stamp.js +82 -0
- data/vendor/assets/javascripts/dojo/date/stamp.js.uncompressed.js +146 -0
- data/vendor/assets/javascripts/dojo/dnd/AutoSource.js +12 -0
- data/vendor/assets/javascripts/dojo/dnd/AutoSource.js.uncompressed.js +13 -0
- data/vendor/assets/javascripts/dojo/dnd/Avatar.js +62 -0
- data/vendor/assets/javascripts/dojo/dnd/Avatar.js.uncompressed.js +111 -0
- data/vendor/assets/javascripts/dojo/dnd/Container.js +231 -0
- data/vendor/assets/javascripts/dojo/dnd/Container.js.uncompressed.js +432 -0
- data/vendor/assets/javascripts/dojo/dnd/Manager.js +122 -0
- data/vendor/assets/javascripts/dojo/dnd/Manager.js.uncompressed.js +213 -0
- data/vendor/assets/javascripts/dojo/dnd/Moveable.js +75 -0
- data/vendor/assets/javascripts/dojo/dnd/Moveable.js.uncompressed.js +173 -0
- data/vendor/assets/javascripts/dojo/dnd/Mover.js +62 -0
- data/vendor/assets/javascripts/dojo/dnd/Mover.js.uncompressed.js +119 -0
- data/vendor/assets/javascripts/dojo/dnd/Selector.js +233 -0
- data/vendor/assets/javascripts/dojo/dnd/Selector.js.uncompressed.js +324 -0
- data/vendor/assets/javascripts/dojo/dnd/Source.js +284 -0
- data/vendor/assets/javascripts/dojo/dnd/Source.js.uncompressed.js +513 -0
- data/vendor/assets/javascripts/dojo/dnd/Target.js +13 -0
- data/vendor/assets/javascripts/dojo/dnd/Target.js.uncompressed.js +13 -0
- data/vendor/assets/javascripts/dojo/dnd/TimedMoveable.js +34 -0
- data/vendor/assets/javascripts/dojo/dnd/TimedMoveable.js.uncompressed.js +69 -0
- data/vendor/assets/javascripts/dojo/dnd/autoscroll.js +96 -0
- data/vendor/assets/javascripts/dojo/dnd/autoscroll.js.uncompressed.js +118 -0
- data/vendor/assets/javascripts/dojo/dnd/common.js +28 -0
- data/vendor/assets/javascripts/dojo/dnd/common.js.uncompressed.js +35 -0
- data/vendor/assets/javascripts/dojo/dnd/move.js +66 -0
- data/vendor/assets/javascripts/dojo/dnd/move.js.uncompressed.js +143 -0
- data/vendor/assets/javascripts/dojo/dojo.js +1872 -0
- data/vendor/assets/javascripts/dojo/dojo.js.uncompressed.js +16408 -0
- data/vendor/assets/javascripts/dojo/dojo.profile.js +40 -0
- data/vendor/assets/javascripts/dojo/dom-attr.js +62 -0
- data/vendor/assets/javascripts/dojo/dom-attr.js.uncompressed.js +238 -0
- data/vendor/assets/javascripts/dojo/dom-class.js +89 -0
- data/vendor/assets/javascripts/dojo/dom-class.js.uncompressed.js +320 -0
- data/vendor/assets/javascripts/dojo/dom-construct.js +141 -0
- data/vendor/assets/javascripts/dojo/dom-construct.js.uncompressed.js +376 -0
- data/vendor/assets/javascripts/dojo/dom-form.js +81 -0
- data/vendor/assets/javascripts/dojo/dom-form.js.uncompressed.js +166 -0
- data/vendor/assets/javascripts/dojo/dom-geometry.js +214 -0
- data/vendor/assets/javascripts/dojo/dom-geometry.js.uncompressed.js +751 -0
- data/vendor/assets/javascripts/dojo/dom-prop.js +69 -0
- data/vendor/assets/javascripts/dojo/dom-prop.js.uncompressed.js +190 -0
- data/vendor/assets/javascripts/dojo/dom-style.js +158 -0
- data/vendor/assets/javascripts/dojo/dom-style.js.uncompressed.js +321 -0
- data/vendor/assets/javascripts/dojo/dom.js +74 -0
- data/vendor/assets/javascripts/dojo/dom.js.uncompressed.js +156 -0
- data/vendor/assets/javascripts/dojo/domReady.js +95 -0
- data/vendor/assets/javascripts/dojo/domReady.js.uncompressed.js +95 -0
- data/vendor/assets/javascripts/dojo/fx.js +260 -0
- data/vendor/assets/javascripts/dojo/fx.js.uncompressed.js +426 -0
- data/vendor/assets/javascripts/dojo/fx/Toggler.js +28 -0
- data/vendor/assets/javascripts/dojo/fx/Toggler.js.uncompressed.js +103 -0
- data/vendor/assets/javascripts/dojo/fx/easing.js +166 -0
- data/vendor/assets/javascripts/dojo/fx/easing.js.uncompressed.js +284 -0
- data/vendor/assets/javascripts/dojo/gears.js +44 -0
- data/vendor/assets/javascripts/dojo/gears.js.uncompressed.js +61 -0
- data/vendor/assets/javascripts/dojo/has.js +66 -0
- data/vendor/assets/javascripts/dojo/has.js.uncompressed.js +178 -0
- data/vendor/assets/javascripts/dojo/hash.js +137 -0
- data/vendor/assets/javascripts/dojo/hash.js.uncompressed.js +243 -0
- data/vendor/assets/javascripts/dojo/html.js +148 -0
- data/vendor/assets/javascripts/dojo/html.js.uncompressed.js +342 -0
- data/vendor/assets/javascripts/dojo/i18n.js +211 -0
- data/vendor/assets/javascripts/dojo/i18n.js.uncompressed.js +514 -0
- data/vendor/assets/javascripts/dojo/io-query.js +53 -0
- data/vendor/assets/javascripts/dojo/io-query.js.uncompressed.js +98 -0
- data/vendor/assets/javascripts/dojo/io/iframe.js +230 -0
- data/vendor/assets/javascripts/dojo/io/iframe.js.uncompressed.js +376 -0
- data/vendor/assets/javascripts/dojo/io/script.js +114 -0
- data/vendor/assets/javascripts/dojo/io/script.js.uncompressed.js +256 -0
- data/vendor/assets/javascripts/dojo/jaxer.js +18 -0
- data/vendor/assets/javascripts/dojo/jaxer.js.uncompressed.js +19 -0
- data/vendor/assets/javascripts/dojo/json.js +102 -0
- data/vendor/assets/javascripts/dojo/json.js.uncompressed.js +149 -0
- data/vendor/assets/javascripts/dojo/keys.js +10 -0
- data/vendor/assets/javascripts/dojo/keys.js.uncompressed.js +80 -0
- data/vendor/assets/javascripts/dojo/loadInit.js +12 -0
- data/vendor/assets/javascripts/dojo/loadInit.js.uncompressed.js +7 -0
- data/vendor/assets/javascripts/dojo/main.js +29 -0
- data/vendor/assets/javascripts/dojo/main.js.uncompressed.js +50 -0
- data/vendor/assets/javascripts/dojo/mouse.js +48 -0
- data/vendor/assets/javascripts/dojo/mouse.js.uncompressed.js +127 -0
- data/vendor/assets/javascripts/dojo/nls/ar/colors.js +8 -0
- data/vendor/assets/javascripts/dojo/nls/ar/colors.js.uncompressed.js +156 -0
- data/vendor/assets/javascripts/dojo/nls/az/colors.js +8 -0
- data/vendor/assets/javascripts/dojo/nls/az/colors.js.uncompressed.js +153 -0
- data/vendor/assets/javascripts/dojo/nls/ca/colors.js +8 -0
- data/vendor/assets/javascripts/dojo/nls/ca/colors.js.uncompressed.js +156 -0
- data/vendor/assets/javascripts/dojo/nls/colors.js +8 -0
- data/vendor/assets/javascripts/dojo/nls/colors.js.uncompressed.js +191 -0
- data/vendor/assets/javascripts/dojo/nls/cs/colors.js +8 -0
- data/vendor/assets/javascripts/dojo/nls/cs/colors.js.uncompressed.js +156 -0
- data/vendor/assets/javascripts/dojo/nls/da/colors.js +8 -0
- data/vendor/assets/javascripts/dojo/nls/da/colors.js.uncompressed.js +156 -0
- data/vendor/assets/javascripts/dojo/nls/de/colors.js +8 -0
- data/vendor/assets/javascripts/dojo/nls/de/colors.js.uncompressed.js +156 -0
- data/vendor/assets/javascripts/dojo/nls/el/colors.js +8 -0
- data/vendor/assets/javascripts/dojo/nls/el/colors.js.uncompressed.js +156 -0
- data/vendor/assets/javascripts/dojo/nls/es/colors.js +8 -0
- data/vendor/assets/javascripts/dojo/nls/es/colors.js.uncompressed.js +156 -0
- data/vendor/assets/javascripts/dojo/nls/fi/colors.js +8 -0
- data/vendor/assets/javascripts/dojo/nls/fi/colors.js.uncompressed.js +156 -0
- data/vendor/assets/javascripts/dojo/nls/fr/colors.js +8 -0
- data/vendor/assets/javascripts/dojo/nls/fr/colors.js.uncompressed.js +156 -0
- data/vendor/assets/javascripts/dojo/nls/he/colors.js +8 -0
- data/vendor/assets/javascripts/dojo/nls/he/colors.js.uncompressed.js +158 -0
- data/vendor/assets/javascripts/dojo/nls/hr/colors.js +8 -0
- data/vendor/assets/javascripts/dojo/nls/hr/colors.js.uncompressed.js +156 -0
- data/vendor/assets/javascripts/dojo/nls/hu/colors.js +8 -0
- data/vendor/assets/javascripts/dojo/nls/hu/colors.js.uncompressed.js +156 -0
- data/vendor/assets/javascripts/dojo/nls/it/colors.js +8 -0
- data/vendor/assets/javascripts/dojo/nls/it/colors.js.uncompressed.js +156 -0
- data/vendor/assets/javascripts/dojo/nls/ja/colors.js +8 -0
- data/vendor/assets/javascripts/dojo/nls/ja/colors.js.uncompressed.js +156 -0
- data/vendor/assets/javascripts/dojo/nls/kk/colors.js +8 -0
- data/vendor/assets/javascripts/dojo/nls/kk/colors.js.uncompressed.js +156 -0
- data/vendor/assets/javascripts/dojo/nls/ko/colors.js +8 -0
- data/vendor/assets/javascripts/dojo/nls/ko/colors.js.uncompressed.js +156 -0
- data/vendor/assets/javascripts/dojo/nls/nb/colors.js +8 -0
- data/vendor/assets/javascripts/dojo/nls/nb/colors.js.uncompressed.js +156 -0
- data/vendor/assets/javascripts/dojo/nls/nl/colors.js +8 -0
- data/vendor/assets/javascripts/dojo/nls/nl/colors.js.uncompressed.js +156 -0
- data/vendor/assets/javascripts/dojo/nls/pl/colors.js +8 -0
- data/vendor/assets/javascripts/dojo/nls/pl/colors.js.uncompressed.js +156 -0
- data/vendor/assets/javascripts/dojo/nls/pt-pt/colors.js +8 -0
- data/vendor/assets/javascripts/dojo/nls/pt-pt/colors.js.uncompressed.js +156 -0
- data/vendor/assets/javascripts/dojo/nls/pt/colors.js +8 -0
- data/vendor/assets/javascripts/dojo/nls/pt/colors.js.uncompressed.js +156 -0
- data/vendor/assets/javascripts/dojo/nls/ro/colors.js +8 -0
- data/vendor/assets/javascripts/dojo/nls/ro/colors.js.uncompressed.js +156 -0
- data/vendor/assets/javascripts/dojo/nls/ru/colors.js +8 -0
- data/vendor/assets/javascripts/dojo/nls/ru/colors.js.uncompressed.js +156 -0
- data/vendor/assets/javascripts/dojo/nls/sk/colors.js +8 -0
- data/vendor/assets/javascripts/dojo/nls/sk/colors.js.uncompressed.js +156 -0
- data/vendor/assets/javascripts/dojo/nls/sl/colors.js +8 -0
- data/vendor/assets/javascripts/dojo/nls/sl/colors.js.uncompressed.js +156 -0
- data/vendor/assets/javascripts/dojo/nls/sv/colors.js +8 -0
- data/vendor/assets/javascripts/dojo/nls/sv/colors.js.uncompressed.js +156 -0
- data/vendor/assets/javascripts/dojo/nls/th/colors.js +8 -0
- data/vendor/assets/javascripts/dojo/nls/th/colors.js.uncompressed.js +156 -0
- data/vendor/assets/javascripts/dojo/nls/tr/colors.js +8 -0
- data/vendor/assets/javascripts/dojo/nls/tr/colors.js.uncompressed.js +156 -0
- data/vendor/assets/javascripts/dojo/nls/zh-tw/colors.js +8 -0
- data/vendor/assets/javascripts/dojo/nls/zh-tw/colors.js.uncompressed.js +156 -0
- data/vendor/assets/javascripts/dojo/nls/zh/colors.js +8 -0
- data/vendor/assets/javascripts/dojo/nls/zh/colors.js.uncompressed.js +156 -0
- data/vendor/assets/javascripts/dojo/number.js +305 -0
- data/vendor/assets/javascripts/dojo/number.js.uncompressed.js +576 -0
- data/vendor/assets/javascripts/dojo/on.js +311 -0
- data/vendor/assets/javascripts/dojo/on.js.uncompressed.js +474 -0
- data/vendor/assets/javascripts/dojo/package.json +23 -0
- data/vendor/assets/javascripts/dojo/parser.js +299 -0
- data/vendor/assets/javascripts/dojo/parser.js.uncompressed.js +594 -0
- data/vendor/assets/javascripts/dojo/query.js +195 -0
- data/vendor/assets/javascripts/dojo/query.js.uncompressed.js +713 -0
- data/vendor/assets/javascripts/dojo/ready.js +82 -0
- data/vendor/assets/javascripts/dojo/ready.js.uncompressed.js +138 -0
- data/vendor/assets/javascripts/dojo/regexp.js +32 -0
- data/vendor/assets/javascripts/dojo/regexp.js.uncompressed.js +73 -0
- data/vendor/assets/javascripts/dojo/require.js +12 -0
- data/vendor/assets/javascripts/dojo/require.js.uncompressed.js +7 -0
- data/vendor/assets/javascripts/dojo/resources/LICENSE +30 -0
- data/vendor/assets/javascripts/dojo/resources/_modules.js +36 -0
- data/vendor/assets/javascripts/dojo/resources/blank.gif +0 -0
- data/vendor/assets/javascripts/dojo/resources/blank.html +1 -0
- data/vendor/assets/javascripts/dojo/resources/dnd.css +14 -0
- data/vendor/assets/javascripts/dojo/resources/dojo.css +98 -0
- data/vendor/assets/javascripts/dojo/resources/iframe_history.html +44 -0
- data/vendor/assets/javascripts/dojo/resources/images/dndCopy.png +0 -0
- data/vendor/assets/javascripts/dojo/resources/images/dndMove.png +0 -0
- data/vendor/assets/javascripts/dojo/resources/images/dndNoCopy.png +0 -0
- data/vendor/assets/javascripts/dojo/resources/images/dndNoMove.png +0 -0
- data/vendor/assets/javascripts/dojo/rpc/JsonService.js +34 -0
- data/vendor/assets/javascripts/dojo/rpc/JsonService.js.uncompressed.js +85 -0
- data/vendor/assets/javascripts/dojo/rpc/JsonpService.js +29 -0
- data/vendor/assets/javascripts/dojo/rpc/JsonpService.js.uncompressed.js +67 -0
- data/vendor/assets/javascripts/dojo/rpc/RpcService.js +87 -0
- data/vendor/assets/javascripts/dojo/rpc/RpcService.js.uncompressed.js +175 -0
- data/vendor/assets/javascripts/dojo/selector/_loader.js +40 -0
- data/vendor/assets/javascripts/dojo/selector/_loader.js.uncompressed.js +45 -0
- data/vendor/assets/javascripts/dojo/selector/acme.js +765 -0
- data/vendor/assets/javascripts/dojo/selector/acme.js.uncompressed.js +1480 -0
- data/vendor/assets/javascripts/dojo/selector/lite.js +213 -0
- data/vendor/assets/javascripts/dojo/selector/lite.js.uncompressed.js +264 -0
- data/vendor/assets/javascripts/dojo/store/Cache.js +47 -0
- data/vendor/assets/javascripts/dojo/store/Cache.js.uncompressed.js +148 -0
- data/vendor/assets/javascripts/dojo/store/DataStore.js +103 -0
- data/vendor/assets/javascripts/dojo/store/DataStore.js.uncompressed.js +170 -0
- data/vendor/assets/javascripts/dojo/store/JsonRest.js +56 -0
- data/vendor/assets/javascripts/dojo/store/JsonRest.js.uncompressed.js +155 -0
- data/vendor/assets/javascripts/dojo/store/Memory.js +55 -0
- data/vendor/assets/javascripts/dojo/store/Memory.js.uncompressed.js +161 -0
- data/vendor/assets/javascripts/dojo/store/Observable.js +125 -0
- data/vendor/assets/javascripts/dojo/store/Observable.js.uncompressed.js +175 -0
- data/vendor/assets/javascripts/dojo/store/README +10 -0
- data/vendor/assets/javascripts/dojo/store/api/Store.js +52 -0
- data/vendor/assets/javascripts/dojo/store/api/Store.js.uncompressed.js +297 -0
- data/vendor/assets/javascripts/dojo/store/util/QueryResults.js +39 -0
- data/vendor/assets/javascripts/dojo/store/util/QueryResults.js.uncompressed.js +64 -0
- data/vendor/assets/javascripts/dojo/store/util/SimpleQueryEngine.js +63 -0
- data/vendor/assets/javascripts/dojo/store/util/SimpleQueryEngine.js.uncompressed.js +108 -0
- data/vendor/assets/javascripts/dojo/string.js +57 -0
- data/vendor/assets/javascripts/dojo/string.js.uncompressed.js +162 -0
- data/vendor/assets/javascripts/dojo/text.js +99 -0
- data/vendor/assets/javascripts/dojo/text.js.uncompressed.js +212 -0
- data/vendor/assets/javascripts/dojo/topic.js +15 -0
- data/vendor/assets/javascripts/dojo/topic.js.uncompressed.js +33 -0
- data/vendor/assets/javascripts/dojo/touch.js +17 -0
- data/vendor/assets/javascripts/dojo/touch.js.uncompressed.js +89 -0
- data/vendor/assets/javascripts/dojo/uacss.js +25 -0
- data/vendor/assets/javascripts/dojo/uacss.js.uncompressed.js +66 -0
- data/vendor/assets/javascripts/dojo/window.js +119 -0
- data/vendor/assets/javascripts/dojo/window.js.uncompressed.js +169 -0
- metadata +613 -3
@@ -0,0 +1,258 @@
|
|
1
|
+
/*
|
2
|
+
Copyright (c) 2004-2011, The Dojo Foundation All Rights Reserved.
|
3
|
+
Available via Academic Free License >= 2.1 OR the modified BSD license.
|
4
|
+
see: http://dojotoolkit.org/license for details
|
5
|
+
*/
|
6
|
+
|
7
|
+
//>>built
|
8
|
+
define("dojo/_base/loader",["./kernel","../has","require","module","./json","./lang","./array"],function(_1,_2,_3,_4,_5,_6,_7){
|
9
|
+
if(!1){
|
10
|
+
console.error("cannot load the Dojo v1.x loader with a foreign loader");
|
11
|
+
return 0;
|
12
|
+
}
|
13
|
+
var _8=function(id){
|
14
|
+
return {src:_4.id,id:id};
|
15
|
+
},_9=function(_a){
|
16
|
+
return _a.replace(/\./g,"/");
|
17
|
+
},_b=/\/\/>>built/,_c=[],_d=[],_e=function(_f,_10,_11){
|
18
|
+
_c.push(_11);
|
19
|
+
_7.forEach(_f.split(","),function(mid){
|
20
|
+
var _12=_13(mid,_10.module);
|
21
|
+
_d.push(_12);
|
22
|
+
_14(_12);
|
23
|
+
});
|
24
|
+
_15();
|
25
|
+
},_16,_17=function(m){
|
26
|
+
_16[m.mid]=1;
|
27
|
+
for(var t,_18,_19=m.deps||[],i=0;i<_19.length;i++){
|
28
|
+
_18=_19[i];
|
29
|
+
if(!(t=_16[_18.mid])){
|
30
|
+
if(t===0||!_17(_18)){
|
31
|
+
_16[m.mid]=0;
|
32
|
+
return false;
|
33
|
+
}
|
34
|
+
}
|
35
|
+
}
|
36
|
+
return true;
|
37
|
+
},_15=function(){
|
38
|
+
var _1a,mid;
|
39
|
+
_16={};
|
40
|
+
for(mid in _1b){
|
41
|
+
_1a=_1b[mid];
|
42
|
+
if(_1a.executed||_1a.noReqPluginCheck){
|
43
|
+
_16[mid]=1;
|
44
|
+
}else{
|
45
|
+
if(_1a.noReqPluginCheck!==0){
|
46
|
+
_1a.noReqPluginCheck=/loadInit\!/.test(mid)||/require\!/.test(mid)?1:0;
|
47
|
+
}
|
48
|
+
if(_1a.noReqPluginCheck){
|
49
|
+
_16[mid]=1;
|
50
|
+
}else{
|
51
|
+
if(_1a.injected!==_1c){
|
52
|
+
_16[mid]=0;
|
53
|
+
}
|
54
|
+
}
|
55
|
+
}
|
56
|
+
}
|
57
|
+
for(var t,i=0,end=_d.length;i<end;i++){
|
58
|
+
_1a=_d[i];
|
59
|
+
if(!(t=_16[_1a.mid])){
|
60
|
+
if(t===0||!_17(_1a)){
|
61
|
+
return;
|
62
|
+
}
|
63
|
+
}
|
64
|
+
}
|
65
|
+
_1d.holdIdle();
|
66
|
+
var _1e=_c;
|
67
|
+
_c=[];
|
68
|
+
_7.forEach(_1e,function(cb){
|
69
|
+
cb(1);
|
70
|
+
});
|
71
|
+
_1d.releaseIdle();
|
72
|
+
},_1f=function(mid,_20,_21){
|
73
|
+
_20([mid],function(_22){
|
74
|
+
_20(_22.names,function(){
|
75
|
+
for(var _23="",_24=[],i=0;i<arguments.length;i++){
|
76
|
+
_23+="var "+_22.names[i]+"= arguments["+i+"]; ";
|
77
|
+
_24.push(arguments[i]);
|
78
|
+
}
|
79
|
+
eval(_23);
|
80
|
+
var _25=_20.module,_26=[],_27={},_28=[],p,_29={provide:function(_2a){
|
81
|
+
_2a=_9(_2a);
|
82
|
+
var _2b=_13(_2a,_25);
|
83
|
+
if(_2b!==_25){
|
84
|
+
_53(_2b);
|
85
|
+
}
|
86
|
+
},require:function(_2c,_2d){
|
87
|
+
_2c=_9(_2c);
|
88
|
+
_2d&&(_13(_2c,_25).result=_4e);
|
89
|
+
_28.push(_2c);
|
90
|
+
},requireLocalization:function(_2e,_2f,_30){
|
91
|
+
_26.length||(_26=["dojo/i18n"]);
|
92
|
+
_30=(_30||_1.locale).toLowerCase();
|
93
|
+
_2e=_9(_2e)+"/nls/"+(/root/i.test(_30)?"":_30+"/")+_9(_2f);
|
94
|
+
if(_13(_2e,_25).isXd){
|
95
|
+
_26.push("dojo/i18n!"+_2e);
|
96
|
+
}
|
97
|
+
},loadInit:function(f){
|
98
|
+
f();
|
99
|
+
}};
|
100
|
+
try{
|
101
|
+
for(p in _29){
|
102
|
+
_27[p]=_1[p];
|
103
|
+
_1[p]=_29[p];
|
104
|
+
}
|
105
|
+
_22.def.apply(null,_24);
|
106
|
+
}
|
107
|
+
catch(e){
|
108
|
+
_54("error",[_8("failedDojoLoadInit"),e]);
|
109
|
+
}
|
110
|
+
finally{
|
111
|
+
for(p in _29){
|
112
|
+
_1[p]=_27[p];
|
113
|
+
}
|
114
|
+
}
|
115
|
+
_28.length&&_26.push("dojo/require!"+_28.join(","));
|
116
|
+
_c.push(_21);
|
117
|
+
_7.forEach(_28,function(mid){
|
118
|
+
var _31=_13(mid,_20.module);
|
119
|
+
_d.push(_31);
|
120
|
+
_14(_31);
|
121
|
+
});
|
122
|
+
_15();
|
123
|
+
});
|
124
|
+
});
|
125
|
+
},_32=function(_33,_34,_35){
|
126
|
+
var _36=/\(|\)/g,_37=1,_38;
|
127
|
+
_36.lastIndex=_34;
|
128
|
+
while((_38=_36.exec(_33))){
|
129
|
+
if(_38[0]==")"){
|
130
|
+
_37-=1;
|
131
|
+
}else{
|
132
|
+
_37+=1;
|
133
|
+
}
|
134
|
+
if(_37==0){
|
135
|
+
break;
|
136
|
+
}
|
137
|
+
}
|
138
|
+
if(_37!=0){
|
139
|
+
throw "unmatched paren around character "+_36.lastIndex+" in: "+_33;
|
140
|
+
}
|
141
|
+
return [_1.trim(_33.substring(_35,_36.lastIndex))+";\n",_36.lastIndex];
|
142
|
+
},_39=/(\/\*([\s\S]*?)\*\/|\/\/(.*)$)/mg,_3a=/(^|\s)dojo\.(loadInit|require|provide|requireLocalization|requireIf|requireAfterIf|platformRequire)\s*\(/mg,_3b=/(^|\s)(require|define)\s*\(/m,_3c=function(_3d,_3e){
|
143
|
+
var _3f,_40,_41,_42,_43=[],_44=[],_45=[];
|
144
|
+
_3e=_3e||_3d.replace(_39,function(_46){
|
145
|
+
_3a.lastIndex=_3b.lastIndex=0;
|
146
|
+
return (_3a.test(_46)||_3b.test(_46))?"":_46;
|
147
|
+
});
|
148
|
+
while((_3f=_3a.exec(_3e))){
|
149
|
+
_40=_3a.lastIndex;
|
150
|
+
_41=_40-_3f[0].length;
|
151
|
+
_42=_32(_3e,_40,_41);
|
152
|
+
if(_3f[2]=="loadInit"){
|
153
|
+
_43.push(_42[0]);
|
154
|
+
}else{
|
155
|
+
_44.push(_42[0]);
|
156
|
+
}
|
157
|
+
_3a.lastIndex=_42[1];
|
158
|
+
}
|
159
|
+
_45=_43.concat(_44);
|
160
|
+
if(_45.length||!_3b.test(_3e)){
|
161
|
+
return [_3d.replace(/(^|\s)dojo\.loadInit\s*\(/g,"\n0 && dojo.loadInit("),_45.join(""),_45];
|
162
|
+
}else{
|
163
|
+
return 0;
|
164
|
+
}
|
165
|
+
},_47=function(_48,_49){
|
166
|
+
var _4a,id,_4b=[],_4c=[];
|
167
|
+
if(_b.test(_49)||!(_4a=_3c(_49))){
|
168
|
+
return 0;
|
169
|
+
}
|
170
|
+
id=_48.mid+"-*loadInit";
|
171
|
+
for(var p in _13("dojo",_48).result.scopeMap){
|
172
|
+
_4b.push(p);
|
173
|
+
_4c.push("\""+p+"\"");
|
174
|
+
}
|
175
|
+
return "// xdomain rewrite of "+_48.path+"\n"+"define('"+id+"',{\n"+"\tnames:"+_1.toJson(_4b)+",\n"+"\tdef:function("+_4b.join(",")+"){"+_4a[1]+"}"+"});\n\n"+"define("+_1.toJson(_4b.concat(["dojo/loadInit!"+id]))+", function("+_4b.join(",")+"){\n"+_4a[0]+"});";
|
176
|
+
},_1d=_3.initSyncLoader(_e,_15,_47),_4d=_1d.sync,xd=_1d.xd,_1c=_1d.arrived,_4e=_1d.nonmodule,_4f=_1d.executing,_50=_1d.executed,_51=_1d.syncExecStack,_1b=_1d.modules,_52=_1d.execQ,_13=_1d.getModule,_14=_1d.injectModule,_53=_1d.setArrived,_54=_1d.signal,_55=_1d.finishExec,_56=_1d.execModule,_57=_1d.getLegacyMode;
|
177
|
+
_1.provide=function(mid){
|
178
|
+
var _58=_51[0],_59=_6.mixin(_13(_9(mid),_3.module),{executed:_4f,result:_6.getObject(mid,true)});
|
179
|
+
_53(_59);
|
180
|
+
if(_58){
|
181
|
+
(_58.provides||(_58.provides=[])).push(function(){
|
182
|
+
_59.result=_6.getObject(mid);
|
183
|
+
delete _59.provides;
|
184
|
+
_59.executed!==_50&&_55(_59);
|
185
|
+
});
|
186
|
+
}
|
187
|
+
return _59.result;
|
188
|
+
};
|
189
|
+
_2.add("config-publishRequireResult",1,0,0);
|
190
|
+
_1.require=function(_5a,_5b){
|
191
|
+
function _5c(mid,_5d){
|
192
|
+
var _5e=_13(_9(mid),_3.module);
|
193
|
+
if(_51.length&&_51[0].finish){
|
194
|
+
_51[0].finish.push(mid);
|
195
|
+
return undefined;
|
196
|
+
}
|
197
|
+
if(_5e.executed){
|
198
|
+
return _5e.result;
|
199
|
+
}
|
200
|
+
_5d&&(_5e.result=_4e);
|
201
|
+
var _5f=_57();
|
202
|
+
_14(_5e);
|
203
|
+
_5f=_57();
|
204
|
+
if(_5e.executed!==_50&&_5e.injected===_1c){
|
205
|
+
_1d.holdIdle();
|
206
|
+
_56(_5e);
|
207
|
+
_1d.releaseIdle();
|
208
|
+
}
|
209
|
+
if(_5e.executed){
|
210
|
+
return _5e.result;
|
211
|
+
}
|
212
|
+
if(_5f==_4d){
|
213
|
+
if(_5e.cjs){
|
214
|
+
_52.unshift(_5e);
|
215
|
+
}else{
|
216
|
+
_51.length&&(_51[0].finish=[mid]);
|
217
|
+
}
|
218
|
+
}else{
|
219
|
+
_52.push(_5e);
|
220
|
+
}
|
221
|
+
return undefined;
|
222
|
+
};
|
223
|
+
var _60=_5c(_5a,_5b);
|
224
|
+
if(_2("config-publishRequireResult")&&!_6.exists(_5a)&&_60!==undefined){
|
225
|
+
_6.setObject(_5a,_60);
|
226
|
+
}
|
227
|
+
return _60;
|
228
|
+
};
|
229
|
+
_1.loadInit=function(f){
|
230
|
+
f();
|
231
|
+
};
|
232
|
+
_1.registerModulePath=function(_61,_62){
|
233
|
+
var _63={};
|
234
|
+
_63[_61.replace(/\./g,"/")]=_62;
|
235
|
+
_3({paths:_63});
|
236
|
+
};
|
237
|
+
_1.platformRequire=function(_64){
|
238
|
+
var _65=(_64.common||[]).concat(_64[_1._name]||_64["default"]||[]),_66;
|
239
|
+
while(_65.length){
|
240
|
+
if(_6.isArray(_66=_65.shift())){
|
241
|
+
_1.require.apply(_1,_66);
|
242
|
+
}else{
|
243
|
+
_1.require(_66);
|
244
|
+
}
|
245
|
+
}
|
246
|
+
};
|
247
|
+
_1.requireIf=_1.requireAfterIf=function(_67,_68,_69){
|
248
|
+
if(_67){
|
249
|
+
_1.require(_68,_69);
|
250
|
+
}
|
251
|
+
};
|
252
|
+
_1.requireLocalization=function(_6a,_6b,_6c){
|
253
|
+
_3(["../i18n"],function(_6d){
|
254
|
+
_6d.getLocalization(_6a,_6b,_6c);
|
255
|
+
});
|
256
|
+
};
|
257
|
+
return {extractLegacyApiApplications:_3c,require:_1d.dojoRequirePlugin,loadInit:_1f};
|
258
|
+
});
|
@@ -0,0 +1,718 @@
|
|
1
|
+
define("dojo/_base/loader", ["./kernel", "../has", "require", "module", "./json", "./lang", "./array"], function(dojo, has, require, thisModule, json, lang, array) {
|
2
|
+
// module:
|
3
|
+
// dojo/_base/lader
|
4
|
+
// summary:
|
5
|
+
// This module defines the v1.x synchronous loader API.
|
6
|
+
|
7
|
+
// signal the loader in sync mode...
|
8
|
+
//>>pure-amd
|
9
|
+
|
10
|
+
if (!1){
|
11
|
+
console.error("cannot load the Dojo v1.x loader with a foreign loader");
|
12
|
+
return 0;
|
13
|
+
}
|
14
|
+
|
15
|
+
var makeErrorToken = function(id){
|
16
|
+
return {src:thisModule.id, id:id};
|
17
|
+
},
|
18
|
+
|
19
|
+
slashName = function(name){
|
20
|
+
return name.replace(/\./g, "/");
|
21
|
+
},
|
22
|
+
|
23
|
+
buildDetectRe = /\/\/>>built/,
|
24
|
+
|
25
|
+
dojoRequireCallbacks = [],
|
26
|
+
dojoRequireModuleStack = [],
|
27
|
+
|
28
|
+
dojoRequirePlugin = function(mid, require, loaded){
|
29
|
+
dojoRequireCallbacks.push(loaded);
|
30
|
+
array.forEach(mid.split(","), function(mid){
|
31
|
+
var module = getModule(mid, require.module);
|
32
|
+
dojoRequireModuleStack.push(module);
|
33
|
+
injectModule(module);
|
34
|
+
});
|
35
|
+
checkDojoRequirePlugin();
|
36
|
+
},
|
37
|
+
|
38
|
+
// checkDojoRequirePlugin inspects all of the modules demanded by a dojo/require!<module-list> dependency
|
39
|
+
// to see if they have arrived. The loader does not release *any* of these modules to be instantiated
|
40
|
+
// until *all* of these modules are on board, thereby preventing the evaluation of a module with dojo.require's
|
41
|
+
// that reference modules that are not available.
|
42
|
+
//
|
43
|
+
// The algorithm works by traversing the dependency graphs (remember, there can be cycles so they are not trees)
|
44
|
+
// of each module in the dojoRequireModuleStack array (which contains the list of modules demanded by dojo/require!).
|
45
|
+
// The moment a single module is discovered that is missing, the algorithm gives up and indicates that not all
|
46
|
+
// modules are on board. dojo/loadInit! and dojo/require! are ignored because there dependencies are inserted
|
47
|
+
// directly in dojoRequireModuleStack. For example, if "your/module" module depends on "dojo/require!my/module", then
|
48
|
+
// *both* "dojo/require!my/module" and "my/module" will be in dojoRequireModuleStack. Obviously, if "my/module"
|
49
|
+
// is on board, then "dojo/require!my/module" is also satisfied, so the algorithm doesn't check for "dojo/require!my/module".
|
50
|
+
//
|
51
|
+
// Note: inserting a dojo/require!<some-module-list> dependency in the dojoRequireModuleStack achieves nothing
|
52
|
+
// with the current algorithm; however, having such modules present makes it possible to optimize the algorithm
|
53
|
+
//
|
54
|
+
// Note: prior versions of this algorithm had an optimization that signaled loaded on dojo/require! dependencies
|
55
|
+
// individually (rather than waiting for them all to be resolved). The implementation proved problematic with cycles
|
56
|
+
// and plugins. However, it is possible to reattach that strategy in the future.
|
57
|
+
|
58
|
+
// a set from module-id to {undefined | 1 | 0}, where...
|
59
|
+
// undefined => the module has not been inspected
|
60
|
+
// 0 => the module or at least one of its dependencies has not arrived
|
61
|
+
// 1 => the module is a loadInit! or require! plugin resource, or is currently being traversed (therefore, assume
|
62
|
+
// OK until proven otherwise), or has been completely traversed and all dependencies have arrived
|
63
|
+
touched,
|
64
|
+
|
65
|
+
traverse = function(m){
|
66
|
+
touched[m.mid] = 1;
|
67
|
+
for(var t, module, deps = m.deps || [], i= 0; i<deps.length; i++){
|
68
|
+
module = deps[i];
|
69
|
+
if(!(t = touched[module.mid])){
|
70
|
+
if(t===0 || !traverse(module)){
|
71
|
+
touched[m.mid] = 0;
|
72
|
+
return false;
|
73
|
+
}
|
74
|
+
}
|
75
|
+
}
|
76
|
+
return true;
|
77
|
+
},
|
78
|
+
|
79
|
+
checkDojoRequirePlugin = function(){
|
80
|
+
// initialize the touched hash with easy-to-compute values that help short circuit recursive algorithm;
|
81
|
+
// recall loadInit/require plugin modules are dependencies of modules in dojoRequireModuleStack...
|
82
|
+
// which would cause a circular dependency chain that would never be resolved if checked here
|
83
|
+
// notice all dependencies of any particular loadInit/require plugin module will already
|
84
|
+
// be checked since those are pushed into dojoRequireModuleStack explicitly by the
|
85
|
+
// plugin...so if a particular loadInitPlugin module's dependencies are not really
|
86
|
+
// on board, that *will* be detected elsewhere in the traversal.
|
87
|
+
var module, mid;
|
88
|
+
touched = {};
|
89
|
+
for(mid in modules){
|
90
|
+
module = modules[mid];
|
91
|
+
// this could be improved by remembering the result of the regex tests
|
92
|
+
if(module.executed || module.noReqPluginCheck){
|
93
|
+
touched[mid] = 1;
|
94
|
+
}else{
|
95
|
+
if(module.noReqPluginCheck!==0){
|
96
|
+
// tag the module as either a loadInit or require plugin or not for future reference
|
97
|
+
module.noReqPluginCheck = /loadInit\!/.test(mid) || /require\!/.test(mid) ? 1 : 0;
|
98
|
+
}
|
99
|
+
if(module.noReqPluginCheck){
|
100
|
+
touched[mid] = 1;
|
101
|
+
}else if(module.injected!==arrived){
|
102
|
+
// not executed, has not arrived, and is not a loadInit or require plugin resource
|
103
|
+
touched[mid] = 0;
|
104
|
+
}// else, leave undefined and we'll traverse the dependencies
|
105
|
+
}
|
106
|
+
}
|
107
|
+
|
108
|
+
for(var t, i = 0, end = dojoRequireModuleStack.length; i<end; i++){
|
109
|
+
module = dojoRequireModuleStack[i];
|
110
|
+
if(!(t = touched[module.mid])){
|
111
|
+
if(t===0 || !traverse(module)){
|
112
|
+
return;
|
113
|
+
}
|
114
|
+
}
|
115
|
+
}
|
116
|
+
loaderVars.holdIdle();
|
117
|
+
var oldCallbacks = dojoRequireCallbacks;
|
118
|
+
dojoRequireCallbacks = [];
|
119
|
+
array.forEach(oldCallbacks, function(cb){cb(1);});
|
120
|
+
loaderVars.releaseIdle();
|
121
|
+
},
|
122
|
+
|
123
|
+
dojoLoadInitPlugin = function(mid, require, loaded){
|
124
|
+
// mid names a module that defines a "dojo load init" bundle, an object with two properties:
|
125
|
+
//
|
126
|
+
// * names: a vector of module ids that give top-level names to define in the lexical scope of def
|
127
|
+
// * def: a function that contains some some legacy loader API applications
|
128
|
+
//
|
129
|
+
// The point of def is to possibly cause some modules to be loaded (but not executed) by dojo/require! where the module
|
130
|
+
// ids are possibly-determined at runtime. For example, here is dojox.gfx from v1.6 expressed as an AMD module using the dojo/loadInit
|
131
|
+
// and dojo/require plugins.
|
132
|
+
//
|
133
|
+
// // dojox/gfx:
|
134
|
+
//
|
135
|
+
// define("*loadInit_12, {
|
136
|
+
// names:["dojo", "dijit", "dojox"],
|
137
|
+
// def: function(){
|
138
|
+
// dojo.loadInit(function(){
|
139
|
+
// var gfx = lang.getObject("dojox.gfx", true);
|
140
|
+
//
|
141
|
+
// //
|
142
|
+
// // code required to set gfx properties ommitted...
|
143
|
+
// //
|
144
|
+
//
|
145
|
+
// // now use the calculations to include the runtime-dependent module
|
146
|
+
// dojo.require("dojox.gfx." + gfx.renderer);
|
147
|
+
// });
|
148
|
+
// }
|
149
|
+
// });
|
150
|
+
//
|
151
|
+
// define(["dojo", "dojo/loadInit!" + id].concat("dojo/require!dojox/gfx/matric,dojox/gfx/_base"), function(dojo){
|
152
|
+
// // when this AMD factory function is executed, the following modules are guaranteed downloaded but not executed:
|
153
|
+
// // "dojox.gfx." + gfx.renderer
|
154
|
+
// // dojox.gfx.matrix
|
155
|
+
// // dojox.gfx._base
|
156
|
+
// dojo.provide("dojo.gfx");
|
157
|
+
// dojo.require("dojox.gfx.matrix");
|
158
|
+
// dojo.require("dojox.gfx._base");
|
159
|
+
// dojo.require("dojox.gfx." + gfx.renderer);
|
160
|
+
// return lang.getObject("dojo.gfx");
|
161
|
+
// });
|
162
|
+
// })();
|
163
|
+
//
|
164
|
+
// The idea is to run the legacy loader API with global variables shadowed, which allows these variables to
|
165
|
+
// be relocated. For example, dojox and dojo could be relocated to different names by giving a packageMap and the code above will
|
166
|
+
// execute properly (because the plugin below resolves the load init bundle.names module with respect to the module that demanded
|
167
|
+
// the plugin resource).
|
168
|
+
//
|
169
|
+
// Note that the relocation is specified in the runtime configuration; relocated names need not be set at build-time.
|
170
|
+
//
|
171
|
+
// Warning: this is not the best way to express dojox.gfx as and AMD module. In fact, the module has been properly converted in
|
172
|
+
// v1.7. However, this technique allows the builder to convert legacy modules into AMD modules and guarantee the codepath is the
|
173
|
+
// same in the converted AMD module.
|
174
|
+
require([mid], function(bundle){
|
175
|
+
// notice how names is resolved with respect to the module that demanded the plugin resource
|
176
|
+
require(bundle.names, function(){
|
177
|
+
// bring the bundle names into scope
|
178
|
+
for(var scopeText = "", args= [], i = 0; i<arguments.length; i++){
|
179
|
+
scopeText+= "var " + bundle.names[i] + "= arguments[" + i + "]; ";
|
180
|
+
args.push(arguments[i]);
|
181
|
+
}
|
182
|
+
eval(scopeText);
|
183
|
+
|
184
|
+
var callingModule = require.module,
|
185
|
+
deps = [],
|
186
|
+
hold = {},
|
187
|
+
requireList = [],
|
188
|
+
p,
|
189
|
+
syncLoaderApi = {
|
190
|
+
provide:function(moduleName){
|
191
|
+
// mark modules that arrive consequent to multiple provides in this module as arrived since they can't be injected
|
192
|
+
moduleName = slashName(moduleName);
|
193
|
+
var providedModule = getModule(moduleName, callingModule);
|
194
|
+
if(providedModule!==callingModule){
|
195
|
+
setArrived(providedModule);
|
196
|
+
}
|
197
|
+
},
|
198
|
+
require:function(moduleName, omitModuleCheck){
|
199
|
+
moduleName = slashName(moduleName);
|
200
|
+
omitModuleCheck && (getModule(moduleName, callingModule).result = nonmodule);
|
201
|
+
requireList.push(moduleName);
|
202
|
+
},
|
203
|
+
requireLocalization:function(moduleName, bundleName, locale){
|
204
|
+
// since we're going to need dojo/i8n, add it to deps if not already there
|
205
|
+
deps.length || (deps = ["dojo/i18n"]);
|
206
|
+
|
207
|
+
// figure out if the bundle is xdomain; if so, add it to the depsSet
|
208
|
+
locale = (locale || dojo.locale).toLowerCase();
|
209
|
+
moduleName = slashName(moduleName) + "/nls/" + (/root/i.test(locale) ? "" : locale + "/") + slashName(bundleName);
|
210
|
+
if(getModule(moduleName, callingModule).isXd){
|
211
|
+
deps.push("dojo/i18n!" + moduleName);
|
212
|
+
}// else the bundle will be loaded synchronously when the module is evaluated
|
213
|
+
},
|
214
|
+
loadInit:function(f){
|
215
|
+
f();
|
216
|
+
}
|
217
|
+
};
|
218
|
+
|
219
|
+
// hijack the correct dojo and apply bundle.def
|
220
|
+
try{
|
221
|
+
for(p in syncLoaderApi){
|
222
|
+
hold[p] = dojo[p];
|
223
|
+
dojo[p] = syncLoaderApi[p];
|
224
|
+
}
|
225
|
+
bundle.def.apply(null, args);
|
226
|
+
}catch(e){
|
227
|
+
signal("error", [makeErrorToken("failedDojoLoadInit"), e]);
|
228
|
+
}finally{
|
229
|
+
for(p in syncLoaderApi){
|
230
|
+
dojo[p] = hold[p];
|
231
|
+
}
|
232
|
+
}
|
233
|
+
|
234
|
+
// requireList is the list of modules that need to be downloaded but not executed before the callingModule can be executed
|
235
|
+
requireList.length && deps.push("dojo/require!" + requireList.join(","));
|
236
|
+
|
237
|
+
dojoRequireCallbacks.push(loaded);
|
238
|
+
array.forEach(requireList, function(mid){
|
239
|
+
var module = getModule(mid, require.module);
|
240
|
+
dojoRequireModuleStack.push(module);
|
241
|
+
injectModule(module);
|
242
|
+
});
|
243
|
+
checkDojoRequirePlugin();
|
244
|
+
});
|
245
|
+
});
|
246
|
+
},
|
247
|
+
|
248
|
+
extractApplication = function(
|
249
|
+
text, // the text to search
|
250
|
+
startSearch, // the position in text to start looking for the closing paren
|
251
|
+
startApplication // the position in text where the function application expression starts
|
252
|
+
){
|
253
|
+
// find end of the call by finding the matching end paren
|
254
|
+
// Warning: as usual, this will fail in the presense of unmatched right parans contained in strings, regexs, or unremoved comments
|
255
|
+
var parenRe = /\(|\)/g,
|
256
|
+
matchCount = 1,
|
257
|
+
match;
|
258
|
+
parenRe.lastIndex = startSearch;
|
259
|
+
while((match = parenRe.exec(text))){
|
260
|
+
if(match[0] == ")"){
|
261
|
+
matchCount -= 1;
|
262
|
+
}else{
|
263
|
+
matchCount += 1;
|
264
|
+
}
|
265
|
+
if(matchCount == 0){
|
266
|
+
break;
|
267
|
+
}
|
268
|
+
}
|
269
|
+
|
270
|
+
if(matchCount != 0){
|
271
|
+
throw "unmatched paren around character " + parenRe.lastIndex + " in: " + text;
|
272
|
+
}
|
273
|
+
|
274
|
+
//Put the master matching string in the results.
|
275
|
+
return [dojo.trim(text.substring(startApplication, parenRe.lastIndex))+";\n", parenRe.lastIndex];
|
276
|
+
},
|
277
|
+
|
278
|
+
// the following regex is taken from 1.6. It is a very poor technique to remove comments and
|
279
|
+
// will fail in some cases; for example, consider the code...
|
280
|
+
//
|
281
|
+
// var message = "Category-1 */* Category-2";
|
282
|
+
//
|
283
|
+
// The regex that follows will see a /* comment and trash the code accordingly. In fact, there are all
|
284
|
+
// kinds of cases like this with strings and regexs that will cause this design to fail miserably.
|
285
|
+
//
|
286
|
+
// Alternative regex designs exist that will result in less-likely failures, but will still fail in many cases.
|
287
|
+
// The only solution guaranteed 100% correct is to parse the code and that seems overkill for this
|
288
|
+
// backcompat/unbuilt-xdomain layer. In the end, since it's been this way for a while, we won't change it.
|
289
|
+
// See the opening paragraphs of Chapter 7 or ECME-262 which describes the lexical abiguity further.
|
290
|
+
removeCommentRe = /(\/\*([\s\S]*?)\*\/|\/\/(.*)$)/mg,
|
291
|
+
|
292
|
+
syncLoaderApiRe = /(^|\s)dojo\.(loadInit|require|provide|requireLocalization|requireIf|requireAfterIf|platformRequire)\s*\(/mg,
|
293
|
+
|
294
|
+
amdLoaderApiRe = /(^|\s)(require|define)\s*\(/m,
|
295
|
+
|
296
|
+
extractLegacyApiApplications = function(text, noCommentText){
|
297
|
+
// scan the noCommentText for any legacy loader API applications. Copy such applications into result (this is
|
298
|
+
// used by the builder). Move dojo.loadInit applications to loadInitApplications string. Copy all other applications
|
299
|
+
// to otherApplications string. If no applications were found, return 0, signalling an AMD module. Otherwise, return
|
300
|
+
// loadInitApplications + otherApplications. Fixup text by replacing
|
301
|
+
//
|
302
|
+
// dojo.loadInit(// etc...
|
303
|
+
//
|
304
|
+
// with
|
305
|
+
//
|
306
|
+
// \n 0 && dojo.loadInit(// etc...
|
307
|
+
//
|
308
|
+
// Which results in the dojo.loadInit from *not* being applied. This design goes a long way towards protecting the
|
309
|
+
// code from an over-agressive removeCommentRe. However...
|
310
|
+
//
|
311
|
+
// WARNING: the removeCommentRe will cause an error if a detected comment removes all or part of a legacy-loader application
|
312
|
+
// that is not in a comment.
|
313
|
+
|
314
|
+
var match, startSearch, startApplication, application,
|
315
|
+
loadInitApplications = [],
|
316
|
+
otherApplications = [],
|
317
|
+
allApplications = [];
|
318
|
+
|
319
|
+
// noCommentText may be provided by a build app with comments extracted by a better method than regex (hopefully)
|
320
|
+
noCommentText = noCommentText || text.replace(removeCommentRe, function(match){
|
321
|
+
// remove iff the detected comment has text that looks like a sync loader API application; this helps by
|
322
|
+
// removing as little as possible, minimizing the changes the janky regex will kill the module
|
323
|
+
syncLoaderApiRe.lastIndex = amdLoaderApiRe.lastIndex = 0;
|
324
|
+
return (syncLoaderApiRe.test(match) || amdLoaderApiRe.test(match)) ? "" : match;
|
325
|
+
});
|
326
|
+
|
327
|
+
// find and extract all dojo.loadInit applications
|
328
|
+
while((match = syncLoaderApiRe.exec(noCommentText))){
|
329
|
+
startSearch = syncLoaderApiRe.lastIndex;
|
330
|
+
startApplication = startSearch - match[0].length;
|
331
|
+
application = extractApplication(noCommentText, startSearch, startApplication);
|
332
|
+
if(match[2]=="loadInit"){
|
333
|
+
loadInitApplications.push(application[0]);
|
334
|
+
}else{
|
335
|
+
otherApplications.push(application[0]);
|
336
|
+
}
|
337
|
+
syncLoaderApiRe.lastIndex = application[1];
|
338
|
+
}
|
339
|
+
allApplications = loadInitApplications.concat(otherApplications);
|
340
|
+
if(allApplications.length || !amdLoaderApiRe.test(noCommentText)){
|
341
|
+
// either there were some legacy loader API applications or there were no AMD API applications
|
342
|
+
return [text.replace(/(^|\s)dojo\.loadInit\s*\(/g, "\n0 && dojo.loadInit("), allApplications.join(""), allApplications];
|
343
|
+
}else{
|
344
|
+
// legacy loader API *was not* detected and AMD API *was* detected; therefore, assume it's an AMD module
|
345
|
+
return 0;
|
346
|
+
}
|
347
|
+
},
|
348
|
+
|
349
|
+
transformToAmd = function(module, text){
|
350
|
+
// This is roughly the equivalent of dojo._xdCreateResource in 1.6-; however, it expresses a v1.6- dojo
|
351
|
+
// module in terms of AMD define instead of creating the dojo proprietary xdomain module expression.
|
352
|
+
// The module could have originated from several sources:
|
353
|
+
//
|
354
|
+
// * amd require() a module, e.g., require(["my/module"])
|
355
|
+
// * amd require() a nonmodule, e.g., require(["my/resource.js"')
|
356
|
+
// * amd define() deps vector (always a module)
|
357
|
+
// * dojo.require() a module, e.g. dojo.require("my.module")
|
358
|
+
// * dojo.require() a nonmodule, e.g., dojo.require("my.module", true)
|
359
|
+
// * dojo.requireIf/requireAfterIf/platformRequire a module
|
360
|
+
//
|
361
|
+
// The module is scanned for legacy loader API applications; if none are found, then assume the module is an
|
362
|
+
// AMD module and return 0. Otherwise, a synthetic dojo/loadInit plugin resource is created and the module text
|
363
|
+
// is rewritten as an AMD module with the single dependency of this synthetic resource. When the dojo/loadInit
|
364
|
+
// plugin loaded the synthetic resource, it will cause all dojo.loadInit's to be executed, find all dojo.require's
|
365
|
+
// (either directly consequent to dojo.require or indirectly consequent to dojo.require[After]If or
|
366
|
+
// dojo.platformRequire, and finally cause loading of all dojo.required modules with the dojo/require plugin. Thus,
|
367
|
+
// when the dojo/loadInit plugin reports it has been loaded, all modules required by the given module are guaranteed
|
368
|
+
// loaded (but not executed). This then allows the module to execute it's code path without interupts, thereby
|
369
|
+
// following the synchronous code path.
|
370
|
+
|
371
|
+
var extractResult, id, names = [], namesAsStrings = [];
|
372
|
+
if(buildDetectRe.test(text) || !(extractResult = extractLegacyApiApplications(text))){
|
373
|
+
// buildDetectRe.test(text) => a built module, always AMD
|
374
|
+
// extractResult==0 => no sync API
|
375
|
+
return 0;
|
376
|
+
}
|
377
|
+
|
378
|
+
// manufacture a synthetic module id that can never be a real mdule id (just like require does)
|
379
|
+
id = module.mid + "-*loadInit";
|
380
|
+
|
381
|
+
// construct the dojo/loadInit names vector which causes any relocated names to be defined as lexical variables under their not-relocated name
|
382
|
+
// the dojo/loadInit plugin assumes the first name in names is "dojo"
|
383
|
+
|
384
|
+
for(var p in getModule("dojo", module).result.scopeMap){
|
385
|
+
names.push(p);
|
386
|
+
namesAsStrings.push('"' + p + '"');
|
387
|
+
}
|
388
|
+
|
389
|
+
// rewrite the module as a synthetic dojo/loadInit plugin resource + the module expressed as an AMD module that depends on this synthetic resource
|
390
|
+
return "// xdomain rewrite of " + module.path + "\n" +
|
391
|
+
"define('" + id + "',{\n" +
|
392
|
+
"\tnames:" + dojo.toJson(names) + ",\n" +
|
393
|
+
"\tdef:function(" + names.join(",") + "){" + extractResult[1] + "}" +
|
394
|
+
"});\n\n" +
|
395
|
+
"define(" + dojo.toJson(names.concat(["dojo/loadInit!"+id])) + ", function(" + names.join(",") + "){\n" + extractResult[0] + "});";
|
396
|
+
},
|
397
|
+
|
398
|
+
loaderVars = require.initSyncLoader(dojoRequirePlugin, checkDojoRequirePlugin, transformToAmd),
|
399
|
+
|
400
|
+
sync =
|
401
|
+
loaderVars.sync,
|
402
|
+
|
403
|
+
xd =
|
404
|
+
loaderVars.xd,
|
405
|
+
|
406
|
+
arrived =
|
407
|
+
loaderVars.arrived,
|
408
|
+
|
409
|
+
nonmodule =
|
410
|
+
loaderVars.nonmodule,
|
411
|
+
|
412
|
+
executing =
|
413
|
+
loaderVars.executing,
|
414
|
+
|
415
|
+
executed =
|
416
|
+
loaderVars.executed,
|
417
|
+
|
418
|
+
syncExecStack =
|
419
|
+
loaderVars.syncExecStack,
|
420
|
+
|
421
|
+
modules =
|
422
|
+
loaderVars.modules,
|
423
|
+
|
424
|
+
execQ =
|
425
|
+
loaderVars.execQ,
|
426
|
+
|
427
|
+
getModule =
|
428
|
+
loaderVars.getModule,
|
429
|
+
|
430
|
+
injectModule =
|
431
|
+
loaderVars.injectModule,
|
432
|
+
|
433
|
+
setArrived =
|
434
|
+
loaderVars.setArrived,
|
435
|
+
|
436
|
+
signal =
|
437
|
+
loaderVars.signal,
|
438
|
+
|
439
|
+
finishExec =
|
440
|
+
loaderVars.finishExec,
|
441
|
+
|
442
|
+
execModule =
|
443
|
+
loaderVars.execModule,
|
444
|
+
|
445
|
+
getLegacyMode =
|
446
|
+
loaderVars.getLegacyMode;
|
447
|
+
|
448
|
+
dojo.provide = function(mid){
|
449
|
+
var executingModule = syncExecStack[0],
|
450
|
+
module = lang.mixin(getModule(slashName(mid), require.module), {
|
451
|
+
executed:executing,
|
452
|
+
result:lang.getObject(mid, true)
|
453
|
+
});
|
454
|
+
setArrived(module);
|
455
|
+
if(executingModule){
|
456
|
+
(executingModule.provides || (executingModule.provides = [])).push(function(){
|
457
|
+
module.result = lang.getObject(mid);
|
458
|
+
delete module.provides;
|
459
|
+
module.executed!==executed && finishExec(module);
|
460
|
+
});
|
461
|
+
}// else dojo.provide called not consequent to loading; therefore, give up trying to publish module value to loader namespace
|
462
|
+
return module.result;
|
463
|
+
};
|
464
|
+
|
465
|
+
has.add("config-publishRequireResult", 1, 0, 0);
|
466
|
+
|
467
|
+
dojo.require = function(moduleName, omitModuleCheck) {
|
468
|
+
// summary:
|
469
|
+
// loads a Javascript module from the appropriate URI
|
470
|
+
//
|
471
|
+
// moduleName: String
|
472
|
+
// module name to load, using periods for separators,
|
473
|
+
// e.g. "dojo.date.locale". Module paths are de-referenced by dojo's
|
474
|
+
// internal mapping of locations to names and are disambiguated by
|
475
|
+
// longest prefix. See `dojo.registerModulePath()` for details on
|
476
|
+
// registering new modules.
|
477
|
+
//
|
478
|
+
// omitModuleCheck: Boolean?
|
479
|
+
// if `true`, omitModuleCheck skips the step of ensuring that the
|
480
|
+
// loaded file actually defines the symbol it is referenced by.
|
481
|
+
// For example if it called as `dojo.require("a.b.c")` and the
|
482
|
+
// file located at `a/b/c.js` does not define an object `a.b.c`,
|
483
|
+
// and exception will be throws whereas no exception is raised
|
484
|
+
// when called as `dojo.require("a.b.c", true)`
|
485
|
+
//
|
486
|
+
// description:
|
487
|
+
// Modules are loaded via dojo.require by using one of two loaders: the normal loader
|
488
|
+
// and the xdomain loader. The xdomain loader is used when dojo was built with a
|
489
|
+
// custom build that specified loader=xdomain and the module lives on a modulePath
|
490
|
+
// that is a whole URL, with protocol and a domain. The versions of Dojo that are on
|
491
|
+
// the Google and AOL CDNs use the xdomain loader.
|
492
|
+
//
|
493
|
+
// If the module is loaded via the xdomain loader, it is an asynchronous load, since
|
494
|
+
// the module is added via a dynamically created script tag. This
|
495
|
+
// means that dojo.require() can return before the module has loaded. However, this
|
496
|
+
// should only happen in the case where you do dojo.require calls in the top-level
|
497
|
+
// HTML page, or if you purposely avoid the loader checking for dojo.require
|
498
|
+
// dependencies in your module by using a syntax like dojo["require"] to load the module.
|
499
|
+
//
|
500
|
+
// Sometimes it is useful to not have the loader detect the dojo.require calls in the
|
501
|
+
// module so that you can dynamically load the modules as a result of an action on the
|
502
|
+
// page, instead of right at module load time.
|
503
|
+
//
|
504
|
+
// Also, for script blocks in an HTML page, the loader does not pre-process them, so
|
505
|
+
// it does not know to download the modules before the dojo.require calls occur.
|
506
|
+
//
|
507
|
+
// So, in those two cases, when you want on-the-fly module loading or for script blocks
|
508
|
+
// in the HTML page, special care must be taken if the dojo.required code is loaded
|
509
|
+
// asynchronously. To make sure you can execute code that depends on the dojo.required
|
510
|
+
// modules, be sure to add the code that depends on the modules in a dojo.addOnLoad()
|
511
|
+
// callback. dojo.addOnLoad waits for all outstanding modules to finish loading before
|
512
|
+
// executing.
|
513
|
+
//
|
514
|
+
// This type of syntax works with both xdomain and normal loaders, so it is good
|
515
|
+
// practice to always use this idiom for on-the-fly code loading and in HTML script
|
516
|
+
// blocks. If at some point you change loaders and where the code is loaded from,
|
517
|
+
// it will all still work.
|
518
|
+
//
|
519
|
+
// More on how dojo.require
|
520
|
+
// `dojo.require("A.B")` first checks to see if symbol A.B is
|
521
|
+
// defined. If it is, it is simply returned (nothing to do).
|
522
|
+
//
|
523
|
+
// If it is not defined, it will look for `A/B.js` in the script root
|
524
|
+
// directory.
|
525
|
+
//
|
526
|
+
// `dojo.require` throws an exception if it cannot find a file
|
527
|
+
// to load, or if the symbol `A.B` is not defined after loading.
|
528
|
+
//
|
529
|
+
// It returns the object `A.B`, but note the caveats above about on-the-fly loading and
|
530
|
+
// HTML script blocks when the xdomain loader is loading a module.
|
531
|
+
//
|
532
|
+
// `dojo.require()` does nothing about importing symbols into
|
533
|
+
// the current namespace. It is presumed that the caller will
|
534
|
+
// take care of that.
|
535
|
+
//
|
536
|
+
// example:
|
537
|
+
// To use dojo.require in conjunction with dojo.ready:
|
538
|
+
//
|
539
|
+
// | dojo.require("foo");
|
540
|
+
// | dojo.require("bar");
|
541
|
+
// | dojo.addOnLoad(function(){
|
542
|
+
// | //you can now safely do something with foo and bar
|
543
|
+
// | });
|
544
|
+
//
|
545
|
+
// example:
|
546
|
+
// For example, to import all symbols into a local block, you might write:
|
547
|
+
//
|
548
|
+
// | with (dojo.require("A.B")) {
|
549
|
+
// | ...
|
550
|
+
// | }
|
551
|
+
//
|
552
|
+
// And to import just the leaf symbol to a local variable:
|
553
|
+
//
|
554
|
+
// | var B = dojo.require("A.B");
|
555
|
+
// | ...
|
556
|
+
//
|
557
|
+
// returns:
|
558
|
+
// the required namespace object
|
559
|
+
function doRequire(mid, omitModuleCheck){
|
560
|
+
var module = getModule(slashName(mid), require.module);
|
561
|
+
if(syncExecStack.length && syncExecStack[0].finish){
|
562
|
+
// switched to async loading in the middle of evaluating a legacy module; stop
|
563
|
+
// applying dojo.require so the remaining dojo.requires are applied in order
|
564
|
+
syncExecStack[0].finish.push(mid);
|
565
|
+
return undefined;
|
566
|
+
}
|
567
|
+
|
568
|
+
// recall module.executed has values {0, executing, executed}; therefore, truthy indicates executing or executed
|
569
|
+
if(module.executed){
|
570
|
+
return module.result;
|
571
|
+
}
|
572
|
+
omitModuleCheck && (module.result = nonmodule);
|
573
|
+
|
574
|
+
var currentMode = getLegacyMode();
|
575
|
+
|
576
|
+
// recall, in sync mode to inject is to *eval* the module text
|
577
|
+
// if the module is a legacy module, this is the same as executing
|
578
|
+
// but if the module is an AMD module, this means defining, not executing
|
579
|
+
injectModule(module);
|
580
|
+
// the inject may have changed the mode
|
581
|
+
currentMode = getLegacyMode();
|
582
|
+
|
583
|
+
// in sync mode to dojo.require is to execute
|
584
|
+
if(module.executed!==executed && module.injected===arrived){
|
585
|
+
// the module was already here before injectModule was called probably finishing up a xdomain
|
586
|
+
// load, but maybe a module given to the loader directly rather than having the loader retrieve it
|
587
|
+
loaderVars.holdIdle();
|
588
|
+
execModule(module);
|
589
|
+
loaderVars.releaseIdle();
|
590
|
+
}
|
591
|
+
if(module.executed){
|
592
|
+
return module.result;
|
593
|
+
}
|
594
|
+
|
595
|
+
if(currentMode==sync){
|
596
|
+
// the only way to get here is in sync mode and dojo.required a module that
|
597
|
+
// * was loaded async in the injectModule application a few lines up
|
598
|
+
// * was an AMD module that had deps that are being loaded async and therefore couldn't execute
|
599
|
+
if(module.cjs){
|
600
|
+
// the module was an AMD module; unshift, not push, which causes the current traversal to be reattempted from the top
|
601
|
+
execQ.unshift(module);
|
602
|
+
}else{
|
603
|
+
// the module was a legacy module
|
604
|
+
syncExecStack.length && (syncExecStack[0].finish= [mid]);
|
605
|
+
}
|
606
|
+
}else{
|
607
|
+
// the loader wasn't in sync mode on entry; probably async mode; therefore, no expectation of getting
|
608
|
+
// the module value synchronously; make sure it gets executed though
|
609
|
+
execQ.push(module);
|
610
|
+
}
|
611
|
+
return undefined;
|
612
|
+
}
|
613
|
+
|
614
|
+
var result = doRequire(moduleName, omitModuleCheck);
|
615
|
+
if(has("config-publishRequireResult") && !lang.exists(moduleName) && result!==undefined){
|
616
|
+
lang.setObject(moduleName, result);
|
617
|
+
}
|
618
|
+
return result;
|
619
|
+
};
|
620
|
+
|
621
|
+
dojo.loadInit = function(f) {
|
622
|
+
f();
|
623
|
+
};
|
624
|
+
|
625
|
+
dojo.registerModulePath = function(/*String*/moduleName, /*String*/prefix){
|
626
|
+
// summary:
|
627
|
+
// Maps a module name to a path
|
628
|
+
// description:
|
629
|
+
// An unregistered module is given the default path of ../[module],
|
630
|
+
// relative to Dojo root. For example, module acme is mapped to
|
631
|
+
// ../acme. If you want to use a different module name, use
|
632
|
+
// dojo.registerModulePath.
|
633
|
+
// example:
|
634
|
+
// If your dojo.js is located at this location in the web root:
|
635
|
+
// | /myapp/js/dojo/dojo/dojo.js
|
636
|
+
// and your modules are located at:
|
637
|
+
// | /myapp/js/foo/bar.js
|
638
|
+
// | /myapp/js/foo/baz.js
|
639
|
+
// | /myapp/js/foo/thud/xyzzy.js
|
640
|
+
// Your application can tell Dojo to locate the "foo" namespace by calling:
|
641
|
+
// | dojo.registerModulePath("foo", "../../foo");
|
642
|
+
// At which point you can then use dojo.require() to load the
|
643
|
+
// modules (assuming they provide() the same things which are
|
644
|
+
// required). The full code might be:
|
645
|
+
// | <script type="text/javascript"
|
646
|
+
// | src="/myapp/js/dojo/dojo/dojo.js"></script>
|
647
|
+
// | <script type="text/javascript">
|
648
|
+
// | dojo.registerModulePath("foo", "../../foo");
|
649
|
+
// | dojo.require("foo.bar");
|
650
|
+
// | dojo.require("foo.baz");
|
651
|
+
// | dojo.require("foo.thud.xyzzy");
|
652
|
+
// | </script>
|
653
|
+
|
654
|
+
var paths = {};
|
655
|
+
paths[moduleName.replace(/\./g, "/")] = prefix;
|
656
|
+
require({paths:paths});
|
657
|
+
};
|
658
|
+
|
659
|
+
dojo.platformRequire = function(/*Object*/modMap){
|
660
|
+
// summary:
|
661
|
+
// require one or more modules based on which host environment
|
662
|
+
// Dojo is currently operating in
|
663
|
+
// description:
|
664
|
+
// This method takes a "map" of arrays which one can use to
|
665
|
+
// optionally load dojo modules. The map is indexed by the
|
666
|
+
// possible dojo.name_ values, with two additional values:
|
667
|
+
// "default" and "common". The items in the "default" array will
|
668
|
+
// be loaded if none of the other items have been choosen based on
|
669
|
+
// dojo.name_, set by your host environment. The items in the
|
670
|
+
// "common" array will *always* be loaded, regardless of which
|
671
|
+
// list is chosen.
|
672
|
+
// example:
|
673
|
+
// | dojo.platformRequire({
|
674
|
+
// | browser: [
|
675
|
+
// | "foo.sample", // simple module
|
676
|
+
// | "foo.test",
|
677
|
+
// | ["foo.bar.baz", true] // skip object check in _loadModule (dojo.require)
|
678
|
+
// | ],
|
679
|
+
// | default: [ "foo.sample._base" ],
|
680
|
+
// | common: [ "important.module.common" ]
|
681
|
+
// | });
|
682
|
+
|
683
|
+
var result = (modMap.common || []).concat(modMap[dojo._name] || modMap["default"] || []),
|
684
|
+
temp;
|
685
|
+
while(result.length){
|
686
|
+
if(lang.isArray(temp = result.shift())){
|
687
|
+
dojo.require.apply(dojo, temp);
|
688
|
+
}else{
|
689
|
+
dojo.require(temp);
|
690
|
+
}
|
691
|
+
}
|
692
|
+
};
|
693
|
+
|
694
|
+
dojo.requireIf = dojo.requireAfterIf = function(/*Boolean*/ condition, /*String*/ moduleName, /*Boolean?*/omitModuleCheck){
|
695
|
+
// summary:
|
696
|
+
// If the condition is true then call `dojo.require()` for the specified
|
697
|
+
// resource
|
698
|
+
//
|
699
|
+
// example:
|
700
|
+
// | dojo.requireIf(dojo.isBrowser, "my.special.Module");
|
701
|
+
|
702
|
+
if(condition){
|
703
|
+
dojo.require(moduleName, omitModuleCheck);
|
704
|
+
}
|
705
|
+
};
|
706
|
+
|
707
|
+
dojo.requireLocalization = function(/*String*/moduleName, /*String*/bundleName, /*String?*/locale){
|
708
|
+
require(["../i18n"], function(i18n){
|
709
|
+
i18n.getLocalization(moduleName, bundleName, locale);
|
710
|
+
});
|
711
|
+
};
|
712
|
+
|
713
|
+
return {
|
714
|
+
extractLegacyApiApplications:extractLegacyApiApplications,
|
715
|
+
require:loaderVars.dojoRequirePlugin,
|
716
|
+
loadInit:dojoLoadInitPlugin
|
717
|
+
};
|
718
|
+
});
|