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,178 @@
|
|
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/lang",["./kernel","../has","./sniff"],function(_1,_2){
|
9
|
+
_2.add("bug-for-in-skips-shadowed",function(){
|
10
|
+
for(var i in {toString:1}){
|
11
|
+
return 0;
|
12
|
+
}
|
13
|
+
return 1;
|
14
|
+
});
|
15
|
+
var _3=_2("bug-for-in-skips-shadowed")?"hasOwnProperty.valueOf.isPrototypeOf.propertyIsEnumerable.toLocaleString.toString.constructor".split("."):[],_4=_3.length,_5=function(_6,_7,_8){
|
16
|
+
var _9,s,i,_a={};
|
17
|
+
for(_9 in _7){
|
18
|
+
s=_7[_9];
|
19
|
+
if(!(_9 in _6)||(_6[_9]!==s&&(!(_9 in _a)||_a[_9]!==s))){
|
20
|
+
_6[_9]=_8?_8(s):s;
|
21
|
+
}
|
22
|
+
}
|
23
|
+
if(_2("bug-for-in-skips-shadowed")){
|
24
|
+
if(_7){
|
25
|
+
for(i=0;i<_4;++i){
|
26
|
+
_9=_3[i];
|
27
|
+
s=_7[_9];
|
28
|
+
if(!(_9 in _6)||(_6[_9]!==s&&(!(_9 in _a)||_a[_9]!==s))){
|
29
|
+
_6[_9]=_8?_8(s):s;
|
30
|
+
}
|
31
|
+
}
|
32
|
+
}
|
33
|
+
}
|
34
|
+
return _6;
|
35
|
+
},_b=function(_c,_d){
|
36
|
+
if(!_c){
|
37
|
+
_c={};
|
38
|
+
}
|
39
|
+
for(var i=1,l=arguments.length;i<l;i++){
|
40
|
+
_e._mixin(_c,arguments[i]);
|
41
|
+
}
|
42
|
+
return _c;
|
43
|
+
},_f=function(_10,_11,_12){
|
44
|
+
var p,i=0,_13=_1.global;
|
45
|
+
if(!_12){
|
46
|
+
if(!_10.length){
|
47
|
+
return _13;
|
48
|
+
}else{
|
49
|
+
p=_10[i++];
|
50
|
+
try{
|
51
|
+
_12=_1.scopeMap[p]&&_1.scopeMap[p][1];
|
52
|
+
}
|
53
|
+
catch(e){
|
54
|
+
}
|
55
|
+
_12=_12||(p in _13?_13[p]:(_11?_13[p]={}:undefined));
|
56
|
+
}
|
57
|
+
}
|
58
|
+
while(_12&&(p=_10[i++])){
|
59
|
+
_12=(p in _12?_12[p]:(_11?_12[p]={}:undefined));
|
60
|
+
}
|
61
|
+
return _12;
|
62
|
+
},_14=function(_15,_16,_17){
|
63
|
+
var _18=_15.split("."),p=_18.pop(),obj=_f(_18,true,_17);
|
64
|
+
return obj&&p?(obj[p]=_16):undefined;
|
65
|
+
},_19=function(_1a,_1b,_1c){
|
66
|
+
return _f(_1a.split("."),_1b,_1c);
|
67
|
+
},_1d=function(_1e,obj){
|
68
|
+
return _e.getObject(_1e,false,obj)!==undefined;
|
69
|
+
},_1f=Object.prototype.toString,_20=function(it){
|
70
|
+
return (typeof it=="string"||it instanceof String);
|
71
|
+
},_21=function(it){
|
72
|
+
return it&&(it instanceof Array||typeof it=="array");
|
73
|
+
},_22=function(it){
|
74
|
+
return _1f.call(it)==="[object Function]";
|
75
|
+
},_23=function(it){
|
76
|
+
return it!==undefined&&(it===null||typeof it=="object"||_e.isArray(it)||_e.isFunction(it));
|
77
|
+
},_24=function(it){
|
78
|
+
return it&&it!==undefined&&!_e.isString(it)&&!_e.isFunction(it)&&!(it.tagName&&it.tagName.toLowerCase()=="form")&&(_e.isArray(it)||isFinite(it.length));
|
79
|
+
},_25=function(it){
|
80
|
+
return it&&!_e.isFunction(it)&&/\{\s*\[native code\]\s*\}/.test(String(it));
|
81
|
+
},_26=function(_27,_28){
|
82
|
+
for(var i=1,l=arguments.length;i<l;i++){
|
83
|
+
_e._mixin(_27.prototype,arguments[i]);
|
84
|
+
}
|
85
|
+
return _27;
|
86
|
+
},_29=function(_2a,_2b){
|
87
|
+
var pre=_2c(arguments,2);
|
88
|
+
var _2d=_e.isString(_2b);
|
89
|
+
return function(){
|
90
|
+
var _2e=_2c(arguments);
|
91
|
+
var f=_2d?(_2a||_1.global)[_2b]:_2b;
|
92
|
+
return f&&f.apply(_2a||this,pre.concat(_2e));
|
93
|
+
};
|
94
|
+
},_2f=function(_30,_31){
|
95
|
+
if(arguments.length>2){
|
96
|
+
return _e._hitchArgs.apply(_1,arguments);
|
97
|
+
}
|
98
|
+
if(!_31){
|
99
|
+
_31=_30;
|
100
|
+
_30=null;
|
101
|
+
}
|
102
|
+
if(_e.isString(_31)){
|
103
|
+
_30=_30||_1.global;
|
104
|
+
if(!_30[_31]){
|
105
|
+
throw (["dojo.hitch: scope[\"",_31,"\"] is null (scope=\"",_30,"\")"].join(""));
|
106
|
+
}
|
107
|
+
return function(){
|
108
|
+
return _30[_31].apply(_30,arguments||[]);
|
109
|
+
};
|
110
|
+
}
|
111
|
+
return !_30?_31:function(){
|
112
|
+
return _31.apply(_30,arguments||[]);
|
113
|
+
};
|
114
|
+
},_32=(function(){
|
115
|
+
function TMP(){
|
116
|
+
};
|
117
|
+
return function(obj,_33){
|
118
|
+
TMP.prototype=obj;
|
119
|
+
var tmp=new TMP();
|
120
|
+
TMP.prototype=null;
|
121
|
+
if(_33){
|
122
|
+
_e._mixin(tmp,_33);
|
123
|
+
}
|
124
|
+
return tmp;
|
125
|
+
};
|
126
|
+
})(),_34=function(obj,_35,_36){
|
127
|
+
return (_36||[]).concat(Array.prototype.slice.call(obj,_35||0));
|
128
|
+
},_2c=_2("ie")?(function(){
|
129
|
+
function _37(obj,_38,_39){
|
130
|
+
var arr=_39||[];
|
131
|
+
for(var x=_38||0;x<obj.length;x++){
|
132
|
+
arr.push(obj[x]);
|
133
|
+
}
|
134
|
+
return arr;
|
135
|
+
};
|
136
|
+
return function(obj){
|
137
|
+
return ((obj.item)?_37:_34).apply(this,arguments);
|
138
|
+
};
|
139
|
+
})():_34,_3a=function(_3b){
|
140
|
+
var arr=[null];
|
141
|
+
return _e.hitch.apply(_1,arr.concat(_e._toArray(arguments)));
|
142
|
+
},_3c=function(src){
|
143
|
+
if(!src||typeof src!="object"||_e.isFunction(src)){
|
144
|
+
return src;
|
145
|
+
}
|
146
|
+
if(src.nodeType&&"cloneNode" in src){
|
147
|
+
return src.cloneNode(true);
|
148
|
+
}
|
149
|
+
if(src instanceof Date){
|
150
|
+
return new Date(src.getTime());
|
151
|
+
}
|
152
|
+
if(src instanceof RegExp){
|
153
|
+
return new RegExp(src);
|
154
|
+
}
|
155
|
+
var r,i,l;
|
156
|
+
if(_e.isArray(src)){
|
157
|
+
r=[];
|
158
|
+
for(i=0,l=src.length;i<l;++i){
|
159
|
+
if(i in src){
|
160
|
+
r.push(_3c(src[i]));
|
161
|
+
}
|
162
|
+
}
|
163
|
+
}else{
|
164
|
+
r=src.constructor?new src.constructor():{};
|
165
|
+
}
|
166
|
+
return _e._mixin(r,src,_3c);
|
167
|
+
},_3d=String.prototype.trim?function(str){
|
168
|
+
return str.trim();
|
169
|
+
}:function(str){
|
170
|
+
return str.replace(/^\s\s*/,"").replace(/\s\s*$/,"");
|
171
|
+
},_3e=/\{([^\}]+)\}/g,_3f=function(_40,map,_41){
|
172
|
+
return _40.replace(_41||_3e,_e.isFunction(map)?map:function(_42,k){
|
173
|
+
return _19(k,false,map);
|
174
|
+
});
|
175
|
+
},_e={_extraNames:_3,_mixin:_5,mixin:_b,setObject:_14,getObject:_19,exists:_1d,isString:_20,isArray:_21,isFunction:_22,isObject:_23,isArrayLike:_24,isAlien:_25,extend:_26,_hitchArgs:_29,hitch:_2f,delegate:_32,_toArray:_2c,partial:_3a,clone:_3c,trim:_3d,replace:_3f};
|
176
|
+
1&&_b(_1,_e);
|
177
|
+
return _e;
|
178
|
+
});
|
@@ -0,0 +1,707 @@
|
|
1
|
+
define("dojo/_base/lang", ["./kernel", "../has", "./sniff"], function(dojo, has){
|
2
|
+
// module:
|
3
|
+
// dojo/_base/lang
|
4
|
+
// summary:
|
5
|
+
// This module defines Javascript language extensions.
|
6
|
+
|
7
|
+
has.add("bug-for-in-skips-shadowed", function(){
|
8
|
+
// if true, the for-in interator skips object properties that exist in Object's prototype (IE 6 - ?)
|
9
|
+
for(var i in {toString: 1}){
|
10
|
+
return 0;
|
11
|
+
}
|
12
|
+
return 1;
|
13
|
+
});
|
14
|
+
|
15
|
+
var _extraNames =
|
16
|
+
has("bug-for-in-skips-shadowed") ?
|
17
|
+
"hasOwnProperty.valueOf.isPrototypeOf.propertyIsEnumerable.toLocaleString.toString.constructor".split(".") : [],
|
18
|
+
|
19
|
+
_extraLen = _extraNames.length,
|
20
|
+
|
21
|
+
_mixin = function(dest, source, copyFunc){
|
22
|
+
var name, s, i, empty = {};
|
23
|
+
for(name in source){
|
24
|
+
// the (!(name in empty) || empty[name] !== s) condition avoids copying properties in "source"
|
25
|
+
// inherited from Object.prototype. For example, if dest has a custom toString() method,
|
26
|
+
// don't overwrite it with the toString() method that source inherited from Object.prototype
|
27
|
+
s = source[name];
|
28
|
+
if(!(name in dest) || (dest[name] !== s && (!(name in empty) || empty[name] !== s))){
|
29
|
+
dest[name] = copyFunc ? copyFunc(s) : s;
|
30
|
+
}
|
31
|
+
}
|
32
|
+
|
33
|
+
if(has("bug-for-in-skips-shadowed")){
|
34
|
+
if(source){
|
35
|
+
for(i = 0; i < _extraLen; ++i){
|
36
|
+
name = _extraNames[i];
|
37
|
+
s = source[name];
|
38
|
+
if(!(name in dest) || (dest[name] !== s && (!(name in empty) || empty[name] !== s))){
|
39
|
+
dest[name] = copyFunc ? copyFunc(s) : s;
|
40
|
+
}
|
41
|
+
}
|
42
|
+
}
|
43
|
+
}
|
44
|
+
|
45
|
+
return dest; // Object
|
46
|
+
},
|
47
|
+
|
48
|
+
mixin = function(dest, sources){
|
49
|
+
if(!dest){ dest = {}; }
|
50
|
+
for(var i = 1, l = arguments.length; i < l; i++){
|
51
|
+
lang._mixin(dest, arguments[i]);
|
52
|
+
}
|
53
|
+
return dest; // Object
|
54
|
+
},
|
55
|
+
|
56
|
+
getProp = function(/*Array*/parts, /*Boolean*/create, /*Object*/context){
|
57
|
+
var p, i = 0, dojoGlobal = dojo.global;
|
58
|
+
if(!context){
|
59
|
+
if(!parts.length){
|
60
|
+
return dojoGlobal;
|
61
|
+
}else{
|
62
|
+
p = parts[i++];
|
63
|
+
try{
|
64
|
+
context = dojo.scopeMap[p] && dojo.scopeMap[p][1];
|
65
|
+
}catch(e){}
|
66
|
+
context = context || (p in dojoGlobal ? dojoGlobal[p] : (create ? dojoGlobal[p] = {} : undefined));
|
67
|
+
}
|
68
|
+
}
|
69
|
+
while(context && (p = parts[i++])){
|
70
|
+
context = (p in context ? context[p] : (create ? context[p] = {} : undefined));
|
71
|
+
}
|
72
|
+
return context; // mixed
|
73
|
+
},
|
74
|
+
|
75
|
+
setObject = function(name, value, context){
|
76
|
+
var parts = name.split("."), p = parts.pop(), obj = getProp(parts, true, context);
|
77
|
+
return obj && p ? (obj[p] = value) : undefined; // Object
|
78
|
+
},
|
79
|
+
|
80
|
+
getObject = function(name, create, context){
|
81
|
+
return getProp(name.split("."), create, context); // Object
|
82
|
+
},
|
83
|
+
|
84
|
+
exists = function(name, obj){
|
85
|
+
return lang.getObject(name, false, obj) !== undefined; // Boolean
|
86
|
+
},
|
87
|
+
|
88
|
+
opts = Object.prototype.toString,
|
89
|
+
|
90
|
+
// Crockford (ish) functions
|
91
|
+
|
92
|
+
isString = function(it){
|
93
|
+
return (typeof it == "string" || it instanceof String); // Boolean
|
94
|
+
},
|
95
|
+
|
96
|
+
isArray = function(it){
|
97
|
+
return it && (it instanceof Array || typeof it == "array"); // Boolean
|
98
|
+
},
|
99
|
+
|
100
|
+
isFunction = function(it){
|
101
|
+
return opts.call(it) === "[object Function]";
|
102
|
+
},
|
103
|
+
|
104
|
+
isObject = function(it){
|
105
|
+
return it !== undefined &&
|
106
|
+
(it === null || typeof it == "object" || lang.isArray(it) || lang.isFunction(it)); // Boolean
|
107
|
+
},
|
108
|
+
|
109
|
+
isArrayLike = function(it){
|
110
|
+
return it && it !== undefined && // Boolean
|
111
|
+
// keep out built-in constructors (Number, String, ...) which have length
|
112
|
+
// properties
|
113
|
+
!lang.isString(it) && !lang.isFunction(it) &&
|
114
|
+
!(it.tagName && it.tagName.toLowerCase() == 'form') &&
|
115
|
+
(lang.isArray(it) || isFinite(it.length));
|
116
|
+
},
|
117
|
+
|
118
|
+
isAlien = function(it){
|
119
|
+
return it && !lang.isFunction(it) && /\{\s*\[native code\]\s*\}/.test(String(it)); // Boolean
|
120
|
+
},
|
121
|
+
|
122
|
+
extend = function(constructor, props){
|
123
|
+
for(var i=1, l=arguments.length; i<l; i++){
|
124
|
+
lang._mixin(constructor.prototype, arguments[i]);
|
125
|
+
}
|
126
|
+
return constructor; // Object
|
127
|
+
},
|
128
|
+
|
129
|
+
_hitchArgs = function(scope, method){
|
130
|
+
var pre = _toArray(arguments, 2);
|
131
|
+
var named = lang.isString(method);
|
132
|
+
return function(){
|
133
|
+
// arrayify arguments
|
134
|
+
var args = _toArray(arguments);
|
135
|
+
// locate our method
|
136
|
+
var f = named ? (scope||dojo.global)[method] : method;
|
137
|
+
// invoke with collected args
|
138
|
+
return f && f.apply(scope || this, pre.concat(args)); // mixed
|
139
|
+
}; // Function
|
140
|
+
},
|
141
|
+
|
142
|
+
hitch = function(scope, method){
|
143
|
+
if(arguments.length > 2){
|
144
|
+
return lang._hitchArgs.apply(dojo, arguments); // Function
|
145
|
+
}
|
146
|
+
if(!method){
|
147
|
+
method = scope;
|
148
|
+
scope = null;
|
149
|
+
}
|
150
|
+
if(lang.isString(method)){
|
151
|
+
scope = scope || dojo.global;
|
152
|
+
if(!scope[method]){ throw(['dojo.hitch: scope["', method, '"] is null (scope="', scope, '")'].join('')); }
|
153
|
+
return function(){ return scope[method].apply(scope, arguments || []); }; // Function
|
154
|
+
}
|
155
|
+
return !scope ? method : function(){ return method.apply(scope, arguments || []); }; // Function
|
156
|
+
},
|
157
|
+
|
158
|
+
delegate = (function(){
|
159
|
+
// boodman/crockford delegation w/ cornford optimization
|
160
|
+
function TMP(){}
|
161
|
+
return function(obj, props){
|
162
|
+
TMP.prototype = obj;
|
163
|
+
var tmp = new TMP();
|
164
|
+
TMP.prototype = null;
|
165
|
+
if(props){
|
166
|
+
lang._mixin(tmp, props);
|
167
|
+
}
|
168
|
+
return tmp; // Object
|
169
|
+
};
|
170
|
+
})(),
|
171
|
+
|
172
|
+
efficient = function(obj, offset, startWith){
|
173
|
+
return (startWith||[]).concat(Array.prototype.slice.call(obj, offset||0));
|
174
|
+
},
|
175
|
+
|
176
|
+
_toArray =
|
177
|
+
has("ie") ?
|
178
|
+
(function(){
|
179
|
+
function slow(obj, offset, startWith){
|
180
|
+
var arr = startWith||[];
|
181
|
+
for(var x = offset || 0; x < obj.length; x++){
|
182
|
+
arr.push(obj[x]);
|
183
|
+
}
|
184
|
+
return arr;
|
185
|
+
}
|
186
|
+
return function(obj){
|
187
|
+
return ((obj.item) ? slow : efficient).apply(this, arguments);
|
188
|
+
};
|
189
|
+
})() : efficient,
|
190
|
+
|
191
|
+
partial = function(/*Function|String*/method /*, ...*/){
|
192
|
+
var arr = [ null ];
|
193
|
+
return lang.hitch.apply(dojo, arr.concat(lang._toArray(arguments))); // Function
|
194
|
+
},
|
195
|
+
|
196
|
+
clone = function(/*anything*/ src){
|
197
|
+
if(!src || typeof src != "object" || lang.isFunction(src)){
|
198
|
+
// null, undefined, any non-object, or function
|
199
|
+
return src; // anything
|
200
|
+
}
|
201
|
+
if(src.nodeType && "cloneNode" in src){
|
202
|
+
// DOM Node
|
203
|
+
return src.cloneNode(true); // Node
|
204
|
+
}
|
205
|
+
if(src instanceof Date){
|
206
|
+
// Date
|
207
|
+
return new Date(src.getTime()); // Date
|
208
|
+
}
|
209
|
+
if(src instanceof RegExp){
|
210
|
+
// RegExp
|
211
|
+
return new RegExp(src); // RegExp
|
212
|
+
}
|
213
|
+
var r, i, l;
|
214
|
+
if(lang.isArray(src)){
|
215
|
+
// array
|
216
|
+
r = [];
|
217
|
+
for(i = 0, l = src.length; i < l; ++i){
|
218
|
+
if(i in src){
|
219
|
+
r.push(clone(src[i]));
|
220
|
+
}
|
221
|
+
}
|
222
|
+
// we don't clone functions for performance reasons
|
223
|
+
// }else if(d.isFunction(src)){
|
224
|
+
// // function
|
225
|
+
// r = function(){ return src.apply(this, arguments); };
|
226
|
+
}else{
|
227
|
+
// generic objects
|
228
|
+
r = src.constructor ? new src.constructor() : {};
|
229
|
+
}
|
230
|
+
return lang._mixin(r, src, clone);
|
231
|
+
},
|
232
|
+
|
233
|
+
|
234
|
+
trim = String.prototype.trim ?
|
235
|
+
function(str){ return str.trim(); } :
|
236
|
+
function(str){ return str.replace(/^\s\s*/, '').replace(/\s\s*$/, ''); },
|
237
|
+
|
238
|
+
|
239
|
+
_pattern = /\{([^\}]+)\}/g,
|
240
|
+
|
241
|
+
replace = function(tmpl, map, pattern){
|
242
|
+
return tmpl.replace(pattern || _pattern, lang.isFunction(map) ?
|
243
|
+
map : function(_, k){ return getObject(k, false, map); });
|
244
|
+
},
|
245
|
+
|
246
|
+
lang = {
|
247
|
+
_extraNames:_extraNames,
|
248
|
+
_mixin:_mixin,
|
249
|
+
mixin:mixin,
|
250
|
+
setObject:setObject,
|
251
|
+
getObject:getObject,
|
252
|
+
exists:exists,
|
253
|
+
isString:isString,
|
254
|
+
isArray:isArray,
|
255
|
+
isFunction:isFunction,
|
256
|
+
isObject:isObject,
|
257
|
+
isArrayLike:isArrayLike,
|
258
|
+
isAlien:isAlien,
|
259
|
+
extend:extend,
|
260
|
+
_hitchArgs:_hitchArgs,
|
261
|
+
hitch:hitch,
|
262
|
+
delegate:delegate,
|
263
|
+
_toArray:_toArray,
|
264
|
+
partial:partial,
|
265
|
+
clone:clone,
|
266
|
+
trim:trim,
|
267
|
+
replace:replace
|
268
|
+
};
|
269
|
+
|
270
|
+
1 && mixin(dojo, lang);
|
271
|
+
return lang;
|
272
|
+
|
273
|
+
/*=====
|
274
|
+
dojo._extraNames
|
275
|
+
// summary:
|
276
|
+
// Array of strings. Lists property names that must be explicitly processed during for-in interation
|
277
|
+
// in environments that have has("bug-for-in-skips-shadowed") true.
|
278
|
+
=====*/
|
279
|
+
|
280
|
+
/*=====
|
281
|
+
dojo._mixin = function(dest, source, copyFunc){
|
282
|
+
// summary:
|
283
|
+
// Copies/adds all properties of source to dest; returns dest.
|
284
|
+
// dest: Object:
|
285
|
+
// The object to which to copy/add all properties contained in source.
|
286
|
+
// source: Object:
|
287
|
+
// The object from which to draw all properties to copy into dest.
|
288
|
+
// copyFunc: Function?:
|
289
|
+
// The process used to copy/add a property in source; defaults to the Javascript assignment operator.
|
290
|
+
// returns:
|
291
|
+
// dest, as modified
|
292
|
+
// description:
|
293
|
+
// All properties, including functions (sometimes termed "methods"), excluding any non-standard extensions
|
294
|
+
// found in Object.prototype, are copied/added to dest. Copying/adding each particular property is
|
295
|
+
// delegated to copyFunc (if any); copyFunc defaults to the Javascript assignment operator if not provided.
|
296
|
+
// Notice that by default, _mixin executes a so-called "shallow copy" and aggregate types are copied/added by reference.
|
297
|
+
}
|
298
|
+
=====*/
|
299
|
+
|
300
|
+
/*=====
|
301
|
+
dojo.mixin = function(dest, sources){
|
302
|
+
// summary:
|
303
|
+
// Copies/adds all properties of one or more sources to dest; returns dest.
|
304
|
+
// dest: Object
|
305
|
+
// The object to which to copy/add all properties contained in source. If dest is falsy, then
|
306
|
+
// a new object is manufactured before copying/adding properties begins.
|
307
|
+
// sources: Object...
|
308
|
+
// One of more objects from which to draw all properties to copy into dest. sources are processed
|
309
|
+
// left-to-right and if more than one of these objects contain the same property name, the right-most
|
310
|
+
// value "wins".
|
311
|
+
// returns: Object
|
312
|
+
// dest, as modified
|
313
|
+
// description:
|
314
|
+
// All properties, including functions (sometimes termed "methods"), excluding any non-standard extensions
|
315
|
+
// found in Object.prototype, are copied/added from sources to dest. sources are processed left to right.
|
316
|
+
// The Javascript assignment operator is used to copy/add each property; therefore, by default, mixin
|
317
|
+
// executes a so-called "shallow copy" and aggregate types are copied/added by reference.
|
318
|
+
// example:
|
319
|
+
// make a shallow copy of an object
|
320
|
+
// | var copy = lang.mixin({}, source);
|
321
|
+
// example:
|
322
|
+
// many class constructors often take an object which specifies
|
323
|
+
// values to be configured on the object. In this case, it is
|
324
|
+
// often simplest to call `lang.mixin` on the `this` object:
|
325
|
+
// | dojo.declare("acme.Base", null, {
|
326
|
+
// | constructor: function(properties){
|
327
|
+
// | // property configuration:
|
328
|
+
// | lang.mixin(this, properties);
|
329
|
+
// |
|
330
|
+
// | console.log(this.quip);
|
331
|
+
// | // ...
|
332
|
+
// | },
|
333
|
+
// | quip: "I wasn't born yesterday, you know - I've seen movies.",
|
334
|
+
// | // ...
|
335
|
+
// | });
|
336
|
+
// |
|
337
|
+
// | // create an instance of the class and configure it
|
338
|
+
// | var b = new acme.Base({quip: "That's what it does!" });
|
339
|
+
// example:
|
340
|
+
// copy in properties from multiple objects
|
341
|
+
// | var flattened = lang.mixin(
|
342
|
+
// | {
|
343
|
+
// | name: "Frylock",
|
344
|
+
// | braces: true
|
345
|
+
// | },
|
346
|
+
// | {
|
347
|
+
// | name: "Carl Brutanananadilewski"
|
348
|
+
// | }
|
349
|
+
// | );
|
350
|
+
// |
|
351
|
+
// | // will print "Carl Brutanananadilewski"
|
352
|
+
// | console.log(flattened.name);
|
353
|
+
// | // will print "true"
|
354
|
+
// | console.log(flattened.braces);
|
355
|
+
}
|
356
|
+
=====*/
|
357
|
+
|
358
|
+
/*=====
|
359
|
+
dojo.setObject = function(name, value, context){
|
360
|
+
// summary:
|
361
|
+
// Set a property from a dot-separated string, such as "A.B.C"
|
362
|
+
// description:
|
363
|
+
// Useful for longer api chains where you have to test each object in
|
364
|
+
// the chain, or when you have an object reference in string format.
|
365
|
+
// Objects are created as needed along `path`. Returns the passed
|
366
|
+
// value if setting is successful or `undefined` if not.
|
367
|
+
// name: String
|
368
|
+
// Path to a property, in the form "A.B.C".
|
369
|
+
// value: anything
|
370
|
+
// value or object to place at location given by name
|
371
|
+
// context: Object?
|
372
|
+
// Optional. Object to use as root of path. Defaults to
|
373
|
+
// `dojo.global`.
|
374
|
+
// example:
|
375
|
+
// set the value of `foo.bar.baz`, regardless of whether
|
376
|
+
// intermediate objects already exist:
|
377
|
+
// | lang.setObject("foo.bar.baz", value);
|
378
|
+
// example:
|
379
|
+
// without `lang.setObject`, we often see code like this:
|
380
|
+
// | // ensure that intermediate objects are available
|
381
|
+
// | if(!obj["parent"]){ obj.parent = {}; }
|
382
|
+
// | if(!obj.parent["child"]){ obj.parent.child = {}; }
|
383
|
+
// | // now we can safely set the property
|
384
|
+
// | obj.parent.child.prop = "some value";
|
385
|
+
// whereas with `lang.setObject`, we can shorten that to:
|
386
|
+
// | lang.setObject("parent.child.prop", "some value", obj);
|
387
|
+
}
|
388
|
+
=====*/
|
389
|
+
|
390
|
+
/*=====
|
391
|
+
dojo.getObject = function(name, create, context){
|
392
|
+
// summary:
|
393
|
+
// Get a property from a dot-separated string, such as "A.B.C"
|
394
|
+
// description:
|
395
|
+
// Useful for longer api chains where you have to test each object in
|
396
|
+
// the chain, or when you have an object reference in string format.
|
397
|
+
// name: String
|
398
|
+
// Path to an property, in the form "A.B.C".
|
399
|
+
// create: Boolean?
|
400
|
+
// Optional. Defaults to `false`. If `true`, Objects will be
|
401
|
+
// created at any point along the 'path' that is undefined.
|
402
|
+
// context: Object?
|
403
|
+
// Optional. Object to use as root of path. Defaults to
|
404
|
+
// 'dojo.global'. Null may be passed.
|
405
|
+
}
|
406
|
+
=====*/
|
407
|
+
|
408
|
+
/*=====
|
409
|
+
dojo.exists = function(name, obj){
|
410
|
+
// summary:
|
411
|
+
// determine if an object supports a given method
|
412
|
+
// description:
|
413
|
+
// useful for longer api chains where you have to test each object in
|
414
|
+
// the chain. Useful for object and method detection.
|
415
|
+
// name: String
|
416
|
+
// Path to an object, in the form "A.B.C".
|
417
|
+
// obj: Object?
|
418
|
+
// Object to use as root of path. Defaults to
|
419
|
+
// 'dojo.global'. Null may be passed.
|
420
|
+
// example:
|
421
|
+
// | // define an object
|
422
|
+
// | var foo = {
|
423
|
+
// | bar: { }
|
424
|
+
// | };
|
425
|
+
// |
|
426
|
+
// | // search the global scope
|
427
|
+
// | lang.exists("foo.bar"); // true
|
428
|
+
// | lang.exists("foo.bar.baz"); // false
|
429
|
+
// |
|
430
|
+
// | // search from a particular scope
|
431
|
+
// | lang.exists("bar", foo); // true
|
432
|
+
// | lang.exists("bar.baz", foo); // false
|
433
|
+
}
|
434
|
+
=====*/
|
435
|
+
|
436
|
+
/*=====
|
437
|
+
dojo.isString = function(it){
|
438
|
+
// summary:
|
439
|
+
// Return true if it is a String
|
440
|
+
// it: anything
|
441
|
+
// Item to test.
|
442
|
+
}
|
443
|
+
=====*/
|
444
|
+
|
445
|
+
/*=====
|
446
|
+
dojo.isArray = function(it){
|
447
|
+
// summary:
|
448
|
+
// Return true if it is an Array.
|
449
|
+
// Does not work on Arrays created in other windows.
|
450
|
+
// it: anything
|
451
|
+
// Item to test.
|
452
|
+
}
|
453
|
+
=====*/
|
454
|
+
|
455
|
+
/*=====
|
456
|
+
dojo.isFunction = function(it){
|
457
|
+
// summary:
|
458
|
+
// Return true if it is a Function
|
459
|
+
// it: anything
|
460
|
+
// Item to test.
|
461
|
+
}
|
462
|
+
=====*/
|
463
|
+
|
464
|
+
/*=====
|
465
|
+
dojo.isObject = function(it){
|
466
|
+
// summary:
|
467
|
+
// Returns true if it is a JavaScript object (or an Array, a Function
|
468
|
+
// or null)
|
469
|
+
// it: anything
|
470
|
+
// Item to test.
|
471
|
+
}
|
472
|
+
=====*/
|
473
|
+
|
474
|
+
/*=====
|
475
|
+
dojo.isArrayLike = function(it){
|
476
|
+
// summary:
|
477
|
+
// similar to dojo.isArray() but more permissive
|
478
|
+
// it: anything
|
479
|
+
// Item to test.
|
480
|
+
// returns:
|
481
|
+
// If it walks like a duck and quacks like a duck, return `true`
|
482
|
+
// description:
|
483
|
+
// Doesn't strongly test for "arrayness". Instead, settles for "isn't
|
484
|
+
// a string or number and has a length property". Arguments objects
|
485
|
+
// and DOM collections will return true when passed to
|
486
|
+
// dojo.isArrayLike(), but will return false when passed to
|
487
|
+
// dojo.isArray().
|
488
|
+
}
|
489
|
+
=====*/
|
490
|
+
|
491
|
+
/*=====
|
492
|
+
dojo.isAlien = function(it){
|
493
|
+
// summary:
|
494
|
+
// Returns true if it is a built-in function or some other kind of
|
495
|
+
// oddball that *should* report as a function but doesn't
|
496
|
+
}
|
497
|
+
=====*/
|
498
|
+
|
499
|
+
/*=====
|
500
|
+
dojo.extend = function(constructor, props){
|
501
|
+
// summary:
|
502
|
+
// Adds all properties and methods of props to constructor's
|
503
|
+
// prototype, making them available to all instances created with
|
504
|
+
// constructor.
|
505
|
+
// constructor: Object
|
506
|
+
// Target constructor to extend.
|
507
|
+
// props: Object...
|
508
|
+
// One or more objects to mix into constructor.prototype
|
509
|
+
}
|
510
|
+
=====*/
|
511
|
+
|
512
|
+
/*=====
|
513
|
+
dojo.hitch = function(scope, method){
|
514
|
+
// summary:
|
515
|
+
// Returns a function that will only ever execute in the a given scope.
|
516
|
+
// This allows for easy use of object member functions
|
517
|
+
// in callbacks and other places in which the "this" keyword may
|
518
|
+
// otherwise not reference the expected scope.
|
519
|
+
// Any number of default positional arguments may be passed as parameters
|
520
|
+
// beyond "method".
|
521
|
+
// Each of these values will be used to "placehold" (similar to curry)
|
522
|
+
// for the hitched function.
|
523
|
+
// scope: Object
|
524
|
+
// The scope to use when method executes. If method is a string,
|
525
|
+
// scope is also the object containing method.
|
526
|
+
// method: Function|String...
|
527
|
+
// A function to be hitched to scope, or the name of the method in
|
528
|
+
// scope to be hitched.
|
529
|
+
// example:
|
530
|
+
// | dojo.hitch(foo, "bar")();
|
531
|
+
// runs foo.bar() in the scope of foo
|
532
|
+
// example:
|
533
|
+
// | dojo.hitch(foo, myFunction);
|
534
|
+
// returns a function that runs myFunction in the scope of foo
|
535
|
+
// example:
|
536
|
+
// Expansion on the default positional arguments passed along from
|
537
|
+
// hitch. Passed args are mixed first, additional args after.
|
538
|
+
// | var foo = { bar: function(a, b, c){ console.log(a, b, c); } };
|
539
|
+
// | var fn = dojo.hitch(foo, "bar", 1, 2);
|
540
|
+
// | fn(3); // logs "1, 2, 3"
|
541
|
+
// example:
|
542
|
+
// | var foo = { bar: 2 };
|
543
|
+
// | dojo.hitch(foo, function(){ this.bar = 10; })();
|
544
|
+
// execute an anonymous function in scope of foo
|
545
|
+
}
|
546
|
+
=====*/
|
547
|
+
|
548
|
+
/*=====
|
549
|
+
dojo.delegate = function(obj, props){
|
550
|
+
// summary:
|
551
|
+
// Returns a new object which "looks" to obj for properties which it
|
552
|
+
// does not have a value for. Optionally takes a bag of properties to
|
553
|
+
// seed the returned object with initially.
|
554
|
+
// description:
|
555
|
+
// This is a small implementaton of the Boodman/Crockford delegation
|
556
|
+
// pattern in JavaScript. An intermediate object constructor mediates
|
557
|
+
// the prototype chain for the returned object, using it to delegate
|
558
|
+
// down to obj for property lookup when object-local lookup fails.
|
559
|
+
// This can be thought of similarly to ES4's "wrap", save that it does
|
560
|
+
// not act on types but rather on pure objects.
|
561
|
+
// obj: Object
|
562
|
+
// The object to delegate to for properties not found directly on the
|
563
|
+
// return object or in props.
|
564
|
+
// props: Object...
|
565
|
+
// an object containing properties to assign to the returned object
|
566
|
+
// returns:
|
567
|
+
// an Object of anonymous type
|
568
|
+
// example:
|
569
|
+
// | var foo = { bar: "baz" };
|
570
|
+
// | var thinger = dojo.delegate(foo, { thud: "xyzzy"});
|
571
|
+
// | thinger.bar == "baz"; // delegated to foo
|
572
|
+
// | foo.thud == undefined; // by definition
|
573
|
+
// | thinger.thud == "xyzzy"; // mixed in from props
|
574
|
+
// | foo.bar = "thonk";
|
575
|
+
// | thinger.bar == "thonk"; // still delegated to foo's bar
|
576
|
+
}
|
577
|
+
=====*/
|
578
|
+
|
579
|
+
/*=====
|
580
|
+
dojo.partial = function(method){
|
581
|
+
// summary:
|
582
|
+
// similar to hitch() except that the scope object is left to be
|
583
|
+
// whatever the execution context eventually becomes.
|
584
|
+
// method: Function|String
|
585
|
+
// description:
|
586
|
+
// Calling dojo.partial is the functional equivalent of calling:
|
587
|
+
// | dojo.hitch(null, funcName, ...);
|
588
|
+
}
|
589
|
+
=====*/
|
590
|
+
|
591
|
+
/*=====
|
592
|
+
dojo.trim = function(str){
|
593
|
+
// summary:
|
594
|
+
// Trims whitespace from both sides of the string
|
595
|
+
// str: String
|
596
|
+
// String to be trimmed
|
597
|
+
// returns: String
|
598
|
+
// Returns the trimmed string
|
599
|
+
// description:
|
600
|
+
// This version of trim() was selected for inclusion into the base due
|
601
|
+
// to its compact size and relatively good performance
|
602
|
+
// (see [Steven Levithan's blog](http://blog.stevenlevithan.com/archives/faster-trim-javascript)
|
603
|
+
// Uses String.prototype.trim instead, if available.
|
604
|
+
// The fastest but longest version of this function is located at
|
605
|
+
// dojo.string.trim()
|
606
|
+
}
|
607
|
+
=====*/
|
608
|
+
|
609
|
+
/*=====
|
610
|
+
dojo.clone = function(src){
|
611
|
+
// summary:
|
612
|
+
// Clones objects (including DOM nodes) and all children.
|
613
|
+
// Warning: do not clone cyclic structures.
|
614
|
+
// src:
|
615
|
+
// The object to clone
|
616
|
+
}
|
617
|
+
=====*/
|
618
|
+
|
619
|
+
/*=====
|
620
|
+
dojo._toArray = function(obj, offset, startWith){
|
621
|
+
// summary:
|
622
|
+
// Converts an array-like object (i.e. arguments, DOMCollection) to an
|
623
|
+
// array. Returns a new Array with the elements of obj.
|
624
|
+
// obj: Object
|
625
|
+
// the object to "arrayify". We expect the object to have, at a
|
626
|
+
// minimum, a length property which corresponds to integer-indexed
|
627
|
+
// properties.
|
628
|
+
// offset: Number?
|
629
|
+
// the location in obj to start iterating from. Defaults to 0.
|
630
|
+
// Optional.
|
631
|
+
// startWith: Array?
|
632
|
+
// An array to pack with the properties of obj. If provided,
|
633
|
+
// properties in obj are appended at the end of startWith and
|
634
|
+
// startWith is the returned array.
|
635
|
+
}
|
636
|
+
=====*/
|
637
|
+
|
638
|
+
/*=====
|
639
|
+
dojo.replace = function(tmpl, map, pattern){
|
640
|
+
// summary:
|
641
|
+
// Performs parameterized substitutions on a string. Throws an
|
642
|
+
// exception if any parameter is unmatched.
|
643
|
+
// tmpl: String
|
644
|
+
// String to be used as a template.
|
645
|
+
// map: Object|Function
|
646
|
+
// If an object, it is used as a dictionary to look up substitutions.
|
647
|
+
// If a function, it is called for every substitution with following
|
648
|
+
// parameters: a whole match, a name, an offset, and the whole template
|
649
|
+
// string (see https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String/replace
|
650
|
+
// for more details).
|
651
|
+
// pattern: RegEx?
|
652
|
+
// Optional regular expression objects that overrides the default pattern.
|
653
|
+
// Must be global and match one item. The default is: /\{([^\}]+)\}/g,
|
654
|
+
// which matches patterns like that: "{xxx}", where "xxx" is any sequence
|
655
|
+
// of characters, which doesn't include "}".
|
656
|
+
// returns: String
|
657
|
+
// Returns the substituted string.
|
658
|
+
// example:
|
659
|
+
// | // uses a dictionary for substitutions:
|
660
|
+
// | dojo.replace("Hello, {name.first} {name.last} AKA {nick}!",
|
661
|
+
// | {
|
662
|
+
// | nick: "Bob",
|
663
|
+
// | name: {
|
664
|
+
// | first: "Robert",
|
665
|
+
// | middle: "X",
|
666
|
+
// | last: "Cringely"
|
667
|
+
// | }
|
668
|
+
// | });
|
669
|
+
// | // returns: Hello, Robert Cringely AKA Bob!
|
670
|
+
// example:
|
671
|
+
// | // uses an array for substitutions:
|
672
|
+
// | dojo.replace("Hello, {0} {2}!",
|
673
|
+
// | ["Robert", "X", "Cringely"]);
|
674
|
+
// | // returns: Hello, Robert Cringely!
|
675
|
+
// example:
|
676
|
+
// | // uses a function for substitutions:
|
677
|
+
// | function sum(a){
|
678
|
+
// | var t = 0;
|
679
|
+
// | dojo.forEach(a, function(x){ t += x; });
|
680
|
+
// | return t;
|
681
|
+
// | }
|
682
|
+
// | dojo.replace(
|
683
|
+
// | "{count} payments averaging {avg} USD per payment.",
|
684
|
+
// | dojo.hitch(
|
685
|
+
// | { payments: [11, 16, 12] },
|
686
|
+
// | function(_, key){
|
687
|
+
// | switch(key){
|
688
|
+
// | case "count": return this.payments.length;
|
689
|
+
// | case "min": return Math.min.apply(Math, this.payments);
|
690
|
+
// | case "max": return Math.max.apply(Math, this.payments);
|
691
|
+
// | case "sum": return sum(this.payments);
|
692
|
+
// | case "avg": return sum(this.payments) / this.payments.length;
|
693
|
+
// | }
|
694
|
+
// | }
|
695
|
+
// | )
|
696
|
+
// | );
|
697
|
+
// | // prints: 3 payments averaging 13 USD per payment.
|
698
|
+
// example:
|
699
|
+
// | // uses an alternative PHP-like pattern for substitutions:
|
700
|
+
// | dojo.replace("Hello, ${0} ${2}!",
|
701
|
+
// | ["Robert", "X", "Cringely"], /\$\{([^\}]+)\}/g);
|
702
|
+
// | // returns: Hello, Robert Cringely!
|
703
|
+
return ""; // String
|
704
|
+
}
|
705
|
+
=====*/
|
706
|
+
});
|
707
|
+
|