dojo-rails 0.9.9 → 0.9.10
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/dojo/rails/version.rb +1 -1
- data/lib/dojo/version.rb +2 -2
- data/vendor/assets/javascripts/dojo.js +1 -1
- data/vendor/assets/javascripts/dojo/AdapterRegistry.js.uncompressed.js +11 -18
- data/vendor/assets/javascripts/dojo/Deferred.js +178 -0
- data/vendor/assets/javascripts/dojo/Deferred.js.uncompressed.js +314 -0
- data/vendor/assets/javascripts/dojo/DeferredList.js.uncompressed.js +4 -6
- data/vendor/assets/javascripts/dojo/Evented.js.uncompressed.js +15 -12
- data/vendor/assets/javascripts/dojo/LICENSE +1 -1
- data/vendor/assets/javascripts/dojo/NodeList-data.js.uncompressed.js +84 -73
- data/vendor/assets/javascripts/dojo/NodeList-dom.js +1 -1
- data/vendor/assets/javascripts/dojo/NodeList-dom.js.uncompressed.js +121 -66
- data/vendor/assets/javascripts/dojo/NodeList-fx.js +28 -27
- data/vendor/assets/javascripts/dojo/NodeList-fx.js.uncompressed.js +46 -47
- data/vendor/assets/javascripts/dojo/NodeList-html.js.uncompressed.js +19 -21
- data/vendor/assets/javascripts/dojo/NodeList-manipulate.js.uncompressed.js +172 -178
- data/vendor/assets/javascripts/dojo/NodeList-traverse.js.uncompressed.js +125 -130
- data/vendor/assets/javascripts/dojo/NodeList.js +10 -0
- data/vendor/assets/javascripts/dojo/NodeList.js.uncompressed.js +6 -0
- data/vendor/assets/javascripts/dojo/OpenAjax.js +13 -15
- data/vendor/assets/javascripts/dojo/Stateful.js +65 -41
- data/vendor/assets/javascripts/dojo/Stateful.js.uncompressed.js +110 -36
- data/vendor/assets/javascripts/dojo/_base/Color.js.uncompressed.js +34 -40
- data/vendor/assets/javascripts/dojo/_base/Deferred.js +84 -84
- data/vendor/assets/javascripts/dojo/_base/Deferred.js.uncompressed.js +57 -74
- data/vendor/assets/javascripts/dojo/_base/NodeList.js +2 -3
- data/vendor/assets/javascripts/dojo/_base/NodeList.js.uncompressed.js +58 -48
- data/vendor/assets/javascripts/dojo/_base/array.js +63 -67
- data/vendor/assets/javascripts/dojo/_base/array.js.uncompressed.js +259 -259
- data/vendor/assets/javascripts/dojo/_base/browser.js.uncompressed.js +10 -3
- data/vendor/assets/javascripts/dojo/_base/config.js.uncompressed.js +85 -72
- data/vendor/assets/javascripts/dojo/_base/configFirefoxExtension.js +15 -13
- data/vendor/assets/javascripts/dojo/_base/configNode.js +5 -5
- data/vendor/assets/javascripts/dojo/_base/configRhino.js +1 -1
- data/vendor/assets/javascripts/dojo/_base/configSpidermonkey.js +5 -9
- data/vendor/assets/javascripts/dojo/_base/connect.js +1 -1
- data/vendor/assets/javascripts/dojo/_base/connect.js.uncompressed.js +177 -203
- data/vendor/assets/javascripts/dojo/_base/declare.js +94 -90
- data/vendor/assets/javascripts/dojo/_base/declare.js.uncompressed.js +397 -402
- data/vendor/assets/javascripts/dojo/_base/event.js +16 -13
- data/vendor/assets/javascripts/dojo/_base/event.js.uncompressed.js +41 -33
- data/vendor/assets/javascripts/dojo/_base/fx.js +187 -183
- data/vendor/assets/javascripts/dojo/_base/fx.js.uncompressed.js +134 -130
- data/vendor/assets/javascripts/dojo/_base/html.js.uncompressed.js +14 -11
- data/vendor/assets/javascripts/dojo/_base/json.js.uncompressed.js +12 -6
- data/vendor/assets/javascripts/dojo/_base/kernel.js +35 -38
- data/vendor/assets/javascripts/dojo/_base/kernel.js.uncompressed.js +59 -62
- data/vendor/assets/javascripts/dojo/_base/lang.js +99 -98
- data/vendor/assets/javascripts/dojo/_base/lang.js.uncompressed.js +435 -537
- data/vendor/assets/javascripts/dojo/_base/loader.js +179 -154
- data/vendor/assets/javascripts/dojo/_base/loader.js.uncompressed.js +252 -194
- data/vendor/assets/javascripts/dojo/_base/query.js +2 -2
- data/vendor/assets/javascripts/dojo/_base/query.js.uncompressed.js +12 -2
- data/vendor/assets/javascripts/dojo/_base/sniff.js +6 -58
- data/vendor/assets/javascripts/dojo/_base/sniff.js.uncompressed.js +60 -151
- data/vendor/assets/javascripts/dojo/_base/unload.js +10 -9
- data/vendor/assets/javascripts/dojo/_base/unload.js.uncompressed.js +44 -43
- data/vendor/assets/javascripts/dojo/_base/url.js.uncompressed.js +1 -3
- data/vendor/assets/javascripts/dojo/_base/window.js +32 -35
- data/vendor/assets/javascripts/dojo/_base/window.js.uncompressed.js +117 -109
- data/vendor/assets/javascripts/dojo/_base/xhr.js +147 -263
- data/vendor/assets/javascripts/dojo/_base/xhr.js.uncompressed.js +253 -378
- data/vendor/assets/javascripts/dojo/_firebug/firebug.js +459 -458
- data/vendor/assets/javascripts/dojo/_firebug/firebug.js.uncompressed.js +39 -31
- data/vendor/assets/javascripts/dojo/aspect.js +71 -63
- data/vendor/assets/javascripts/dojo/aspect.js.uncompressed.js +111 -99
- data/vendor/assets/javascripts/dojo/back.js +11 -10
- data/vendor/assets/javascripts/dojo/back.js.uncompressed.js +59 -59
- data/vendor/assets/javascripts/dojo/behavior.js +49 -47
- data/vendor/assets/javascripts/dojo/behavior.js.uncompressed.js +26 -25
- data/vendor/assets/javascripts/dojo/cache.js +1 -1
- data/vendor/assets/javascripts/dojo/cache.js.uncompressed.js +2 -4
- data/vendor/assets/javascripts/dojo/cldr/monetary.js +13 -12
- data/vendor/assets/javascripts/dojo/cldr/monetary.js.uncompressed.js +15 -10
- data/vendor/assets/javascripts/dojo/cldr/nls/ar/buddhist.js +1 -1
- data/vendor/assets/javascripts/dojo/cldr/nls/ar/buddhist.js.uncompressed.js +85 -70
- data/vendor/assets/javascripts/dojo/cldr/nls/ar/currency.js +1 -1
- data/vendor/assets/javascripts/dojo/cldr/nls/ar/currency.js.uncompressed.js +6 -6
- data/vendor/assets/javascripts/dojo/cldr/nls/ar/gregorian.js +1 -1
- data/vendor/assets/javascripts/dojo/cldr/nls/ar/gregorian.js.uncompressed.js +157 -141
- data/vendor/assets/javascripts/dojo/cldr/nls/ar/hebrew.js +1 -1
- data/vendor/assets/javascripts/dojo/cldr/nls/ar/hebrew.js.uncompressed.js +62 -45
- data/vendor/assets/javascripts/dojo/cldr/nls/ar/islamic.js +1 -1
- data/vendor/assets/javascripts/dojo/cldr/nls/ar/islamic.js.uncompressed.js +112 -80
- data/vendor/assets/javascripts/dojo/cldr/nls/ar/number.js +1 -1
- data/vendor/assets/javascripts/dojo/cldr/nls/ar/number.js.uncompressed.js +11 -10
- data/vendor/assets/javascripts/dojo/cldr/nls/buddhist.js +1 -1
- data/vendor/assets/javascripts/dojo/cldr/nls/buddhist.js.uncompressed.js +110 -109
- data/vendor/assets/javascripts/dojo/cldr/nls/ca/currency.js +1 -1
- data/vendor/assets/javascripts/dojo/cldr/nls/ca/currency.js.uncompressed.js +6 -6
- data/vendor/assets/javascripts/dojo/cldr/nls/ca/gregorian.js +1 -1
- data/vendor/assets/javascripts/dojo/cldr/nls/ca/gregorian.js.uncompressed.js +176 -161
- data/vendor/assets/javascripts/dojo/cldr/nls/ca/number.js +1 -1
- data/vendor/assets/javascripts/dojo/cldr/nls/ca/number.js.uncompressed.js +9 -10
- data/vendor/assets/javascripts/dojo/cldr/nls/cs/buddhist.js +8 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/cs/buddhist.js.uncompressed.js +170 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/cs/currency.js +1 -1
- data/vendor/assets/javascripts/dojo/cldr/nls/cs/currency.js.uncompressed.js +9 -9
- data/vendor/assets/javascripts/dojo/cldr/nls/cs/gregorian.js +1 -1
- data/vendor/assets/javascripts/dojo/cldr/nls/cs/gregorian.js.uncompressed.js +166 -139
- data/vendor/assets/javascripts/dojo/cldr/nls/cs/islamic.js +8 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/cs/islamic.js.uncompressed.js +99 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/cs/number.js +1 -1
- data/vendor/assets/javascripts/dojo/cldr/nls/cs/number.js.uncompressed.js +9 -10
- data/vendor/assets/javascripts/dojo/cldr/nls/currency.js +1 -1
- data/vendor/assets/javascripts/dojo/cldr/nls/currency.js.uncompressed.js +5 -4
- data/vendor/assets/javascripts/dojo/cldr/nls/da/buddhist.js +1 -1
- data/vendor/assets/javascripts/dojo/cldr/nls/da/buddhist.js.uncompressed.js +91 -89
- data/vendor/assets/javascripts/dojo/cldr/nls/da/currency.js +1 -1
- data/vendor/assets/javascripts/dojo/cldr/nls/da/currency.js.uncompressed.js +6 -6
- data/vendor/assets/javascripts/dojo/cldr/nls/da/gregorian.js +1 -1
- data/vendor/assets/javascripts/dojo/cldr/nls/da/gregorian.js.uncompressed.js +174 -156
- data/vendor/assets/javascripts/dojo/cldr/nls/da/islamic.js +1 -1
- data/vendor/assets/javascripts/dojo/cldr/nls/da/islamic.js.uncompressed.js +60 -56
- data/vendor/assets/javascripts/dojo/cldr/nls/da/number.js +1 -1
- data/vendor/assets/javascripts/dojo/cldr/nls/da/number.js.uncompressed.js +9 -10
- data/vendor/assets/javascripts/dojo/cldr/nls/de/buddhist.js +1 -1
- data/vendor/assets/javascripts/dojo/cldr/nls/de/buddhist.js.uncompressed.js +92 -80
- data/vendor/assets/javascripts/dojo/cldr/nls/de/currency.js +1 -1
- data/vendor/assets/javascripts/dojo/cldr/nls/de/currency.js.uncompressed.js +8 -8
- data/vendor/assets/javascripts/dojo/cldr/nls/de/gregorian.js +1 -1
- data/vendor/assets/javascripts/dojo/cldr/nls/de/gregorian.js.uncompressed.js +176 -158
- data/vendor/assets/javascripts/dojo/cldr/nls/de/islamic.js +1 -1
- data/vendor/assets/javascripts/dojo/cldr/nls/de/islamic.js.uncompressed.js +63 -143
- data/vendor/assets/javascripts/dojo/cldr/nls/de/number.js +1 -1
- data/vendor/assets/javascripts/dojo/cldr/nls/de/number.js.uncompressed.js +9 -10
- data/vendor/assets/javascripts/dojo/cldr/nls/el/buddhist.js +1 -1
- data/vendor/assets/javascripts/dojo/cldr/nls/el/buddhist.js.uncompressed.js +144 -70
- data/vendor/assets/javascripts/dojo/cldr/nls/el/currency.js +1 -1
- data/vendor/assets/javascripts/dojo/cldr/nls/el/currency.js.uncompressed.js +6 -5
- data/vendor/assets/javascripts/dojo/cldr/nls/el/gregorian.js +1 -1
- data/vendor/assets/javascripts/dojo/cldr/nls/el/gregorian.js.uncompressed.js +170 -153
- data/vendor/assets/javascripts/dojo/cldr/nls/el/hebrew.js +1 -1
- data/vendor/assets/javascripts/dojo/cldr/nls/el/hebrew.js.uncompressed.js +78 -37
- data/vendor/assets/javascripts/dojo/cldr/nls/el/number.js +1 -1
- data/vendor/assets/javascripts/dojo/cldr/nls/el/number.js.uncompressed.js +9 -9
- data/vendor/assets/javascripts/dojo/cldr/nls/en-au/gregorian.js +1 -1
- data/vendor/assets/javascripts/dojo/cldr/nls/en-au/gregorian.js.uncompressed.js +15 -8
- data/vendor/assets/javascripts/dojo/cldr/nls/en-ca/gregorian.js +1 -1
- data/vendor/assets/javascripts/dojo/cldr/nls/en-ca/gregorian.js.uncompressed.js +12 -10
- data/vendor/assets/javascripts/dojo/cldr/nls/en-gb/buddhist.js +1 -1
- data/vendor/assets/javascripts/dojo/cldr/nls/en-gb/buddhist.js.uncompressed.js +69 -64
- data/vendor/assets/javascripts/dojo/cldr/nls/en-gb/gregorian.js +1 -1
- data/vendor/assets/javascripts/dojo/cldr/nls/en-gb/gregorian.js.uncompressed.js +16 -12
- data/vendor/assets/javascripts/dojo/cldr/nls/en-gb/islamic.js +1 -1
- data/vendor/assets/javascripts/dojo/cldr/nls/en-gb/islamic.js.uncompressed.js +40 -127
- data/vendor/assets/javascripts/dojo/cldr/nls/en/buddhist.js +1 -1
- data/vendor/assets/javascripts/dojo/cldr/nls/en/buddhist.js.uncompressed.js +77 -72
- data/vendor/assets/javascripts/dojo/cldr/nls/en/currency.js +1 -1
- data/vendor/assets/javascripts/dojo/cldr/nls/en/currency.js.uncompressed.js +7 -7
- data/vendor/assets/javascripts/dojo/cldr/nls/en/gregorian.js +1 -1
- data/vendor/assets/javascripts/dojo/cldr/nls/en/gregorian.js.uncompressed.js +154 -140
- data/vendor/assets/javascripts/dojo/cldr/nls/en/islamic.js +1 -1
- data/vendor/assets/javascripts/dojo/cldr/nls/en/islamic.js.uncompressed.js +52 -139
- data/vendor/assets/javascripts/dojo/cldr/nls/en/number.js +1 -1
- data/vendor/assets/javascripts/dojo/cldr/nls/en/number.js.uncompressed.js +9 -11
- data/vendor/assets/javascripts/dojo/cldr/nls/es/buddhist.js +1 -1
- data/vendor/assets/javascripts/dojo/cldr/nls/es/buddhist.js.uncompressed.js +104 -78
- data/vendor/assets/javascripts/dojo/cldr/nls/es/currency.js +1 -1
- data/vendor/assets/javascripts/dojo/cldr/nls/es/currency.js.uncompressed.js +8 -7
- data/vendor/assets/javascripts/dojo/cldr/nls/es/gregorian.js +1 -1
- data/vendor/assets/javascripts/dojo/cldr/nls/es/gregorian.js.uncompressed.js +177 -156
- data/vendor/assets/javascripts/dojo/cldr/nls/es/islamic.js +1 -1
- data/vendor/assets/javascripts/dojo/cldr/nls/es/islamic.js.uncompressed.js +74 -145
- data/vendor/assets/javascripts/dojo/cldr/nls/es/number.js +1 -1
- data/vendor/assets/javascripts/dojo/cldr/nls/es/number.js.uncompressed.js +9 -9
- data/vendor/assets/javascripts/dojo/cldr/nls/fi/buddhist.js +1 -1
- data/vendor/assets/javascripts/dojo/cldr/nls/fi/buddhist.js.uncompressed.js +150 -102
- data/vendor/assets/javascripts/dojo/cldr/nls/fi/currency.js +1 -1
- data/vendor/assets/javascripts/dojo/cldr/nls/fi/currency.js.uncompressed.js +7 -12
- data/vendor/assets/javascripts/dojo/cldr/nls/fi/gregorian.js +1 -1
- data/vendor/assets/javascripts/dojo/cldr/nls/fi/gregorian.js.uncompressed.js +163 -144
- data/vendor/assets/javascripts/dojo/cldr/nls/fi/hebrew.js +1 -1
- data/vendor/assets/javascripts/dojo/cldr/nls/fi/hebrew.js.uncompressed.js +130 -95
- data/vendor/assets/javascripts/dojo/cldr/nls/fi/islamic.js +1 -1
- data/vendor/assets/javascripts/dojo/cldr/nls/fi/islamic.js.uncompressed.js +119 -83
- data/vendor/assets/javascripts/dojo/cldr/nls/fi/number.js +1 -1
- data/vendor/assets/javascripts/dojo/cldr/nls/fi/number.js.uncompressed.js +9 -10
- data/vendor/assets/javascripts/dojo/cldr/nls/fr-ch/gregorian.js +1 -1
- data/vendor/assets/javascripts/dojo/cldr/nls/fr-ch/gregorian.js.uncompressed.js +2 -2
- data/vendor/assets/javascripts/dojo/cldr/nls/fr-ch/number.js +1 -1
- data/vendor/assets/javascripts/dojo/cldr/nls/fr-ch/number.js.uncompressed.js +2 -2
- data/vendor/assets/javascripts/dojo/cldr/nls/fr/buddhist.js +8 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/fr/buddhist.js.uncompressed.js +160 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/fr/currency.js +1 -1
- data/vendor/assets/javascripts/dojo/cldr/nls/fr/currency.js.uncompressed.js +11 -12
- data/vendor/assets/javascripts/dojo/cldr/nls/fr/gregorian.js +1 -1
- data/vendor/assets/javascripts/dojo/cldr/nls/fr/gregorian.js.uncompressed.js +171 -157
- data/vendor/assets/javascripts/dojo/cldr/nls/fr/hebrew.js +8 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/fr/hebrew.js.uncompressed.js +139 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/fr/islamic.js +8 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/fr/islamic.js.uncompressed.js +177 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/fr/number.js +1 -1
- data/vendor/assets/javascripts/dojo/cldr/nls/fr/number.js.uncompressed.js +9 -10
- data/vendor/assets/javascripts/dojo/cldr/nls/gregorian.js +1 -1
- data/vendor/assets/javascripts/dojo/cldr/nls/gregorian.js.uncompressed.js +127 -125
- data/vendor/assets/javascripts/dojo/cldr/nls/he/currency.js +1 -1
- data/vendor/assets/javascripts/dojo/cldr/nls/he/currency.js.uncompressed.js +6 -6
- data/vendor/assets/javascripts/dojo/cldr/nls/he/gregorian.js +1 -1
- data/vendor/assets/javascripts/dojo/cldr/nls/he/gregorian.js.uncompressed.js +168 -140
- data/vendor/assets/javascripts/dojo/cldr/nls/he/hebrew.js +1 -1
- data/vendor/assets/javascripts/dojo/cldr/nls/he/hebrew.js.uncompressed.js +83 -40
- data/vendor/assets/javascripts/dojo/cldr/nls/he/islamic.js +1 -1
- data/vendor/assets/javascripts/dojo/cldr/nls/he/islamic.js.uncompressed.js +56 -40
- data/vendor/assets/javascripts/dojo/cldr/nls/he/number.js +1 -1
- data/vendor/assets/javascripts/dojo/cldr/nls/he/number.js.uncompressed.js +9 -10
- data/vendor/assets/javascripts/dojo/cldr/nls/hebrew.js +1 -1
- data/vendor/assets/javascripts/dojo/cldr/nls/hebrew.js.uncompressed.js +138 -132
- data/vendor/assets/javascripts/dojo/cldr/nls/hu/buddhist.js +8 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/hu/buddhist.js.uncompressed.js +209 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/hu/currency.js +1 -1
- data/vendor/assets/javascripts/dojo/cldr/nls/hu/currency.js.uncompressed.js +7 -7
- data/vendor/assets/javascripts/dojo/cldr/nls/hu/gregorian.js +1 -1
- data/vendor/assets/javascripts/dojo/cldr/nls/hu/gregorian.js.uncompressed.js +161 -138
- data/vendor/assets/javascripts/dojo/cldr/nls/hu/hebrew.js +8 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/hu/hebrew.js.uncompressed.js +187 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/hu/islamic.js +8 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/hu/islamic.js.uncompressed.js +199 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/hu/number.js +1 -1
- data/vendor/assets/javascripts/dojo/cldr/nls/hu/number.js.uncompressed.js +8 -9
- data/vendor/assets/javascripts/dojo/cldr/nls/islamic.js +1 -1
- data/vendor/assets/javascripts/dojo/cldr/nls/islamic.js.uncompressed.js +137 -132
- data/vendor/assets/javascripts/dojo/cldr/nls/it/buddhist.js +8 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/it/buddhist.js.uncompressed.js +192 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/it/currency.js +1 -1
- data/vendor/assets/javascripts/dojo/cldr/nls/it/currency.js.uncompressed.js +6 -6
- data/vendor/assets/javascripts/dojo/cldr/nls/it/gregorian.js +1 -1
- data/vendor/assets/javascripts/dojo/cldr/nls/it/gregorian.js.uncompressed.js +161 -146
- data/vendor/assets/javascripts/dojo/cldr/nls/it/islamic.js +8 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/it/islamic.js.uncompressed.js +104 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/it/number.js +1 -1
- data/vendor/assets/javascripts/dojo/cldr/nls/it/number.js.uncompressed.js +9 -3
- data/vendor/assets/javascripts/dojo/cldr/nls/ja/buddhist.js +8 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/ja/buddhist.js.uncompressed.js +101 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/ja/currency.js +1 -1
- data/vendor/assets/javascripts/dojo/cldr/nls/ja/currency.js.uncompressed.js +8 -8
- data/vendor/assets/javascripts/dojo/cldr/nls/ja/gregorian.js +1 -1
- data/vendor/assets/javascripts/dojo/cldr/nls/ja/gregorian.js.uncompressed.js +159 -139
- data/vendor/assets/javascripts/dojo/cldr/nls/ja/hebrew.js +8 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/ja/hebrew.js.uncompressed.js +168 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/ja/islamic.js +8 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/ja/islamic.js.uncompressed.js +128 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/ja/number.js +1 -1
- data/vendor/assets/javascripts/dojo/cldr/nls/ja/number.js.uncompressed.js +5 -3
- data/vendor/assets/javascripts/dojo/cldr/nls/ko/buddhist.js +8 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/ko/buddhist.js.uncompressed.js +127 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/ko/currency.js +1 -1
- data/vendor/assets/javascripts/dojo/cldr/nls/ko/currency.js.uncompressed.js +6 -6
- data/vendor/assets/javascripts/dojo/cldr/nls/ko/gregorian.js +1 -1
- data/vendor/assets/javascripts/dojo/cldr/nls/ko/gregorian.js.uncompressed.js +153 -137
- data/vendor/assets/javascripts/dojo/cldr/nls/ko/number.js +1 -1
- data/vendor/assets/javascripts/dojo/cldr/nls/ko/number.js.uncompressed.js +9 -10
- data/vendor/assets/javascripts/dojo/cldr/nls/nb/buddhist.js +8 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/nb/buddhist.js.uncompressed.js +206 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/nb/currency.js +1 -1
- data/vendor/assets/javascripts/dojo/cldr/nls/nb/currency.js.uncompressed.js +6 -14
- data/vendor/assets/javascripts/dojo/cldr/nls/nb/gregorian.js +1 -1
- data/vendor/assets/javascripts/dojo/cldr/nls/nb/gregorian.js.uncompressed.js +176 -153
- data/vendor/assets/javascripts/dojo/cldr/nls/nb/islamic.js +8 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/nb/islamic.js.uncompressed.js +133 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/nb/number.js +1 -1
- data/vendor/assets/javascripts/dojo/cldr/nls/nb/number.js.uncompressed.js +9 -10
- data/vendor/assets/javascripts/dojo/cldr/nls/nl/buddhist.js +8 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/nl/buddhist.js.uncompressed.js +133 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/nl/currency.js +1 -1
- data/vendor/assets/javascripts/dojo/cldr/nls/nl/currency.js.uncompressed.js +6 -6
- data/vendor/assets/javascripts/dojo/cldr/nls/nl/gregorian.js +1 -1
- data/vendor/assets/javascripts/dojo/cldr/nls/nl/gregorian.js.uncompressed.js +180 -162
- data/vendor/assets/javascripts/dojo/cldr/nls/nl/hebrew.js +8 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/nl/hebrew.js.uncompressed.js +123 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/nl/islamic.js +8 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/nl/islamic.js.uncompressed.js +163 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/nl/number.js +1 -1
- data/vendor/assets/javascripts/dojo/cldr/nls/nl/number.js.uncompressed.js +9 -10
- data/vendor/assets/javascripts/dojo/cldr/nls/number.js +1 -1
- data/vendor/assets/javascripts/dojo/cldr/nls/number.js.uncompressed.js +17 -19
- data/vendor/assets/javascripts/dojo/cldr/nls/pl/buddhist.js +8 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/pl/buddhist.js.uncompressed.js +203 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/pl/currency.js +1 -1
- data/vendor/assets/javascripts/dojo/cldr/nls/pl/currency.js.uncompressed.js +6 -6
- data/vendor/assets/javascripts/dojo/cldr/nls/pl/gregorian.js +1 -1
- data/vendor/assets/javascripts/dojo/cldr/nls/pl/gregorian.js.uncompressed.js +169 -149
- data/vendor/assets/javascripts/dojo/cldr/nls/pl/hebrew.js +8 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/pl/hebrew.js.uncompressed.js +166 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/pl/islamic.js +8 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/pl/islamic.js.uncompressed.js +196 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/pl/number.js +1 -1
- data/vendor/assets/javascripts/dojo/cldr/nls/pl/number.js.uncompressed.js +9 -10
- data/vendor/assets/javascripts/dojo/cldr/nls/pt-pt/buddhist.js +8 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/pt-pt/buddhist.js.uncompressed.js +127 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/pt-pt/currency.js +8 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/pt-pt/currency.js.uncompressed.js +8 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/pt-pt/gregorian.js +1 -1
- data/vendor/assets/javascripts/dojo/cldr/nls/pt-pt/gregorian.js.uncompressed.js +78 -62
- data/vendor/assets/javascripts/dojo/cldr/nls/pt-pt/islamic.js +8 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/pt-pt/islamic.js.uncompressed.js +82 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/pt-pt/number.js +1 -1
- data/vendor/assets/javascripts/dojo/cldr/nls/pt-pt/number.js.uncompressed.js +3 -2
- data/vendor/assets/javascripts/dojo/cldr/nls/pt/buddhist.js +8 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/pt/buddhist.js.uncompressed.js +130 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/pt/currency.js +1 -1
- data/vendor/assets/javascripts/dojo/cldr/nls/pt/currency.js.uncompressed.js +6 -6
- data/vendor/assets/javascripts/dojo/cldr/nls/pt/gregorian.js +1 -1
- data/vendor/assets/javascripts/dojo/cldr/nls/pt/gregorian.js.uncompressed.js +185 -166
- data/vendor/assets/javascripts/dojo/cldr/nls/pt/hebrew.js +8 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/pt/hebrew.js.uncompressed.js +137 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/pt/islamic.js +8 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/pt/islamic.js.uncompressed.js +101 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/pt/number.js +1 -1
- data/vendor/assets/javascripts/dojo/cldr/nls/pt/number.js.uncompressed.js +9 -10
- data/vendor/assets/javascripts/dojo/cldr/nls/ro/buddhist.js +1 -1
- data/vendor/assets/javascripts/dojo/cldr/nls/ro/buddhist.js.uncompressed.js +148 -62
- data/vendor/assets/javascripts/dojo/cldr/nls/ro/currency.js +1 -1
- data/vendor/assets/javascripts/dojo/cldr/nls/ro/currency.js.uncompressed.js +6 -5
- data/vendor/assets/javascripts/dojo/cldr/nls/ro/gregorian.js +1 -1
- data/vendor/assets/javascripts/dojo/cldr/nls/ro/gregorian.js.uncompressed.js +170 -159
- data/vendor/assets/javascripts/dojo/cldr/nls/ro/hebrew.js +8 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/ro/hebrew.js.uncompressed.js +169 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/ro/islamic.js +8 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/ro/islamic.js.uncompressed.js +117 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/ro/number.js +1 -1
- data/vendor/assets/javascripts/dojo/cldr/nls/ro/number.js.uncompressed.js +9 -10
- data/vendor/assets/javascripts/dojo/cldr/nls/ru/buddhist.js +8 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/ru/buddhist.js.uncompressed.js +203 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/ru/currency.js +1 -1
- data/vendor/assets/javascripts/dojo/cldr/nls/ru/currency.js.uncompressed.js +7 -6
- data/vendor/assets/javascripts/dojo/cldr/nls/ru/gregorian.js +1 -1
- data/vendor/assets/javascripts/dojo/cldr/nls/ru/gregorian.js.uncompressed.js +184 -155
- data/vendor/assets/javascripts/dojo/cldr/nls/ru/hebrew.js +8 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/ru/hebrew.js.uncompressed.js +169 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/ru/islamic.js +8 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/ru/islamic.js.uncompressed.js +197 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/ru/number.js +1 -1
- data/vendor/assets/javascripts/dojo/cldr/nls/ru/number.js.uncompressed.js +10 -10
- data/vendor/assets/javascripts/dojo/cldr/nls/sk/currency.js +1 -1
- data/vendor/assets/javascripts/dojo/cldr/nls/sk/currency.js.uncompressed.js +7 -7
- data/vendor/assets/javascripts/dojo/cldr/nls/sk/gregorian.js +1 -1
- data/vendor/assets/javascripts/dojo/cldr/nls/sk/gregorian.js.uncompressed.js +172 -148
- data/vendor/assets/javascripts/dojo/cldr/nls/sk/number.js +1 -1
- data/vendor/assets/javascripts/dojo/cldr/nls/sk/number.js.uncompressed.js +5 -2
- data/vendor/assets/javascripts/dojo/cldr/nls/sl/currency.js +1 -1
- data/vendor/assets/javascripts/dojo/cldr/nls/sl/currency.js.uncompressed.js +7 -7
- data/vendor/assets/javascripts/dojo/cldr/nls/sl/gregorian.js +1 -1
- data/vendor/assets/javascripts/dojo/cldr/nls/sl/gregorian.js.uncompressed.js +157 -134
- data/vendor/assets/javascripts/dojo/cldr/nls/sl/number.js +1 -1
- data/vendor/assets/javascripts/dojo/cldr/nls/sl/number.js.uncompressed.js +9 -10
- data/vendor/assets/javascripts/dojo/cldr/nls/sv/buddhist.js +8 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/sv/buddhist.js.uncompressed.js +209 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/sv/currency.js +1 -1
- data/vendor/assets/javascripts/dojo/cldr/nls/sv/currency.js.uncompressed.js +7 -9
- data/vendor/assets/javascripts/dojo/cldr/nls/sv/gregorian.js +1 -1
- data/vendor/assets/javascripts/dojo/cldr/nls/sv/gregorian.js.uncompressed.js +164 -152
- data/vendor/assets/javascripts/dojo/cldr/nls/sv/hebrew.js +8 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/sv/hebrew.js.uncompressed.js +167 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/sv/islamic.js +8 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/sv/islamic.js.uncompressed.js +189 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/sv/number.js +1 -1
- data/vendor/assets/javascripts/dojo/cldr/nls/sv/number.js.uncompressed.js +9 -10
- data/vendor/assets/javascripts/dojo/cldr/nls/th/buddhist.js +1 -1
- data/vendor/assets/javascripts/dojo/cldr/nls/th/buddhist.js.uncompressed.js +91 -65
- data/vendor/assets/javascripts/dojo/cldr/nls/th/currency.js +1 -1
- data/vendor/assets/javascripts/dojo/cldr/nls/th/currency.js.uncompressed.js +7 -7
- data/vendor/assets/javascripts/dojo/cldr/nls/th/gregorian.js +1 -1
- data/vendor/assets/javascripts/dojo/cldr/nls/th/gregorian.js.uncompressed.js +161 -138
- data/vendor/assets/javascripts/dojo/cldr/nls/th/hebrew.js +8 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/th/hebrew.js.uncompressed.js +139 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/th/islamic.js +8 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/th/islamic.js.uncompressed.js +134 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/th/number.js +1 -1
- data/vendor/assets/javascripts/dojo/cldr/nls/th/number.js.uncompressed.js +9 -10
- data/vendor/assets/javascripts/dojo/cldr/nls/tr/buddhist.js +8 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/tr/buddhist.js.uncompressed.js +203 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/tr/currency.js +1 -1
- data/vendor/assets/javascripts/dojo/cldr/nls/tr/currency.js.uncompressed.js +8 -8
- data/vendor/assets/javascripts/dojo/cldr/nls/tr/gregorian.js +1 -1
- data/vendor/assets/javascripts/dojo/cldr/nls/tr/gregorian.js.uncompressed.js +160 -146
- data/vendor/assets/javascripts/dojo/cldr/nls/tr/hebrew.js +8 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/tr/hebrew.js.uncompressed.js +161 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/tr/islamic.js +8 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/tr/islamic.js.uncompressed.js +181 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/tr/number.js +1 -1
- data/vendor/assets/javascripts/dojo/cldr/nls/tr/number.js.uncompressed.js +9 -10
- data/vendor/assets/javascripts/dojo/cldr/nls/zh-hant/buddhist.js +1 -1
- data/vendor/assets/javascripts/dojo/cldr/nls/zh-hant/buddhist.js.uncompressed.js +141 -95
- data/vendor/assets/javascripts/dojo/cldr/nls/zh-hant/currency.js +1 -1
- data/vendor/assets/javascripts/dojo/cldr/nls/zh-hant/currency.js.uncompressed.js +7 -6
- data/vendor/assets/javascripts/dojo/cldr/nls/zh-hant/gregorian.js +1 -1
- data/vendor/assets/javascripts/dojo/cldr/nls/zh-hant/gregorian.js.uncompressed.js +144 -146
- data/vendor/assets/javascripts/dojo/cldr/nls/zh-hant/hebrew.js +8 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/zh-hant/hebrew.js.uncompressed.js +182 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/zh-hant/islamic.js +1 -1
- data/vendor/assets/javascripts/dojo/cldr/nls/zh-hant/islamic.js.uncompressed.js +153 -54
- data/vendor/assets/javascripts/dojo/cldr/nls/zh-hant/number.js +1 -1
- data/vendor/assets/javascripts/dojo/cldr/nls/zh-hant/number.js.uncompressed.js +2 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/zh-hk/currency.js +1 -1
- data/vendor/assets/javascripts/dojo/cldr/nls/zh-hk/currency.js.uncompressed.js +6 -6
- data/vendor/assets/javascripts/dojo/cldr/nls/zh-hk/gregorian.js +1 -1
- data/vendor/assets/javascripts/dojo/cldr/nls/zh-hk/gregorian.js.uncompressed.js +34 -37
- data/vendor/assets/javascripts/dojo/cldr/nls/zh-hk/number.js +1 -1
- data/vendor/assets/javascripts/dojo/cldr/nls/zh-hk/number.js.uncompressed.js +1 -1
- data/vendor/assets/javascripts/dojo/cldr/nls/zh-tw/currency.js +1 -1
- data/vendor/assets/javascripts/dojo/cldr/nls/zh-tw/currency.js.uncompressed.js +5 -4
- data/vendor/assets/javascripts/dojo/cldr/nls/zh-tw/gregorian.js +1 -1
- data/vendor/assets/javascripts/dojo/cldr/nls/zh-tw/gregorian.js.uncompressed.js +51 -49
- data/vendor/assets/javascripts/dojo/cldr/nls/zh-tw/number.js +8 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/zh-tw/number.js.uncompressed.js +7 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/zh/buddhist.js +8 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/zh/buddhist.js.uncompressed.js +205 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/zh/currency.js +1 -1
- data/vendor/assets/javascripts/dojo/cldr/nls/zh/currency.js.uncompressed.js +6 -6
- data/vendor/assets/javascripts/dojo/cldr/nls/zh/gregorian.js +1 -1
- data/vendor/assets/javascripts/dojo/cldr/nls/zh/gregorian.js.uncompressed.js +152 -135
- data/vendor/assets/javascripts/dojo/cldr/nls/zh/hebrew.js +8 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/zh/hebrew.js.uncompressed.js +181 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/zh/islamic.js +8 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/zh/islamic.js.uncompressed.js +137 -0
- data/vendor/assets/javascripts/dojo/cldr/nls/zh/number.js +1 -1
- data/vendor/assets/javascripts/dojo/cldr/nls/zh/number.js.uncompressed.js +4 -3
- data/vendor/assets/javascripts/dojo/cldr/supplemental.js +25 -28
- data/vendor/assets/javascripts/dojo/cldr/supplemental.js.uncompressed.js +46 -39
- data/vendor/assets/javascripts/dojo/colors.js +2 -1
- data/vendor/assets/javascripts/dojo/colors.js.uncompressed.js +22 -22
- data/vendor/assets/javascripts/dojo/cookie.js.uncompressed.js +30 -30
- data/vendor/assets/javascripts/dojo/currency.js +14 -13
- data/vendor/assets/javascripts/dojo/currency.js.uncompressed.js +64 -66
- data/vendor/assets/javascripts/dojo/data/ItemFileReadStore.js +138 -138
- data/vendor/assets/javascripts/dojo/data/ItemFileReadStore.js.uncompressed.js +251 -245
- data/vendor/assets/javascripts/dojo/data/ItemFileWriteStore.js +1 -1
- data/vendor/assets/javascripts/dojo/data/ItemFileWriteStore.js.uncompressed.js +80 -69
- data/vendor/assets/javascripts/dojo/data/ObjectStore.js +176 -169
- data/vendor/assets/javascripts/dojo/data/ObjectStore.js.uncompressed.js +122 -83
- data/vendor/assets/javascripts/dojo/data/api/Identity.js +6 -7
- data/vendor/assets/javascripts/dojo/data/api/Identity.js.uncompressed.js +35 -33
- data/vendor/assets/javascripts/dojo/data/api/Item.js +10 -0
- data/vendor/assets/javascripts/dojo/data/api/Item.js.uncompressed.js +13 -0
- data/vendor/assets/javascripts/dojo/data/api/Notification.js +5 -6
- data/vendor/assets/javascripts/dojo/data/api/Notification.js.uncompressed.js +39 -51
- data/vendor/assets/javascripts/dojo/data/api/Read.js +2 -3
- data/vendor/assets/javascripts/dojo/data/api/Read.js.uncompressed.js +85 -84
- data/vendor/assets/javascripts/dojo/data/api/Request.js +2 -3
- data/vendor/assets/javascripts/dojo/data/api/Request.js.uncompressed.js +10 -13
- data/vendor/assets/javascripts/dojo/data/api/Write.js +9 -10
- data/vendor/assets/javascripts/dojo/data/api/Write.js.uncompressed.js +28 -43
- data/vendor/assets/javascripts/dojo/data/util/filter.js +3 -2
- data/vendor/assets/javascripts/dojo/data/util/filter.js.uncompressed.js +19 -16
- data/vendor/assets/javascripts/dojo/data/util/simpleFetch.js +37 -40
- data/vendor/assets/javascripts/dojo/data/util/simpleFetch.js.uncompressed.js +202 -57
- data/vendor/assets/javascripts/dojo/data/util/sorter.js +3 -2
- data/vendor/assets/javascripts/dojo/data/util/sorter.js.uncompressed.js +16 -16
- data/vendor/assets/javascripts/dojo/date.js +106 -105
- data/vendor/assets/javascripts/dojo/date.js.uncompressed.js +46 -47
- data/vendor/assets/javascripts/dojo/date/locale.js +196 -183
- data/vendor/assets/javascripts/dojo/date/locale.js.uncompressed.js +105 -81
- data/vendor/assets/javascripts/dojo/date/stamp.js +10 -9
- data/vendor/assets/javascripts/dojo/date/stamp.js.uncompressed.js +40 -42
- data/vendor/assets/javascripts/dojo/dnd/AutoSource.js +2 -2
- data/vendor/assets/javascripts/dojo/dnd/AutoSource.js.uncompressed.js +3 -4
- data/vendor/assets/javascripts/dojo/dnd/Avatar.js +32 -30
- data/vendor/assets/javascripts/dojo/dnd/Avatar.js.uncompressed.js +45 -34
- data/vendor/assets/javascripts/dojo/dnd/Container.js +99 -96
- data/vendor/assets/javascripts/dojo/dnd/Container.js.uncompressed.js +123 -99
- data/vendor/assets/javascripts/dojo/dnd/Manager.js +58 -52
- data/vendor/assets/javascripts/dojo/dnd/Manager.js.uncompressed.js +52 -42
- data/vendor/assets/javascripts/dojo/dnd/Moveable.js +41 -39
- data/vendor/assets/javascripts/dojo/dnd/Moveable.js.uncompressed.js +72 -60
- data/vendor/assets/javascripts/dojo/dnd/Mover.js +19 -17
- data/vendor/assets/javascripts/dojo/dnd/Mover.js.uncompressed.js +37 -32
- data/vendor/assets/javascripts/dojo/dnd/Selector.js +52 -50
- data/vendor/assets/javascripts/dojo/dnd/Selector.js.uncompressed.js +51 -46
- data/vendor/assets/javascripts/dojo/dnd/Source.js +109 -106
- data/vendor/assets/javascripts/dojo/dnd/Source.js.uncompressed.js +60 -67
- data/vendor/assets/javascripts/dojo/dnd/Target.js +3 -3
- data/vendor/assets/javascripts/dojo/dnd/Target.js.uncompressed.js +7 -7
- data/vendor/assets/javascripts/dojo/dnd/TimedMoveable.js +19 -20
- data/vendor/assets/javascripts/dojo/dnd/TimedMoveable.js.uncompressed.js +9 -14
- data/vendor/assets/javascripts/dojo/dnd/autoscroll.js +48 -39
- data/vendor/assets/javascripts/dojo/dnd/autoscroll.js.uncompressed.js +77 -46
- data/vendor/assets/javascripts/dojo/dnd/common.js +11 -10
- data/vendor/assets/javascripts/dojo/dnd/common.js.uncompressed.js +19 -13
- data/vendor/assets/javascripts/dojo/dnd/move.js +31 -34
- data/vendor/assets/javascripts/dojo/dnd/move.js.uncompressed.js +31 -27
- data/vendor/assets/javascripts/dojo/dojo.js +12 -1869
- data/vendor/assets/javascripts/dojo/dojo.js.uncompressed.js +7168 -5874
- data/vendor/assets/javascripts/dojo/dojo.profile.js +6 -6
- data/vendor/assets/javascripts/dojo/dom-attr.js +30 -31
- data/vendor/assets/javascripts/dojo/dom-attr.js.uncompressed.js +71 -89
- data/vendor/assets/javascripts/dojo/dom-class.js.uncompressed.js +161 -155
- data/vendor/assets/javascripts/dojo/dom-construct.js +1 -1
- data/vendor/assets/javascripts/dojo/dom-construct.js.uncompressed.js +159 -202
- data/vendor/assets/javascripts/dojo/dom-form.js.uncompressed.js +60 -77
- data/vendor/assets/javascripts/dojo/dom-geometry.js +43 -45
- data/vendor/assets/javascripts/dojo/dom-geometry.js.uncompressed.js +257 -403
- data/vendor/assets/javascripts/dojo/dom-prop.js +36 -37
- data/vendor/assets/javascripts/dojo/dom-prop.js.uncompressed.js +33 -42
- data/vendor/assets/javascripts/dojo/dom-style.js +2 -2
- data/vendor/assets/javascripts/dojo/dom-style.js.uncompressed.js +127 -142
- data/vendor/assets/javascripts/dojo/dom.js +3 -1
- data/vendor/assets/javascripts/dojo/dom.js.uncompressed.js +77 -85
- data/vendor/assets/javascripts/dojo/domReady.js +2 -2
- data/vendor/assets/javascripts/dojo/domReady.js.uncompressed.js +4 -2
- data/vendor/assets/javascripts/dojo/errors/CancelError.js +10 -0
- data/vendor/assets/javascripts/dojo/errors/CancelError.js.uncompressed.js +13 -0
- data/vendor/assets/javascripts/dojo/errors/RequestError.js +12 -0
- data/vendor/assets/javascripts/dojo/errors/RequestError.js.uncompressed.js +15 -0
- data/vendor/assets/javascripts/dojo/errors/RequestTimeoutError.js +10 -0
- data/vendor/assets/javascripts/dojo/errors/RequestTimeoutError.js.uncompressed.js +15 -0
- data/vendor/assets/javascripts/dojo/errors/create.js +36 -0
- data/vendor/assets/javascripts/dojo/errors/create.js.uncompressed.js +41 -0
- data/vendor/assets/javascripts/dojo/fx.js.uncompressed.js +27 -34
- data/vendor/assets/javascripts/dojo/fx/Toggler.js.uncompressed.js +9 -11
- data/vendor/assets/javascripts/dojo/fx/easing.js.uncompressed.js +7 -15
- data/vendor/assets/javascripts/dojo/gears.js +10 -9
- data/vendor/assets/javascripts/dojo/gears.js.uncompressed.js +18 -14
- data/vendor/assets/javascripts/dojo/has.js +35 -35
- data/vendor/assets/javascripts/dojo/has.js.uncompressed.js +55 -60
- data/vendor/assets/javascripts/dojo/hash.js +74 -74
- data/vendor/assets/javascripts/dojo/hash.js.uncompressed.js +62 -49
- data/vendor/assets/javascripts/dojo/hccss.js +23 -0
- data/vendor/assets/javascripts/dojo/hccss.js.uncompressed.js +51 -0
- data/vendor/assets/javascripts/dojo/html.js +81 -64
- data/vendor/assets/javascripts/dojo/html.js.uncompressed.js +107 -76
- data/vendor/assets/javascripts/dojo/i18n.js +155 -139
- data/vendor/assets/javascripts/dojo/i18n.js.uncompressed.js +234 -198
- data/vendor/assets/javascripts/dojo/io-query.js +28 -30
- data/vendor/assets/javascripts/dojo/io-query.js.uncompressed.js +14 -15
- data/vendor/assets/javascripts/dojo/io/iframe.js +49 -207
- data/vendor/assets/javascripts/dojo/io/iframe.js.uncompressed.js +127 -313
- data/vendor/assets/javascripts/dojo/io/script.js +60 -84
- data/vendor/assets/javascripts/dojo/io/script.js.uncompressed.js +121 -128
- data/vendor/assets/javascripts/dojo/jaxer.js +2 -1
- data/vendor/assets/javascripts/dojo/jaxer.js.uncompressed.js +2 -4
- data/vendor/assets/javascripts/dojo/json.js +2 -0
- data/vendor/assets/javascripts/dojo/json.js.uncompressed.js +38 -35
- data/vendor/assets/javascripts/dojo/keys.js +2 -2
- data/vendor/assets/javascripts/dojo/keys.js.uncompressed.js +73 -76
- data/vendor/assets/javascripts/dojo/main.js +10 -10
- data/vendor/assets/javascripts/dojo/main.js.uncompressed.js +13 -11
- data/vendor/assets/javascripts/dojo/mouse.js +25 -4
- data/vendor/assets/javascripts/dojo/mouse.js.uncompressed.js +78 -34
- data/vendor/assets/javascripts/dojo/nls/az/colors.js.uncompressed.js +2 -4
- data/vendor/assets/javascripts/dojo/nls/colors.js.uncompressed.js +1 -1
- data/vendor/assets/javascripts/dojo/nls/he/colors.js.uncompressed.js +2 -5
- data/vendor/assets/javascripts/dojo/nls/hr/colors.js +1 -1
- data/vendor/assets/javascripts/dojo/nls/hr/colors.js.uncompressed.js +149 -149
- data/vendor/assets/javascripts/dojo/nls/sl/colors.js +1 -1
- data/vendor/assets/javascripts/dojo/nls/sl/colors.js.uncompressed.js +7 -7
- data/vendor/assets/javascripts/dojo/node.js +18 -0
- data/vendor/assets/javascripts/dojo/node.js.uncompressed.js +27 -0
- data/vendor/assets/javascripts/dojo/number.js +38 -37
- data/vendor/assets/javascripts/dojo/number.js.uncompressed.js +94 -122
- data/vendor/assets/javascripts/dojo/on.js +146 -116
- data/vendor/assets/javascripts/dojo/on.js.uncompressed.js +135 -92
- data/vendor/assets/javascripts/dojo/package.json +1 -1
- data/vendor/assets/javascripts/dojo/parser.js +325 -200
- data/vendor/assets/javascripts/dojo/parser.js.uncompressed.js +677 -406
- data/vendor/assets/javascripts/dojo/promise/Promise.js +37 -0
- data/vendor/assets/javascripts/dojo/promise/Promise.js.uncompressed.js +133 -0
- data/vendor/assets/javascripts/dojo/promise/all.js +60 -0
- data/vendor/assets/javascripts/dojo/promise/all.js.uncompressed.js +76 -0
- data/vendor/assets/javascripts/dojo/promise/first.js +34 -0
- data/vendor/assets/javascripts/dojo/promise/first.js.uncompressed.js +49 -0
- data/vendor/assets/javascripts/dojo/promise/instrumentation.js +86 -0
- data/vendor/assets/javascripts/dojo/promise/instrumentation.js.uncompressed.js +103 -0
- data/vendor/assets/javascripts/dojo/promise/tracer.js +37 -0
- data/vendor/assets/javascripts/dojo/promise/tracer.js.uncompressed.js +85 -0
- data/vendor/assets/javascripts/dojo/query.js +8 -8
- data/vendor/assets/javascripts/dojo/query.js.uncompressed.js +206 -214
- data/vendor/assets/javascripts/dojo/ready.js +1 -7
- data/vendor/assets/javascripts/dojo/ready.js.uncompressed.js +31 -33
- data/vendor/assets/javascripts/dojo/regexp.js +14 -13
- data/vendor/assets/javascripts/dojo/regexp.js.uncompressed.js +15 -18
- data/vendor/assets/javascripts/dojo/request.js +10 -0
- data/vendor/assets/javascripts/dojo/request.js.uncompressed.js +75 -0
- data/vendor/assets/javascripts/dojo/request/default.js +28 -0
- data/vendor/assets/javascripts/dojo/request/default.js.uncompressed.js +32 -0
- data/vendor/assets/javascripts/dojo/request/handlers.js +47 -0
- data/vendor/assets/javascripts/dojo/request/handlers.js.uncompressed.js +62 -0
- data/vendor/assets/javascripts/dojo/request/iframe.js +290 -0
- data/vendor/assets/javascripts/dojo/request/iframe.js.uncompressed.js +429 -0
- data/vendor/assets/javascripts/dojo/request/node.js +81 -0
- data/vendor/assets/javascripts/dojo/request/node.js.uncompressed.js +188 -0
- data/vendor/assets/javascripts/dojo/request/notify.js +38 -0
- data/vendor/assets/javascripts/dojo/request/notify.js.uncompressed.js +73 -0
- data/vendor/assets/javascripts/dojo/request/registry.js +68 -0
- data/vendor/assets/javascripts/dojo/request/registry.js.uncompressed.js +85 -0
- data/vendor/assets/javascripts/dojo/request/script.js +111 -0
- data/vendor/assets/javascripts/dojo/request/script.js.uncompressed.js +211 -0
- data/vendor/assets/javascripts/dojo/request/util.js +113 -0
- data/vendor/assets/javascripts/dojo/request/util.js.uncompressed.js +145 -0
- data/vendor/assets/javascripts/dojo/request/watch.js +73 -0
- data/vendor/assets/javascripts/dojo/request/watch.js.uncompressed.js +109 -0
- data/vendor/assets/javascripts/dojo/request/xhr.js +184 -0
- data/vendor/assets/javascripts/dojo/request/xhr.js.uncompressed.js +317 -0
- data/vendor/assets/javascripts/dojo/resources/dnd.css +3 -3
- data/vendor/assets/javascripts/dojo/router.js +10 -0
- data/vendor/assets/javascripts/dojo/router.js.uncompressed.js +28 -0
- data/vendor/assets/javascripts/dojo/router/RouterBase.js +160 -0
- data/vendor/assets/javascripts/dojo/router/RouterBase.js.uncompressed.js +350 -0
- data/vendor/assets/javascripts/dojo/rpc/JsonService.js +20 -21
- data/vendor/assets/javascripts/dojo/rpc/JsonService.js.uncompressed.js +29 -27
- data/vendor/assets/javascripts/dojo/rpc/JsonpService.js +14 -15
- data/vendor/assets/javascripts/dojo/rpc/JsonpService.js.uncompressed.js +28 -29
- data/vendor/assets/javascripts/dojo/rpc/RpcService.js +50 -51
- data/vendor/assets/javascripts/dojo/rpc/RpcService.js.uncompressed.js +39 -36
- data/vendor/assets/javascripts/dojo/selector/_loader.js.uncompressed.js +4 -2
- data/vendor/assets/javascripts/dojo/selector/acme.js +442 -408
- data/vendor/assets/javascripts/dojo/selector/acme.js.uncompressed.js +160 -147
- data/vendor/assets/javascripts/dojo/selector/lite.js +136 -127
- data/vendor/assets/javascripts/dojo/selector/lite.js.uncompressed.js +62 -43
- data/vendor/assets/javascripts/dojo/sniff.js +41 -0
- data/vendor/assets/javascripts/dojo/sniff.js.uncompressed.js +70 -0
- data/vendor/assets/javascripts/dojo/store/Cache.js +7 -6
- data/vendor/assets/javascripts/dojo/store/Cache.js.uncompressed.js +48 -51
- data/vendor/assets/javascripts/dojo/store/DataStore.js +88 -65
- data/vendor/assets/javascripts/dojo/store/DataStore.js.uncompressed.js +48 -16
- data/vendor/assets/javascripts/dojo/store/JsonRest.js +44 -40
- data/vendor/assets/javascripts/dojo/store/JsonRest.js.uncompressed.js +74 -40
- data/vendor/assets/javascripts/dojo/store/Memory.js +30 -29
- data/vendor/assets/javascripts/dojo/store/Memory.js.uncompressed.js +40 -37
- data/vendor/assets/javascripts/dojo/store/Observable.js +90 -79
- data/vendor/assets/javascripts/dojo/store/Observable.js.uncompressed.js +35 -23
- data/vendor/assets/javascripts/dojo/store/README +5 -9
- data/vendor/assets/javascripts/dojo/store/api/Store.js +12 -24
- data/vendor/assets/javascripts/dojo/store/api/Store.js.uncompressed.js +31 -41
- data/vendor/assets/javascripts/dojo/store/util/QueryResults.js +4 -4
- data/vendor/assets/javascripts/dojo/store/util/QueryResults.js.uncompressed.js +13 -14
- data/vendor/assets/javascripts/dojo/store/util/SimpleQueryEngine.js +11 -10
- data/vendor/assets/javascripts/dojo/store/util/SimpleQueryEngine.js.uncompressed.js +18 -16
- data/vendor/assets/javascripts/dojo/string.js +23 -22
- data/vendor/assets/javascripts/dojo/string.js.uncompressed.js +38 -38
- data/vendor/assets/javascripts/dojo/text.js +50 -50
- data/vendor/assets/javascripts/dojo/text.js.uncompressed.js +129 -127
- data/vendor/assets/javascripts/dojo/topic.js.uncompressed.js +17 -12
- data/vendor/assets/javascripts/dojo/touch.js +35 -7
- data/vendor/assets/javascripts/dojo/touch.js.uncompressed.js +146 -34
- data/vendor/assets/javascripts/dojo/uacss.js +1 -1
- data/vendor/assets/javascripts/dojo/uacss.js.uncompressed.js +19 -10
- data/vendor/assets/javascripts/dojo/when.js +31 -0
- data/vendor/assets/javascripts/dojo/when.js.uncompressed.js +55 -0
- data/vendor/assets/javascripts/dojo/window.js +26 -27
- data/vendor/assets/javascripts/dojo/window.js.uncompressed.js +160 -161
- metadata +152 -6
- data/Gemfile +0 -4
- data/LICENSE +0 -22
- data/Rakefile +0 -3
- data/vendor/assets/javascripts/dojo/resources/_modules.js +0 -36
@@ -0,0 +1,103 @@
|
|
1
|
+
define("dojo/promise/instrumentation", [
|
2
|
+
"./tracer",
|
3
|
+
"../has",
|
4
|
+
"../_base/lang",
|
5
|
+
"../_base/array"
|
6
|
+
], function(tracer, has, lang, arrayUtil){
|
7
|
+
function logError(error, rejection, deferred){
|
8
|
+
var stack = "";
|
9
|
+
if(error && error.stack){
|
10
|
+
stack += error.stack;
|
11
|
+
}
|
12
|
+
if(rejection && rejection.stack){
|
13
|
+
stack += "\n ----------------------------------------\n rejected" + rejection.stack.split("\n").slice(1).join("\n").replace(/^\s+/, " ");
|
14
|
+
}
|
15
|
+
if(deferred && deferred.stack){
|
16
|
+
stack += "\n ----------------------------------------\n" + deferred.stack;
|
17
|
+
}
|
18
|
+
console.error(error, stack);
|
19
|
+
}
|
20
|
+
|
21
|
+
function reportRejections(error, handled, rejection, deferred){
|
22
|
+
if(!handled){
|
23
|
+
logError(error, rejection, deferred);
|
24
|
+
}
|
25
|
+
}
|
26
|
+
|
27
|
+
var errors = [];
|
28
|
+
var activeTimeout = false;
|
29
|
+
var unhandledWait = 1000;
|
30
|
+
function trackUnhandledRejections(error, handled, rejection, deferred){
|
31
|
+
if(handled){
|
32
|
+
arrayUtil.some(errors, function(obj, ix){
|
33
|
+
if(obj.error === error){
|
34
|
+
errors.splice(ix, 1);
|
35
|
+
return true;
|
36
|
+
}
|
37
|
+
});
|
38
|
+
}else if(!arrayUtil.some(errors, function(obj){ return obj.error === error; })){
|
39
|
+
errors.push({
|
40
|
+
error: error,
|
41
|
+
rejection: rejection,
|
42
|
+
deferred: deferred,
|
43
|
+
timestamp: new Date().getTime()
|
44
|
+
});
|
45
|
+
}
|
46
|
+
|
47
|
+
if(!activeTimeout){
|
48
|
+
activeTimeout = setTimeout(logRejected, unhandledWait);
|
49
|
+
}
|
50
|
+
}
|
51
|
+
|
52
|
+
function logRejected(){
|
53
|
+
var now = new Date().getTime();
|
54
|
+
var reportBefore = now - unhandledWait;
|
55
|
+
errors = arrayUtil.filter(errors, function(obj){
|
56
|
+
if(obj.timestamp < reportBefore){
|
57
|
+
logError(obj.error, obj.rejection, obj.deferred);
|
58
|
+
return false;
|
59
|
+
}
|
60
|
+
return true;
|
61
|
+
});
|
62
|
+
|
63
|
+
if(errors.length){
|
64
|
+
activeTimeout = setTimeout(logRejected, errors[0].timestamp + unhandledWait - now);
|
65
|
+
}
|
66
|
+
}
|
67
|
+
|
68
|
+
return function(Deferred){
|
69
|
+
// summary:
|
70
|
+
// Initialize instrumentation for the Deferred class.
|
71
|
+
// description:
|
72
|
+
// Initialize instrumentation for the Deferred class.
|
73
|
+
// Done automatically by `dojo/Deferred` if the
|
74
|
+
// `deferredInstrumentation` and `useDeferredInstrumentation`
|
75
|
+
// config options are set.
|
76
|
+
//
|
77
|
+
// Sets up `dojo/promise/tracer` to log to the console.
|
78
|
+
//
|
79
|
+
// Sets up instrumentation of rejected deferreds so unhandled
|
80
|
+
// errors are logged to the console.
|
81
|
+
|
82
|
+
var usage = has("config-useDeferredInstrumentation");
|
83
|
+
if(usage){
|
84
|
+
tracer.on("resolved", lang.hitch(console, "log", "resolved"));
|
85
|
+
tracer.on("rejected", lang.hitch(console, "log", "rejected"));
|
86
|
+
tracer.on("progress", lang.hitch(console, "log", "progress"));
|
87
|
+
|
88
|
+
var args = [];
|
89
|
+
if(typeof usage === "string"){
|
90
|
+
args = usage.split(",");
|
91
|
+
usage = args.shift();
|
92
|
+
}
|
93
|
+
if(usage === "report-rejections"){
|
94
|
+
Deferred.instrumentRejected = reportRejections;
|
95
|
+
}else if(usage === "report-unhandled-rejections" || usage === true || usage === 1){
|
96
|
+
Deferred.instrumentRejected = trackUnhandledRejections;
|
97
|
+
unhandledWait = parseInt(args[0], 10) || unhandledWait;
|
98
|
+
}else{
|
99
|
+
throw new Error("Unsupported instrumentation usage <" + usage + ">");
|
100
|
+
}
|
101
|
+
}
|
102
|
+
};
|
103
|
+
});
|
@@ -0,0 +1,37 @@
|
|
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/promise/tracer",["../_base/lang","./Promise","../Evented"],function(_1,_2,_3){
|
9
|
+
"use strict";
|
10
|
+
var _4=new _3;
|
11
|
+
var _5=_4.emit;
|
12
|
+
_4.emit=null;
|
13
|
+
function _6(_7){
|
14
|
+
setTimeout(function(){
|
15
|
+
_5.apply(_4,_7);
|
16
|
+
},0);
|
17
|
+
};
|
18
|
+
_2.prototype.trace=function(){
|
19
|
+
var _8=_1._toArray(arguments);
|
20
|
+
this.then(function(_9){
|
21
|
+
_6(["resolved",_9].concat(_8));
|
22
|
+
},function(_a){
|
23
|
+
_6(["rejected",_a].concat(_8));
|
24
|
+
},function(_b){
|
25
|
+
_6(["progress",_b].concat(_8));
|
26
|
+
});
|
27
|
+
return this;
|
28
|
+
};
|
29
|
+
_2.prototype.traceRejected=function(){
|
30
|
+
var _c=_1._toArray(arguments);
|
31
|
+
this.otherwise(function(_d){
|
32
|
+
_6(["rejected",_d].concat(_c));
|
33
|
+
});
|
34
|
+
return this;
|
35
|
+
};
|
36
|
+
return _4;
|
37
|
+
});
|
@@ -0,0 +1,85 @@
|
|
1
|
+
define("dojo/promise/tracer", [
|
2
|
+
"../_base/lang",
|
3
|
+
"./Promise",
|
4
|
+
"../Evented"
|
5
|
+
], function(lang, Promise, Evented){
|
6
|
+
"use strict";
|
7
|
+
|
8
|
+
// module:
|
9
|
+
// dojo/promise/tracer
|
10
|
+
|
11
|
+
/*=====
|
12
|
+
return {
|
13
|
+
// summary:
|
14
|
+
// Trace promise fulfillment.
|
15
|
+
// description:
|
16
|
+
// Trace promise fulfillment. Calling `.trace()` or `.traceError()` on a
|
17
|
+
// promise enables tracing. Will emit `resolved`, `rejected` or `progress`
|
18
|
+
// events.
|
19
|
+
|
20
|
+
on: function(type, listener){
|
21
|
+
// summary:
|
22
|
+
// Subscribe to traces.
|
23
|
+
// description:
|
24
|
+
// See `dojo/Evented#on()`.
|
25
|
+
// type: String
|
26
|
+
// `resolved`, `rejected`, or `progress`
|
27
|
+
// listener: Function
|
28
|
+
// The listener is passed the traced value and any arguments
|
29
|
+
// that were used with the `.trace()` call.
|
30
|
+
}
|
31
|
+
};
|
32
|
+
=====*/
|
33
|
+
|
34
|
+
var evented = new Evented;
|
35
|
+
var emit = evented.emit;
|
36
|
+
evented.emit = null;
|
37
|
+
// Emit events asynchronously since they should not change the promise state.
|
38
|
+
function emitAsync(args){
|
39
|
+
setTimeout(function(){
|
40
|
+
emit.apply(evented, args);
|
41
|
+
}, 0);
|
42
|
+
}
|
43
|
+
|
44
|
+
Promise.prototype.trace = function(){
|
45
|
+
// summary:
|
46
|
+
// Trace the promise.
|
47
|
+
// description:
|
48
|
+
// Tracing allows you to transparently log progress,
|
49
|
+
// resolution and rejection of promises, without affecting the
|
50
|
+
// promise itself. Any arguments passed to `trace()` are
|
51
|
+
// emitted in trace events. See `dojo/promise/tracer` on how
|
52
|
+
// to handle traces.
|
53
|
+
// returns: dojo/promise/Promise
|
54
|
+
// The promise instance `trace()` is called on.
|
55
|
+
|
56
|
+
var args = lang._toArray(arguments);
|
57
|
+
this.then(
|
58
|
+
function(value){ emitAsync(["resolved", value].concat(args)); },
|
59
|
+
function(error){ emitAsync(["rejected", error].concat(args)); },
|
60
|
+
function(update){ emitAsync(["progress", update].concat(args)); }
|
61
|
+
);
|
62
|
+
return this;
|
63
|
+
};
|
64
|
+
|
65
|
+
Promise.prototype.traceRejected = function(){
|
66
|
+
// summary:
|
67
|
+
// Trace rejection of the promise.
|
68
|
+
// description:
|
69
|
+
// Tracing allows you to transparently log progress,
|
70
|
+
// resolution and rejection of promises, without affecting the
|
71
|
+
// promise itself. Any arguments passed to `trace()` are
|
72
|
+
// emitted in trace events. See `dojo/promise/tracer` on how
|
73
|
+
// to handle traces.
|
74
|
+
// returns: dojo/promise/Promise
|
75
|
+
// The promise instance `traceRejected()` is called on.
|
76
|
+
|
77
|
+
var args = lang._toArray(arguments);
|
78
|
+
this.otherwise(function(error){
|
79
|
+
emitAsync(["rejected", error].concat(args));
|
80
|
+
});
|
81
|
+
return this;
|
82
|
+
};
|
83
|
+
|
84
|
+
return evented;
|
85
|
+
});
|
@@ -111,8 +111,8 @@ return this._parent;
|
|
111
111
|
return new this._NodeListCtor(0);
|
112
112
|
}
|
113
113
|
},concat:function(_23){
|
114
|
-
var t=
|
115
|
-
return
|
114
|
+
var t=_8.call(this,0),m=_4.map(arguments,function(a){
|
115
|
+
return _8.call(a,0);
|
116
116
|
});
|
117
117
|
return this._wrap(_9.apply(t,m),this);
|
118
118
|
},map:function(_24,obj){
|
@@ -156,7 +156,7 @@ if(!_33){
|
|
156
156
|
return new _30([]);
|
157
157
|
}
|
158
158
|
}
|
159
|
-
var _34=typeof _32=="string"?_2f(_32,_33):_32.orphan?_32:[_32];
|
159
|
+
var _34=typeof _32=="string"?_2f(_32,_33):_32?_32.orphan?_32:[_32]:[];
|
160
160
|
if(_34.orphan){
|
161
161
|
return _34;
|
162
162
|
}
|
@@ -182,13 +182,13 @@ var _2a=_2e(_7,_16);
|
|
182
182
|
_1.query=_2e(_7,function(_3f){
|
183
183
|
return _16(_3f);
|
184
184
|
});
|
185
|
-
_2a.load=function(id,_40,_41
|
186
|
-
_6.load(id,_40,function(
|
187
|
-
_41(_2e(
|
185
|
+
_2a.load=function(id,_40,_41){
|
186
|
+
_6.load(id,_40,function(_42){
|
187
|
+
_41(_2e(_42,_16));
|
188
188
|
});
|
189
189
|
};
|
190
|
-
_1._filterQueryResult=_2a._filterResult=function(_44,_45
|
191
|
-
return new _16(_2a.filter(_44,_45
|
190
|
+
_1._filterQueryResult=_2a._filterResult=function(_43,_44,_45){
|
191
|
+
return new _16(_2a.filter(_43,_44,_45));
|
192
192
|
};
|
193
193
|
_1.NodeList=_2a.NodeList=_16;
|
194
194
|
return _2a;
|
@@ -1,6 +1,7 @@
|
|
1
1
|
define("dojo/query", ["./_base/kernel", "./has", "./dom", "./on", "./_base/array", "./_base/lang", "./selector/_loader", "./selector/_loader!default"],
|
2
2
|
function(dojo, has, dom, on, array, lang, loader, defaultEngine){
|
3
|
-
|
3
|
+
|
4
|
+
"use strict";
|
4
5
|
|
5
6
|
has.add("array-extensible", function(){
|
6
7
|
// test to see if we can extend an array (not supported in old IE)
|
@@ -9,9 +10,9 @@ define("dojo/query", ["./_base/kernel", "./has", "./dom", "./on", "./_base/array
|
|
9
10
|
|
10
11
|
var ap = Array.prototype, aps = ap.slice, apc = ap.concat, forEach = array.forEach;
|
11
12
|
|
12
|
-
var tnl = function(/*Array*/ a, /*dojo
|
13
|
+
var tnl = function(/*Array*/ a, /*dojo/NodeList?*/ parent, /*Function?*/ NodeListCtor){
|
13
14
|
// summary:
|
14
|
-
// decorate an array to make it look like a `dojo
|
15
|
+
// decorate an array to make it look like a `dojo/NodeList`.
|
15
16
|
// a:
|
16
17
|
// Array of nodes to decorate.
|
17
18
|
// parent:
|
@@ -21,7 +22,7 @@ define("dojo/query", ["./_base/kernel", "./has", "./dom", "./on", "./_base/array
|
|
21
22
|
// NodeListCtor:
|
22
23
|
// An optional constructor function to use for any
|
23
24
|
// new NodeList calls. This allows a certain chain of
|
24
|
-
// NodeList calls to use a different object than dojo
|
25
|
+
// NodeList calls to use a different object than dojo/NodeList.
|
25
26
|
var nodeList = new (NodeListCtor || this._NodeListCtor || nl)(a);
|
26
27
|
return parent ? nodeList._stash(parent) : nodeList;
|
27
28
|
};
|
@@ -99,12 +100,12 @@ define("dojo/query", ["./_base/kernel", "./has", "./dom", "./on", "./_base/array
|
|
99
100
|
|
100
101
|
var NodeList = function(array){
|
101
102
|
// summary:
|
102
|
-
//
|
103
|
+
// Array-like object which adds syntactic
|
103
104
|
// sugar for chaining, common iteration operations, animation, and
|
104
105
|
// node manipulation. NodeLists are most often returned as the
|
105
106
|
// result of dojo.query() calls.
|
106
107
|
// description:
|
107
|
-
//
|
108
|
+
// NodeList instances provide many utilities that reflect
|
108
109
|
// core Dojo APIs for Array iteration and manipulation, DOM
|
109
110
|
// manipulation, and event handling. Instead of needing to dig up
|
110
111
|
// functions in the dojo.* namespace, NodeLists generally make the
|
@@ -112,7 +113,7 @@ define("dojo/query", ["./_base/kernel", "./has", "./dom", "./on", "./_base/array
|
|
112
113
|
// simple, chainable way.
|
113
114
|
// example:
|
114
115
|
// create a node list from a node
|
115
|
-
// | new
|
116
|
+
// | new query.NodeList(dojo.byId("foo"));
|
116
117
|
// example:
|
117
118
|
// get a NodeList from a CSS query and iterate on it
|
118
119
|
// | var l = dojo.query(".thinger");
|
@@ -149,8 +150,7 @@ define("dojo/query", ["./_base/kernel", "./has", "./dom", "./on", "./_base/array
|
|
149
150
|
// | // even getting the coordinates of all the items
|
150
151
|
// | var coords = dojo.query(".thinger").coords();
|
151
152
|
// example:
|
152
|
-
// DOM manipulation functions from the dojo.* namespace area also
|
153
|
-
// available:
|
153
|
+
// DOM manipulation functions from the dojo.* namespace area also available:
|
154
154
|
// | // remove all of the elements in the list from their
|
155
155
|
// | // parents (akin to "deleting" them from the document)
|
156
156
|
// | dojo.query(".thinger").orphan();
|
@@ -235,7 +235,6 @@ define("dojo/query", ["./_base/kernel", "./has", "./dom", "./on", "./_base/array
|
|
235
235
|
nlp[name] = function(){ return f.apply(dojo, [this].concat(aps.call(arguments, 0))); };
|
236
236
|
});
|
237
237
|
|
238
|
-
/*===== var NodeList = dojo.NodeList; =====*/
|
239
238
|
lang.extend(NodeList, {
|
240
239
|
// copy the constructors
|
241
240
|
constructor: nl,
|
@@ -249,11 +248,11 @@ define("dojo/query", ["./_base/kernel", "./has", "./dom", "./on", "./_base/array
|
|
249
248
|
// private function to hold to a parent NodeList. end() to return the parent NodeList.
|
250
249
|
//
|
251
250
|
// example:
|
252
|
-
//
|
253
|
-
//
|
254
|
-
// | dojo.extend(
|
251
|
+
// How to make a `dojo/NodeList` method that only returns the third node in
|
252
|
+
// the dojo/NodeList but allows access to the original NodeList by using this._stash:
|
253
|
+
// | dojo.extend(NodeList, {
|
255
254
|
// | third: function(){
|
256
|
-
// | var newNodeList =
|
255
|
+
// | var newNodeList = NodeList(this[2]);
|
257
256
|
// | return newNodeList._stash(this);
|
258
257
|
// | }
|
259
258
|
// | });
|
@@ -267,17 +266,17 @@ define("dojo/query", ["./_base/kernel", "./has", "./dom", "./on", "./_base/array
|
|
267
266
|
// |
|
268
267
|
//
|
269
268
|
this._parent = parent;
|
270
|
-
return this; //dojo
|
269
|
+
return this; // dojo/NodeList
|
271
270
|
},
|
272
271
|
|
273
272
|
on: function(eventName, listener){
|
274
273
|
// summary:
|
275
274
|
// Listen for events on the nodes in the NodeList. Basic usage is:
|
276
275
|
// | query(".my-class").on("click", listener);
|
277
|
-
//
|
276
|
+
// This supports event delegation by using selectors as the first argument with the event names as
|
278
277
|
// pseudo selectors. For example:
|
279
278
|
// | dojo.query("#my-list").on("li:click", listener);
|
280
|
-
// This will listen for click events within
|
279
|
+
// This will listen for click events within `<li>` elements that are inside the `#my-list` element.
|
281
280
|
// Because on supports CSS selector syntax, we can use comma-delimited events as well:
|
282
281
|
// | dojo.query("#my-list").on("li button:mouseover, li:click", listener);
|
283
282
|
var handles = this.map(function(node){
|
@@ -293,11 +292,11 @@ define("dojo/query", ["./_base/kernel", "./has", "./dom", "./on", "./_base/array
|
|
293
292
|
|
294
293
|
end: function(){
|
295
294
|
// summary:
|
296
|
-
// Ends use of the current `
|
297
|
-
// that generated the current
|
295
|
+
// Ends use of the current `NodeList` by returning the previous NodeList
|
296
|
+
// that generated the current NodeList.
|
298
297
|
// description:
|
299
|
-
// Returns the `
|
300
|
-
// is no parent
|
298
|
+
// Returns the `NodeList` that generated the current `NodeList`. If there
|
299
|
+
// is no parent NodeList, an empty NodeList is returned.
|
301
300
|
// example:
|
302
301
|
// | dojo.query("a")
|
303
302
|
// | .filter(".disabled")
|
@@ -332,9 +331,9 @@ define("dojo/query", ["./_base/kernel", "./has", "./dom", "./on", "./_base/array
|
|
332
331
|
// Returns a new NodeList, maintaining this one in place
|
333
332
|
// description:
|
334
333
|
// This method behaves exactly like the Array.slice method
|
335
|
-
// with the caveat that it returns a dojo
|
336
|
-
// raw Array. For more details, see Mozilla's
|
337
|
-
// documentation
|
334
|
+
// with the caveat that it returns a dojo/NodeList and not a
|
335
|
+
// raw Array. For more details, see Mozilla's [slice
|
336
|
+
// documentation](https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/slice)
|
338
337
|
// begin: Integer
|
339
338
|
// Can be a positive or negative integer, with positive
|
340
339
|
// integers noting the offset to begin at, and negative
|
@@ -354,9 +353,9 @@ define("dojo/query", ["./_base/kernel", "./has", "./dom", "./on", "./_base/array
|
|
354
353
|
// at an offset, optionally deleting elements
|
355
354
|
// description:
|
356
355
|
// This method behaves exactly like the Array.splice method
|
357
|
-
// with the caveat that it returns a dojo
|
358
|
-
// raw Array. For more details, see Mozilla's
|
359
|
-
// documentation
|
356
|
+
// with the caveat that it returns a dojo/NodeList and not a
|
357
|
+
// raw Array. For more details, see Mozilla's [splice
|
358
|
+
// documentation](https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/splice)
|
360
359
|
// For backwards compatibility, calling .end() on the spliced NodeList
|
361
360
|
// does not return the original NodeList -- splice alters the NodeList in place.
|
362
361
|
// index: Integer
|
@@ -371,23 +370,21 @@ define("dojo/query", ["./_base/kernel", "./has", "./dom", "./on", "./_base/array
|
|
371
370
|
// item: Object...?
|
372
371
|
// Any number of optional parameters may be passed in to be
|
373
372
|
// spliced into the NodeList
|
374
|
-
//
|
375
|
-
// dojo.NodeList
|
376
|
-
return this._wrap(a.splice.apply(this, arguments));
|
373
|
+
return this._wrap(a.splice.apply(this, arguments)); // dojo/NodeList
|
377
374
|
},
|
378
375
|
|
379
376
|
indexOf: function(value, fromIndex){
|
380
377
|
// summary:
|
381
378
|
// see dojo.indexOf(). The primary difference is that the acted-on
|
382
379
|
// array is implicitly this NodeList
|
383
|
-
// value: Object
|
380
|
+
// value: Object
|
384
381
|
// The value to search for.
|
385
|
-
// fromIndex: Integer
|
382
|
+
// fromIndex: Integer?
|
386
383
|
// The location to start searching from. Optional. Defaults to 0.
|
387
384
|
// description:
|
388
385
|
// For more details on the behavior of indexOf, see Mozilla's
|
389
|
-
//
|
390
|
-
// docs
|
386
|
+
// [indexOf
|
387
|
+
// docs](https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/indexOf)
|
391
388
|
// returns:
|
392
389
|
// Positive Integer or 0 for a match, -1 of not found.
|
393
390
|
return d.indexOf(this, value, fromIndex); // Integer
|
@@ -399,8 +396,8 @@ define("dojo/query", ["./_base/kernel", "./has", "./dom", "./on", "./_base/array
|
|
399
396
|
// acted-on array is implicitly this NodeList
|
400
397
|
// description:
|
401
398
|
// For more details on the behavior of lastIndexOf, see
|
402
|
-
// Mozilla's
|
403
|
-
// docs
|
399
|
+
// Mozilla's [lastIndexOf
|
400
|
+
// docs](https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/lastIndexOf)
|
404
401
|
// value: Object
|
405
402
|
// The value to search for.
|
406
403
|
// fromIndex: Integer?
|
@@ -412,13 +409,15 @@ define("dojo/query", ["./_base/kernel", "./has", "./dom", "./on", "./_base/array
|
|
412
409
|
|
413
410
|
every: function(callback, thisObject){
|
414
411
|
// summary:
|
415
|
-
// see `dojo.every()` and the
|
416
|
-
// docs
|
412
|
+
// see `dojo.every()` and the [Array.every
|
413
|
+
// docs](https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/every).
|
417
414
|
// Takes the same structure of arguments and returns as
|
418
415
|
// dojo.every() with the caveat that the passed array is
|
419
416
|
// implicitly this NodeList
|
420
|
-
// callback: Function
|
421
|
-
//
|
417
|
+
// callback: Function
|
418
|
+
// the callback
|
419
|
+
// thisObject: Object?
|
420
|
+
// the context
|
422
421
|
return d.every(this, callback, thisObject); // Boolean
|
423
422
|
},
|
424
423
|
|
@@ -427,10 +426,12 @@ define("dojo/query", ["./_base/kernel", "./has", "./dom", "./on", "./_base/array
|
|
427
426
|
// Takes the same structure of arguments and returns as
|
428
427
|
// `dojo.some()` with the caveat that the passed array is
|
429
428
|
// implicitly this NodeList. See `dojo.some()` and Mozilla's
|
430
|
-
//
|
431
|
-
// documentation
|
432
|
-
// callback: Function
|
433
|
-
//
|
429
|
+
// [Array.some
|
430
|
+
// documentation](https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/some).
|
431
|
+
// callback: Function
|
432
|
+
// the callback
|
433
|
+
// thisObject: Object?
|
434
|
+
// the context
|
434
435
|
return d.some(this, callback, thisObject); // Boolean
|
435
436
|
},
|
436
437
|
=====*/
|
@@ -441,43 +442,36 @@ define("dojo/query", ["./_base/kernel", "./has", "./dom", "./on", "./_base/array
|
|
441
442
|
// as well as items passed in as parameters
|
442
443
|
// description:
|
443
444
|
// This method behaves exactly like the Array.concat method
|
444
|
-
// with the caveat that it returns a `
|
445
|
-
// raw Array. For more details, see the
|
446
|
-
// docs
|
445
|
+
// with the caveat that it returns a `NodeList` and not a
|
446
|
+
// raw Array. For more details, see the [Array.concat
|
447
|
+
// docs](https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/concat)
|
447
448
|
// item: Object?
|
448
449
|
// Any number of optional parameters may be passed in to be
|
449
450
|
// spliced into the NodeList
|
450
|
-
// returns:
|
451
|
-
// dojo.NodeList
|
452
451
|
|
453
452
|
//return this._wrap(apc.apply(this, arguments));
|
454
|
-
// the line above won't work for the native NodeList :-(
|
453
|
+
// the line above won't work for the native NodeList, or for Dojo NodeLists either :-(
|
455
454
|
|
456
455
|
// implementation notes:
|
457
|
-
//
|
458
|
-
//
|
459
|
-
//
|
460
|
-
//
|
461
|
-
//
|
462
|
-
|
463
|
-
|
464
|
-
|
465
|
-
var t = lang.isArray(this) ? this : aps.call(this, 0),
|
456
|
+
// Array.concat() doesn't recognize native NodeLists or Dojo NodeLists
|
457
|
+
// as arrays, and so does not inline them into a unioned array, but
|
458
|
+
// appends them as single entities. Both the original NodeList and the
|
459
|
+
// items passed in as parameters must be converted to raw Arrays
|
460
|
+
// and then the concatenation result may be re-_wrap()ed as a Dojo NodeList.
|
461
|
+
|
462
|
+
var t = aps.call(this, 0),
|
466
463
|
m = array.map(arguments, function(a){
|
467
|
-
return
|
468
|
-
(typeof NodeList != "undefined" && a.constructor === NodeList || a.constructor === this._NodeListCtor) ?
|
469
|
-
aps.call(a, 0) : a;
|
464
|
+
return aps.call(a, 0);
|
470
465
|
});
|
471
|
-
return this._wrap(apc.apply(t, m), this); // dojo
|
466
|
+
return this._wrap(apc.apply(t, m), this); // dojo/NodeList
|
472
467
|
},
|
473
468
|
|
474
469
|
map: function(/*Function*/ func, /*Function?*/ obj){
|
475
470
|
// summary:
|
476
471
|
// see dojo.map(). The primary difference is that the acted-on
|
477
472
|
// array is implicitly this NodeList and the return is a
|
478
|
-
//
|
479
|
-
|
480
|
-
return this._wrap(array.map(this, func, obj), this); // dojo.NodeList
|
473
|
+
// NodeList (a subclass of Array)
|
474
|
+
return this._wrap(array.map(this, func, obj), this); // dojo/NodeList
|
481
475
|
},
|
482
476
|
|
483
477
|
forEach: function(callback, thisObj){
|
@@ -487,7 +481,7 @@ define("dojo/query", ["./_base/kernel", "./has", "./dom", "./on", "./_base/array
|
|
487
481
|
// of the forEach loop, use every() or some() instead.
|
488
482
|
forEach(this, callback, thisObj);
|
489
483
|
// non-standard return to allow easier chaining
|
490
|
-
return this; // dojo
|
484
|
+
return this; // dojo/NodeList
|
491
485
|
},
|
492
486
|
filter: function(/*String|Function*/ filter){
|
493
487
|
// summary:
|
@@ -512,26 +506,26 @@ define("dojo/query", ["./_base/kernel", "./has", "./dom", "./on", "./_base/array
|
|
512
506
|
items = query._filterResult(this, a[0]);
|
513
507
|
if(a.length == 1){
|
514
508
|
// if we only got a string query, pass back the filtered results
|
515
|
-
return items._stash(this); // dojo
|
509
|
+
return items._stash(this); // dojo/NodeList
|
516
510
|
}
|
517
511
|
// if we got a callback, run it over the filtered items
|
518
512
|
start = 1;
|
519
513
|
}
|
520
|
-
return this._wrap(array.filter(items, a[start], a[start + 1]), this); // dojo
|
514
|
+
return this._wrap(array.filter(items, a[start], a[start + 1]), this); // dojo/NodeList
|
521
515
|
},
|
522
516
|
instantiate: function(/*String|Object*/ declaredClass, /*Object?*/ properties){
|
523
517
|
// summary:
|
524
518
|
// Create a new instance of a specified class, using the
|
525
|
-
// specified properties and each node in the
|
519
|
+
// specified properties and each node in the NodeList as a
|
526
520
|
// srcNodeRef.
|
527
521
|
// example:
|
528
|
-
// Grabs all buttons in the page and converts them to
|
529
|
-
// | var buttons =
|
522
|
+
// Grabs all buttons in the page and converts them to dijit/form/Button's.
|
523
|
+
// | var buttons = query("button").instantiate(Button, {showLabel: true});
|
530
524
|
var c = lang.isFunction(declaredClass) ? declaredClass : lang.getObject(declaredClass);
|
531
525
|
properties = properties || {};
|
532
526
|
return this.forEach(function(node){
|
533
527
|
new c(properties, node);
|
534
|
-
}); // dojo
|
528
|
+
}); // dojo/NodeList
|
535
529
|
},
|
536
530
|
at: function(/*===== index =====*/){
|
537
531
|
// summary:
|
@@ -545,169 +539,167 @@ define("dojo/query", ["./_base/kernel", "./has", "./dom", "./on", "./_base/array
|
|
545
539
|
//
|
546
540
|
// example:
|
547
541
|
// Shorten the list to the first, second, and third elements
|
548
|
-
// |
|
542
|
+
// | query("a").at(0, 1, 2).forEach(fn);
|
549
543
|
//
|
550
544
|
// example:
|
551
545
|
// Retrieve the first and last elements of a unordered list:
|
552
|
-
// |
|
546
|
+
// | query("ul > li").at(0, -1).forEach(cb);
|
553
547
|
//
|
554
548
|
// example:
|
555
549
|
// Do something for the first element only, but end() out back to
|
556
550
|
// the original list and continue chaining:
|
557
|
-
// |
|
551
|
+
// | query("a").at(0).onclick(fn).end().forEach(function(n){
|
558
552
|
// | console.log(n); // all anchors on the page.
|
559
553
|
// | })
|
560
|
-
|
561
|
-
// returns:
|
562
|
-
// dojo.NodeList
|
554
|
+
|
563
555
|
var t = new this._NodeListCtor(0);
|
564
556
|
forEach(arguments, function(i){
|
565
557
|
if(i < 0){ i = this.length + i; }
|
566
558
|
if(this[i]){ t.push(this[i]); }
|
567
559
|
}, this);
|
568
|
-
return t._stash(this); // dojo
|
560
|
+
return t._stash(this); // dojo/NodeList
|
569
561
|
}
|
570
562
|
});
|
571
563
|
|
572
|
-
|
573
|
-
|
574
|
-
|
575
|
-
|
576
|
-
|
577
|
-
|
578
|
-
|
579
|
-
|
580
|
-
|
581
|
-
|
582
|
-
|
583
|
-
// An optional context to limit the searching scope. Only nodes under `context` will be
|
584
|
-
// scanned.
|
585
|
-
//
|
586
|
-
// example:
|
587
|
-
// add an onclick handler to every submit button in the document
|
588
|
-
// which causes the form to be sent via Ajax instead:
|
589
|
-
// | define(["dojo/query"], function(query){
|
590
|
-
// | query("input[type='submit']").on("click", function(e){
|
591
|
-
// | dojo.stopEvent(e); // prevent sending the form
|
592
|
-
// | var btn = e.target;
|
593
|
-
// | dojo.xhrPost({
|
594
|
-
// | form: btn.form,
|
595
|
-
// | load: function(data){
|
596
|
-
// | // replace the form with the response
|
597
|
-
// | var div = dojo.doc.createElement("div");
|
598
|
-
// | dojo.place(div, btn.form, "after");
|
599
|
-
// | div.innerHTML = data;
|
600
|
-
// | dojo.style(btn.form, "display", "none");
|
601
|
-
// | }
|
602
|
-
// | });
|
603
|
-
// | });
|
604
|
-
//
|
605
|
-
// description:
|
606
|
-
// dojo/query is responsible for loading the appropriate query engine and wrapping
|
607
|
-
// its results with a `dojo.NodeList`. You can use dojo/query with a specific selector engine
|
608
|
-
// by using it as a plugin. For example, if you installed the sizzle package, you could
|
609
|
-
// use it as the selector engine with:
|
610
|
-
// | define("dojo/query!sizzle", function(query){
|
611
|
-
// | query("div")...
|
612
|
-
//
|
613
|
-
// The id after the ! can be a module id of the selector engine or one of the following values:
|
614
|
-
// | + acme: This is the default engine used by Dojo base, and will ensure that the full
|
615
|
-
// | Acme engine is always loaded.
|
616
|
-
// |
|
617
|
-
// | + css2: If the browser has a native selector engine, this will be used, otherwise a
|
618
|
-
// | very minimal lightweight selector engine will be loaded that can do simple CSS2 selectors
|
619
|
-
// | (by #id, .class, tag, and [name=value] attributes, with standard child or descendant (>)
|
620
|
-
// | operators) and nothing more.
|
621
|
-
// |
|
622
|
-
// | + css2.1: If the browser has a native selector engine, this will be used, otherwise the
|
623
|
-
// | full Acme engine will be loaded.
|
624
|
-
// |
|
625
|
-
// | + css3: If the browser has a native selector engine with support for CSS3 pseudo
|
626
|
-
// | selectors (most modern browsers except IE8), this will be used, otherwise the
|
627
|
-
// | full Acme engine will be loaded.
|
628
|
-
// |
|
629
|
-
// | + Or the module id of a selector engine can be used to explicitly choose the selector engine
|
630
|
-
//
|
631
|
-
// For example, if you are using CSS3 pseudo selectors in module, you can specify that
|
632
|
-
// you will need support them with:
|
633
|
-
// | define("dojo/query!css3", function(query){
|
634
|
-
// | query('#t > h3:nth-child(odd)')...
|
635
|
-
//
|
636
|
-
// You can also choose the selector engine/load configuration by setting the <FIXME:what is the configuration setting?>.
|
637
|
-
// For example:
|
638
|
-
// | <script data-dojo-config="query-selector:'css3'" src="dojo.js"></script>
|
639
|
-
//
|
640
|
-
return new dojo.NodeList(); // dojo.NodeList
|
641
|
-
};
|
642
|
-
=====*/
|
643
|
-
|
644
|
-
function queryForEngine(engine, NodeList){
|
645
|
-
var query = function(/*String*/ query, /*String|DOMNode?*/ root){
|
646
|
-
// summary:
|
647
|
-
// Returns nodes which match the given CSS selector, searching the
|
648
|
-
// entire document by default but optionally taking a node to scope
|
649
|
-
// the search by. Returns an instance of dojo.NodeList.
|
650
|
-
if(typeof root == "string"){
|
651
|
-
root = dom.byId(root);
|
652
|
-
if(!root){
|
653
|
-
return new NodeList([]);
|
564
|
+
function queryForEngine(engine, NodeList){
|
565
|
+
var query = function(/*String*/ query, /*String|DOMNode?*/ root){
|
566
|
+
// summary:
|
567
|
+
// Returns nodes which match the given CSS selector, searching the
|
568
|
+
// entire document by default but optionally taking a node to scope
|
569
|
+
// the search by. Returns an instance of NodeList.
|
570
|
+
if(typeof root == "string"){
|
571
|
+
root = dom.byId(root);
|
572
|
+
if(!root){
|
573
|
+
return new NodeList([]);
|
574
|
+
}
|
654
575
|
}
|
576
|
+
var results = typeof query == "string" ? engine(query, root) : query ? query.orphan ? query : [query] : [];
|
577
|
+
if(results.orphan){
|
578
|
+
// already wrapped
|
579
|
+
return results;
|
580
|
+
}
|
581
|
+
return new NodeList(results);
|
582
|
+
};
|
583
|
+
query.matches = engine.match || function(node, selector, root){
|
584
|
+
// summary:
|
585
|
+
// Test to see if a node matches a selector
|
586
|
+
return query.filter([node], selector, root).length > 0;
|
587
|
+
};
|
588
|
+
// the engine provides a filtering function, use it to for matching
|
589
|
+
query.filter = engine.filter || function(nodes, selector, root){
|
590
|
+
// summary:
|
591
|
+
// Filters an array of nodes. Note that this does not guarantee to return a NodeList, just an array.
|
592
|
+
return query(selector, root).filter(function(node){
|
593
|
+
return array.indexOf(nodes, node) > -1;
|
594
|
+
});
|
595
|
+
};
|
596
|
+
if(typeof engine != "function"){
|
597
|
+
var search = engine.search;
|
598
|
+
engine = function(selector, root){
|
599
|
+
// Slick does it backwards (or everyone else does it backwards, probably the latter)
|
600
|
+
return search(root || document, selector);
|
601
|
+
};
|
655
602
|
}
|
656
|
-
|
657
|
-
|
658
|
-
|
659
|
-
|
660
|
-
|
661
|
-
return new NodeList(results);
|
662
|
-
};
|
663
|
-
query.matches = engine.match || function(node, selector, root){
|
603
|
+
return query;
|
604
|
+
}
|
605
|
+
var query = queryForEngine(defaultEngine, NodeList);
|
606
|
+
/*=====
|
607
|
+
query = function(selector, context){
|
664
608
|
// summary:
|
665
|
-
//
|
666
|
-
|
667
|
-
|
668
|
-
|
669
|
-
|
609
|
+
// This modules provides DOM querying functionality. The module export is a function
|
610
|
+
// that can be used to query for DOM nodes by CSS selector and returns a NodeList
|
611
|
+
// representing the matching nodes.
|
612
|
+
// selector: String
|
613
|
+
// A CSS selector to search for.
|
614
|
+
// context: String|DomNode?
|
615
|
+
// An optional context to limit the searching scope. Only nodes under `context` will be
|
616
|
+
// scanned.
|
617
|
+
// example:
|
618
|
+
// add an onclick handler to every submit button in the document
|
619
|
+
// which causes the form to be sent via Ajax instead:
|
620
|
+
// | require(["dojo/query"], function(query){
|
621
|
+
// | query("input[type='submit']").on("click", function(e){
|
622
|
+
// | dojo.stopEvent(e); // prevent sending the form
|
623
|
+
// | var btn = e.target;
|
624
|
+
// | dojo.xhrPost({
|
625
|
+
// | form: btn.form,
|
626
|
+
// | load: function(data){
|
627
|
+
// | // replace the form with the response
|
628
|
+
// | var div = dojo.doc.createElement("div");
|
629
|
+
// | dojo.place(div, btn.form, "after");
|
630
|
+
// | div.innerHTML = data;
|
631
|
+
// | dojo.style(btn.form, "display", "none");
|
632
|
+
// | }
|
633
|
+
// | });
|
634
|
+
// | });
|
635
|
+
// | });
|
636
|
+
//
|
637
|
+
// description:
|
638
|
+
// dojo/query is responsible for loading the appropriate query engine and wrapping
|
639
|
+
// its results with a `NodeList`. You can use dojo/query with a specific selector engine
|
640
|
+
// by using it as a plugin. For example, if you installed the sizzle package, you could
|
641
|
+
// use it as the selector engine with:
|
642
|
+
// | require(["dojo/query!sizzle"], function(query){
|
643
|
+
// | query("div")...
|
644
|
+
//
|
645
|
+
// The id after the ! can be a module id of the selector engine or one of the following values:
|
646
|
+
//
|
647
|
+
// - acme: This is the default engine used by Dojo base, and will ensure that the full
|
648
|
+
// Acme engine is always loaded.
|
649
|
+
//
|
650
|
+
// - css2: If the browser has a native selector engine, this will be used, otherwise a
|
651
|
+
// very minimal lightweight selector engine will be loaded that can do simple CSS2 selectors
|
652
|
+
// (by #id, .class, tag, and [name=value] attributes, with standard child or descendant (>)
|
653
|
+
// operators) and nothing more.
|
654
|
+
//
|
655
|
+
// - css2.1: If the browser has a native selector engine, this will be used, otherwise the
|
656
|
+
// full Acme engine will be loaded.
|
657
|
+
//
|
658
|
+
// - css3: If the browser has a native selector engine with support for CSS3 pseudo
|
659
|
+
// selectors (most modern browsers except IE8), this will be used, otherwise the
|
660
|
+
// full Acme engine will be loaded.
|
661
|
+
//
|
662
|
+
// - Or the module id of a selector engine can be used to explicitly choose the selector engine
|
663
|
+
//
|
664
|
+
// For example, if you are using CSS3 pseudo selectors in module, you can specify that
|
665
|
+
// you will need support them with:
|
666
|
+
// | require(["dojo/query!css3"], function(query){
|
667
|
+
// | query('#t > h3:nth-child(odd)')...
|
668
|
+
//
|
669
|
+
// You can also choose the selector engine/load configuration by setting the query-selector:
|
670
|
+
// For example:
|
671
|
+
// | <script data-dojo-config="query-selector:'css3'" src="dojo.js"></script>
|
672
|
+
//
|
673
|
+
return new NodeList(); // dojo/NodeList
|
674
|
+
};
|
675
|
+
=====*/
|
676
|
+
|
677
|
+
// the query that is returned from this module is slightly different than dojo.query,
|
678
|
+
// because dojo.query has to maintain backwards compatibility with returning a
|
679
|
+
// true array which has performance problems. The query returned from the module
|
680
|
+
// does not use true arrays, but rather inherits from Array, making it much faster to
|
681
|
+
// instantiate.
|
682
|
+
dojo.query = queryForEngine(defaultEngine, function(array){
|
683
|
+
// call it without the new operator to invoke the back-compat behavior that returns a true array
|
684
|
+
return NodeList(array); // dojo/NodeList
|
685
|
+
});
|
686
|
+
|
687
|
+
query.load = function(id, parentRequire, loaded){
|
670
688
|
// summary:
|
671
|
-
//
|
672
|
-
|
673
|
-
|
689
|
+
// can be used as AMD plugin to conditionally load new query engine
|
690
|
+
// example:
|
691
|
+
// | require(["dojo/query!custom"], function(qsa){
|
692
|
+
// | // loaded selector/custom.js as engine
|
693
|
+
// | qsa("#foobar").forEach(...);
|
694
|
+
// | });
|
695
|
+
loader.load(id, parentRequire, function(engine){
|
696
|
+
loaded(queryForEngine(engine, NodeList));
|
674
697
|
});
|
675
698
|
};
|
676
|
-
if(typeof engine != "function"){
|
677
|
-
var search = engine.search;
|
678
|
-
engine = function(selector, root){
|
679
|
-
// Slick does it backwards (or everyone else does it backwards, probably the latter)
|
680
|
-
return search(root || document, selector);
|
681
|
-
};
|
682
|
-
}
|
683
|
-
return query;
|
684
|
-
}
|
685
|
-
var query = queryForEngine(defaultEngine, NodeList);
|
686
|
-
// the query that is returned from this module is slightly different than dojo.query,
|
687
|
-
// because dojo.query has to maintain backwards compatibility with returning a
|
688
|
-
// true array which has performance problems. The query returned from the module
|
689
|
-
// does not use true arrays, but rather inherits from Array, making it much faster to
|
690
|
-
// instantiate.
|
691
|
-
dojo.query = queryForEngine(defaultEngine, function(array){
|
692
|
-
// call it without the new operator to invoke the back-compat behavior that returns a true array
|
693
|
-
return NodeList(array);
|
694
|
-
});
|
695
699
|
|
696
|
-
|
697
|
-
|
698
|
-
|
699
|
-
|
700
|
-
|
701
|
-
// | qsa("#foobar").forEach(...);
|
702
|
-
// | });
|
703
|
-
loader.load(id, parentRequire, function(engine){
|
704
|
-
loaded(queryForEngine(engine, NodeList));
|
705
|
-
});
|
706
|
-
};
|
707
|
-
|
708
|
-
dojo._filterQueryResult = query._filterResult = function(nodes, selector, root){
|
709
|
-
return new NodeList(query.filter(nodes, selector, root));
|
710
|
-
};
|
711
|
-
dojo.NodeList = query.NodeList = NodeList;
|
712
|
-
return query;
|
700
|
+
dojo._filterQueryResult = query._filterResult = function(nodes, selector, root){
|
701
|
+
return new NodeList(query.filter(nodes, selector, root));
|
702
|
+
};
|
703
|
+
dojo.NodeList = query.NodeList = NodeList;
|
704
|
+
return query;
|
713
705
|
});
|