columbus3 0.4.0 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (344) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +1 -1
  3. data/README.md +122 -0
  4. data/bin/console +0 -0
  5. data/bin/setup +0 -0
  6. data/bower.json +25 -0
  7. data/bower_components/jquery/.bower.json +7 -20
  8. data/bower_components/jquery/AUTHORS.txt +301 -0
  9. data/bower_components/jquery/{MIT-LICENSE.txt → LICENSE.txt} +17 -2
  10. data/bower_components/jquery/README.md +67 -0
  11. data/bower_components/jquery/bower.json +2 -16
  12. data/bower_components/jquery/dist/core.js +476 -0
  13. data/bower_components/jquery/dist/jquery.js +3861 -2818
  14. data/bower_components/jquery/dist/jquery.min.js +4 -5
  15. data/bower_components/jquery/dist/jquery.min.map +1 -1
  16. data/bower_components/jquery/dist/jquery.slim.js +8160 -0
  17. data/bower_components/jquery/dist/jquery.slim.min.js +4 -0
  18. data/bower_components/jquery/dist/jquery.slim.min.map +1 -0
  19. data/bower_components/jquery/external/sizzle/LICENSE.txt +36 -0
  20. data/bower_components/jquery/{src → external}/sizzle/dist/sizzle.js +445 -240
  21. data/bower_components/jquery/external/sizzle/dist/sizzle.min.js +3 -0
  22. data/bower_components/jquery/external/sizzle/dist/sizzle.min.map +1 -0
  23. data/bower_components/jquery/src/.eslintrc.json +5 -0
  24. data/bower_components/jquery/src/ajax.js +174 -105
  25. data/bower_components/jquery/src/ajax/jsonp.js +27 -14
  26. data/bower_components/jquery/src/ajax/load.js +24 -23
  27. data/bower_components/jquery/src/ajax/parseXML.js +8 -6
  28. data/bower_components/jquery/src/ajax/script.js +25 -12
  29. data/bower_components/jquery/src/ajax/var/location.js +5 -0
  30. data/bower_components/jquery/src/ajax/var/nonce.js +4 -2
  31. data/bower_components/jquery/src/ajax/var/rquery.js +5 -3
  32. data/bower_components/jquery/src/ajax/xhr.js +76 -43
  33. data/bower_components/jquery/src/attributes.js +4 -2
  34. data/bower_components/jquery/src/attributes/attr.js +60 -60
  35. data/bower_components/jquery/src/attributes/classes.js +87 -71
  36. data/bower_components/jquery/src/attributes/prop.js +81 -32
  37. data/bower_components/jquery/src/attributes/support.js +11 -13
  38. data/bower_components/jquery/src/attributes/val.js +66 -37
  39. data/bower_components/jquery/src/callbacks.js +119 -90
  40. data/bower_components/jquery/src/core.js +108 -134
  41. data/bower_components/jquery/src/core/DOMEval.js +16 -0
  42. data/bower_components/jquery/src/core/access.js +21 -11
  43. data/bower_components/jquery/src/core/init.js +33 -28
  44. data/bower_components/jquery/src/core/nodeName.js +13 -0
  45. data/bower_components/jquery/src/core/parseHTML.js +39 -13
  46. data/bower_components/jquery/src/core/ready-no-deferred.js +96 -0
  47. data/bower_components/jquery/src/core/ready.js +40 -51
  48. data/bower_components/jquery/src/core/readyException.js +13 -0
  49. data/bower_components/jquery/src/core/stripAndCollapse.js +14 -0
  50. data/bower_components/jquery/src/core/support.js +20 -0
  51. data/bower_components/jquery/src/core/var/rsingleTag.js +5 -3
  52. data/bower_components/jquery/src/css.js +146 -158
  53. data/bower_components/jquery/src/css/addGetHookIf.js +7 -3
  54. data/bower_components/jquery/src/css/adjustCSS.js +71 -0
  55. data/bower_components/jquery/src/css/curCSS.js +22 -14
  56. data/bower_components/jquery/src/css/hiddenVisibleSelectors.js +8 -8
  57. data/bower_components/jquery/src/css/showHide.js +105 -0
  58. data/bower_components/jquery/src/css/support.js +69 -76
  59. data/bower_components/jquery/src/css/var/cssExpand.js +4 -2
  60. data/bower_components/jquery/src/css/var/getStyles.js +11 -6
  61. data/bower_components/jquery/src/css/var/isHiddenWithinTree.js +34 -0
  62. data/bower_components/jquery/src/css/var/rmargin.js +5 -3
  63. data/bower_components/jquery/src/css/var/rnumnonpx.js +4 -2
  64. data/bower_components/jquery/src/css/{swap.js → var/swap.js} +5 -7
  65. data/bower_components/jquery/src/data.js +67 -66
  66. data/bower_components/jquery/src/data/Data.js +87 -107
  67. data/bower_components/jquery/src/data/{accepts.js → var/acceptData.js} +6 -7
  68. data/bower_components/jquery/src/data/var/{data_priv.js → dataPriv.js} +4 -2
  69. data/bower_components/jquery/src/data/var/{data_user.js → dataUser.js} +4 -2
  70. data/bower_components/jquery/src/deferred.js +314 -72
  71. data/bower_components/jquery/src/deferred/exceptionHook.js +21 -0
  72. data/bower_components/jquery/src/deprecated.js +36 -9
  73. data/bower_components/jquery/src/dimensions.js +16 -10
  74. data/bower_components/jquery/src/effects.js +257 -206
  75. data/bower_components/jquery/src/effects/Tween.js +18 -9
  76. data/bower_components/jquery/src/effects/animatedSelector.js +7 -5
  77. data/bower_components/jquery/src/event.js +297 -419
  78. data/bower_components/jquery/src/event/ajax.js +13 -4
  79. data/bower_components/jquery/src/event/alias.js +13 -23
  80. data/bower_components/jquery/src/event/focusin.js +55 -0
  81. data/bower_components/jquery/src/event/support.js +5 -3
  82. data/bower_components/jquery/src/event/trigger.js +185 -0
  83. data/bower_components/jquery/src/exports/amd.js +5 -3
  84. data/bower_components/jquery/src/exports/global.js +8 -6
  85. data/bower_components/jquery/src/jquery.js +6 -2
  86. data/bower_components/jquery/src/manipulation.js +218 -310
  87. data/bower_components/jquery/src/manipulation/_evalUrl.js +9 -4
  88. data/bower_components/jquery/src/manipulation/buildFragment.js +104 -0
  89. data/bower_components/jquery/src/manipulation/getAll.js +32 -0
  90. data/bower_components/jquery/src/manipulation/setGlobalEval.js +22 -0
  91. data/bower_components/jquery/src/manipulation/support.js +11 -8
  92. data/bower_components/jquery/src/manipulation/var/rcheckableType.js +5 -3
  93. data/bower_components/jquery/src/manipulation/var/rscriptType.js +5 -0
  94. data/bower_components/jquery/src/manipulation/var/rtagName.js +5 -0
  95. data/bower_components/jquery/src/manipulation/wrapMap.js +29 -0
  96. data/bower_components/jquery/src/offset.js +75 -53
  97. data/bower_components/jquery/src/queue.js +26 -23
  98. data/bower_components/jquery/src/queue/delay.js +8 -6
  99. data/bower_components/jquery/src/selector-native.js +133 -68
  100. data/bower_components/jquery/src/selector-sizzle.js +10 -5
  101. data/bower_components/jquery/src/selector.js +3 -1
  102. data/bower_components/jquery/src/serialize.js +52 -33
  103. data/bower_components/jquery/src/traversing.js +61 -69
  104. data/bower_components/jquery/src/traversing/findFilter.js +37 -31
  105. data/bower_components/jquery/src/traversing/var/dir.js +22 -0
  106. data/bower_components/jquery/src/traversing/var/rneedsContext.js +4 -2
  107. data/bower_components/jquery/src/traversing/var/siblings.js +17 -0
  108. data/bower_components/jquery/src/var/ObjectFunctionString.js +7 -0
  109. data/bower_components/jquery/src/var/arr.js +4 -2
  110. data/bower_components/jquery/src/var/class2type.js +4 -2
  111. data/bower_components/jquery/src/var/concat.js +4 -2
  112. data/bower_components/jquery/src/var/document.js +5 -0
  113. data/bower_components/jquery/src/var/documentElement.js +7 -0
  114. data/bower_components/jquery/src/var/fnToString.js +7 -0
  115. data/bower_components/jquery/src/var/getProto.js +5 -0
  116. data/bower_components/jquery/src/var/hasOwn.js +4 -2
  117. data/bower_components/jquery/src/var/indexOf.js +4 -2
  118. data/bower_components/jquery/src/var/pnum.js +5 -3
  119. data/bower_components/jquery/src/var/push.js +4 -2
  120. data/bower_components/jquery/src/var/rcssNum.js +9 -0
  121. data/bower_components/jquery/src/var/rnothtmlwhite.js +8 -0
  122. data/bower_components/jquery/src/var/slice.js +4 -2
  123. data/bower_components/jquery/src/var/support.js +4 -2
  124. data/bower_components/jquery/src/var/toString.js +4 -2
  125. data/bower_components/jquery/src/wrap.js +24 -26
  126. data/bower_components/leaflet-providers/.bower.json +6 -7
  127. data/bower_components/leaflet-providers/CHANGELOG.md +62 -0
  128. data/bower_components/leaflet-providers/README.md +12 -3
  129. data/bower_components/leaflet-providers/bower.json +1 -1
  130. data/bower_components/leaflet-providers/leaflet-providers.js +133 -92
  131. data/bower_components/leaflet-providers/package.json +14 -7
  132. data/bower_components/leaflet/.bower.json +10 -14
  133. data/bower_components/leaflet/CHANGELOG.md +648 -3
  134. data/bower_components/leaflet/CONTRIBUTING.md +88 -33
  135. data/bower_components/leaflet/ISSUE_TEMPLATE.md +25 -0
  136. data/bower_components/leaflet/Jakefile.js +73 -14
  137. data/bower_components/leaflet/LICENSE +1 -1
  138. data/bower_components/leaflet/PLUGIN-GUIDE.md +97 -3
  139. data/bower_components/leaflet/README.md +6 -8
  140. data/bower_components/leaflet/bower.json +3 -9
  141. data/bower_components/leaflet/dist/images/layers-2x.png +0 -0
  142. data/bower_components/leaflet/dist/images/layers.png +0 -0
  143. data/bower_components/leaflet/dist/images/marker-icon-2x.png +0 -0
  144. data/bower_components/leaflet/dist/images/marker-icon.png +0 -0
  145. data/bower_components/leaflet/dist/images/marker-shadow.png +0 -0
  146. data/bower_components/leaflet/dist/leaflet-src.js +12301 -7898
  147. data/bower_components/leaflet/dist/leaflet-src.js.map +1 -0
  148. data/bower_components/leaflet/dist/leaflet.css +196 -43
  149. data/bower_components/leaflet/dist/leaflet.js +6 -9
  150. data/bower_components/leaflet/dist/leaflet.js.map +1 -0
  151. data/bower_components/leaflet/docs/CNAME +1 -0
  152. data/bower_components/leaflet/docs/Gemfile +4 -0
  153. data/bower_components/leaflet/docs/_config.yml +19 -0
  154. data/bower_components/leaflet/docs/_includes/frame.html +9 -0
  155. data/bower_components/leaflet/docs/_includes/tutorial_link.html +8 -0
  156. data/bower_components/leaflet/docs/_layouts/post.html +30 -0
  157. data/bower_components/leaflet/docs/_layouts/redirected.html +14 -0
  158. data/bower_components/leaflet/docs/_layouts/tutorial.html +9 -0
  159. data/bower_components/leaflet/docs/_layouts/tutorial_frame.html +32 -0
  160. data/bower_components/leaflet/docs/_layouts/tutorial_v2.html +9 -0
  161. data/bower_components/leaflet/docs/_layouts/v2.html +159 -0
  162. data/bower_components/leaflet/docs/_posts/2012-07-30-leaflet-0-4-released.md +240 -0
  163. data/bower_components/leaflet/docs/_posts/2012-08-07-leaflet-0-4-3-and-a-new-tutorial.md +47 -0
  164. data/bower_components/leaflet/docs/_posts/2012-08-20-guest-post-markerclusterer-0-1-released.md +112 -0
  165. data/bower_components/leaflet/docs/_posts/2012-10-25-leaflet-0-4-5-bugfix-release-and-plans-for-0.5.md +36 -0
  166. data/bower_components/leaflet/docs/_posts/2013-01-17-leaflet-0-5-released.md +24 -0
  167. data/bower_components/leaflet/docs/_posts/2013-02-20-guest-post-draw.md +146 -0
  168. data/bower_components/leaflet/docs/_posts/2013-06-26-leaflet-0-6-released-dc-code-sprint-mapbox.md +31 -0
  169. data/bower_components/leaflet/docs/_posts/2013-06-28-leaflet-plugin-authoring-guide.md +111 -0
  170. data/bower_components/leaflet/docs/_posts/2013-11-18-leaflet-0-7-released-plans-for-future.md +56 -0
  171. data/bower_components/leaflet/docs/_posts/2015-07-01-leaflet-is-alive-and-kicking.md +21 -0
  172. data/bower_components/leaflet/docs/_posts/2015-07-15-leaflet-1.0-beta1-released.md +60 -0
  173. data/bower_components/leaflet/docs/_posts/2015-09-01-leaflet-0.7.4-released.md +29 -0
  174. data/bower_components/leaflet/docs/_posts/2015-10-14-leaflet-1.0-beta2-released.md +35 -0
  175. data/bower_components/leaflet/docs/_posts/2016-03-20-debugging-touch-interactions.md +101 -0
  176. data/bower_components/leaflet/docs/_posts/2016-04-18-leaflet-1.0-rc1.md +78 -0
  177. data/bower_components/leaflet/docs/_posts/2016-07-16-leaflet-1.0-rc2.md +60 -0
  178. data/bower_components/leaflet/docs/_posts/2016-08-05-leaflet-1.0-rc3.md +53 -0
  179. data/bower_components/leaflet/docs/_posts/2016-09-27-leaflet-1.0-final.md +50 -0
  180. data/bower_components/leaflet/docs/_posts/2016-11-21-leaflet-1.0.2.md +25 -0
  181. data/bower_components/leaflet/docs/_posts/2017-01-23-leaflet-1.0.3.md +27 -0
  182. data/bower_components/leaflet/docs/atom.xml +29 -0
  183. data/bower_components/leaflet/docs/blog.md +24 -0
  184. data/bower_components/leaflet/docs/docs/css/main.css +1092 -0
  185. data/bower_components/leaflet/docs/docs/css/normalize.css +426 -0
  186. data/bower_components/leaflet/docs/docs/highlight/LICENSE +24 -0
  187. data/bower_components/leaflet/docs/docs/highlight/highlight.pack.js +1 -0
  188. data/bower_components/leaflet/docs/docs/highlight/styles/github-gist.css +211 -0
  189. data/bower_components/leaflet/docs/docs/images/2016-03-20-prosthetic-hand-zooming.gif +0 -0
  190. data/bower_components/leaflet/docs/docs/images/2016-04-18-inheritances.gif +0 -0
  191. data/bower_components/leaflet/docs/docs/images/2016-04-18-leaflet-toilet-paper.jpeg +0 -0
  192. data/bower_components/leaflet/docs/docs/images/2016-04-18-madrid-leaflet-864px.jpg +0 -0
  193. data/bower_components/leaflet/docs/docs/images/2016-07-18-remote-session.png +0 -0
  194. data/bower_components/leaflet/docs/docs/images/2016-07-18-tooltip.png +0 -0
  195. data/bower_components/leaflet/docs/docs/images/2016-08-03-iraq-hacking.jpg +0 -0
  196. data/bower_components/leaflet/docs/docs/images/favicon.ico +0 -0
  197. data/bower_components/leaflet/docs/docs/images/forum-round.png +0 -0
  198. data/bower_components/leaflet/docs/docs/images/github-round.png +0 -0
  199. data/bower_components/leaflet/docs/docs/images/logo.png +0 -0
  200. data/bower_components/leaflet/docs/docs/images/logos.png +0 -0
  201. data/bower_components/leaflet/docs/docs/images/sprite.png +0 -0
  202. data/bower_components/leaflet/docs/docs/images/sprite.svg +75 -0
  203. data/bower_components/leaflet/docs/docs/images/twitter-round.png +0 -0
  204. data/bower_components/leaflet/docs/docs/images/twitter.png +0 -0
  205. data/bower_components/leaflet/docs/docs/js/docs.js +52 -0
  206. data/bower_components/leaflet/docs/download.md +95 -0
  207. data/bower_components/leaflet/docs/examples.md +125 -0
  208. data/bower_components/leaflet/docs/examples/choropleth-example.md +5 -0
  209. data/bower_components/leaflet/docs/examples/choropleth.md +5 -0
  210. data/bower_components/leaflet/docs/examples/choropleth/example-basic.md +20 -0
  211. data/bower_components/leaflet/docs/examples/choropleth/example-color.md +46 -0
  212. data/bower_components/leaflet/docs/examples/choropleth/example.md +159 -0
  213. data/bower_components/leaflet/docs/examples/choropleth/index.md +232 -0
  214. data/bower_components/leaflet/docs/examples/choropleth/thumbnail.png +0 -0
  215. data/bower_components/leaflet/docs/examples/choropleth/us-states.js +54 -0
  216. data/bower_components/leaflet/docs/examples/crs-simple/crs-simple-example1.md +16 -0
  217. data/bower_components/leaflet/docs/examples/crs-simple/crs-simple-example2.md +20 -0
  218. data/bower_components/leaflet/docs/examples/crs-simple/crs-simple-example3.md +38 -0
  219. data/bower_components/leaflet/docs/examples/crs-simple/crs-simple.md +117 -0
  220. data/bower_components/leaflet/docs/examples/crs-simple/thumbnail.png +0 -0
  221. data/bower_components/leaflet/docs/examples/crs-simple/uqm_map_400px.png +0 -0
  222. data/bower_components/leaflet/docs/examples/crs-simple/uqm_map_detail.png +0 -0
  223. data/bower_components/leaflet/docs/examples/crs-simple/uqm_map_full.png +0 -0
  224. data/bower_components/leaflet/docs/examples/custom-icons-example.md +5 -0
  225. data/bower_components/leaflet/docs/examples/custom-icons.md +5 -0
  226. data/bower_components/leaflet/docs/examples/custom-icons/example-one-icon.md +27 -0
  227. data/bower_components/leaflet/docs/examples/custom-icons/example.md +31 -0
  228. data/bower_components/leaflet/docs/examples/custom-icons/index.md +79 -0
  229. data/bower_components/leaflet/docs/examples/custom-icons/leaf-green.png +0 -0
  230. data/bower_components/leaflet/docs/examples/custom-icons/leaf-orange.png +0 -0
  231. data/bower_components/leaflet/docs/examples/custom-icons/leaf-red.png +0 -0
  232. data/bower_components/leaflet/docs/examples/custom-icons/leaf-shadow.png +0 -0
  233. data/bower_components/leaflet/docs/examples/custom-icons/thumbnail.png +0 -0
  234. data/bower_components/leaflet/docs/examples/extending/canvascircles.md +37 -0
  235. data/bower_components/leaflet/docs/examples/extending/class-diagram.md +24 -0
  236. data/bower_components/leaflet/docs/examples/extending/class-diagram.png +0 -0
  237. data/bower_components/leaflet/docs/examples/extending/class-diagram.txt +100 -0
  238. data/bower_components/leaflet/docs/examples/extending/extending-1-classes.md +196 -0
  239. data/bower_components/leaflet/docs/examples/extending/extending-2-layers.md +210 -0
  240. data/bower_components/leaflet/docs/examples/extending/extending-3-controls.md +100 -0
  241. data/bower_components/leaflet/docs/examples/extending/gridcoords.md +32 -0
  242. data/bower_components/leaflet/docs/examples/extending/kittenlayer.md +29 -0
  243. data/bower_components/leaflet/docs/examples/extending/pixelorigin.md +90 -0
  244. data/bower_components/leaflet/docs/examples/extending/thumbnail-1.png +0 -0
  245. data/bower_components/leaflet/docs/examples/extending/thumbnail-2.png +0 -0
  246. data/bower_components/leaflet/docs/examples/extending/thumbnail-3.png +0 -0
  247. data/bower_components/leaflet/docs/examples/extending/tilt.md +59 -0
  248. data/bower_components/leaflet/docs/examples/extending/watermark.md +36 -0
  249. data/bower_components/leaflet/docs/examples/geojson-example.md +5 -0
  250. data/bower_components/leaflet/docs/examples/geojson.md +5 -0
  251. data/bower_components/leaflet/docs/examples/geojson/baseball-marker.png +0 -0
  252. data/bower_components/leaflet/docs/examples/geojson/example.md +78 -0
  253. data/bower_components/leaflet/docs/examples/geojson/geojson-example.html +89 -0
  254. data/bower_components/leaflet/docs/examples/geojson/geojson.html +281 -0
  255. data/bower_components/leaflet/docs/examples/geojson/index.md +205 -0
  256. data/bower_components/leaflet/docs/examples/geojson/sample-geojson.js +248 -0
  257. data/bower_components/leaflet/docs/examples/geojson/thumbnail.png +0 -0
  258. data/bower_components/leaflet/docs/examples/layers-control-example.md +5 -0
  259. data/bower_components/leaflet/docs/examples/layers-control.md +5 -0
  260. data/bower_components/leaflet/docs/examples/layers-control/example.md +38 -0
  261. data/bower_components/leaflet/docs/examples/layers-control/index.md +72 -0
  262. data/bower_components/leaflet/docs/examples/layers-control/thumbnail.png +0 -0
  263. data/bower_components/leaflet/docs/examples/map-panes-example.md +5 -0
  264. data/bower_components/leaflet/docs/examples/map-panes.md +5 -0
  265. data/bower_components/leaflet/docs/examples/map-panes/eu-countries.js +79 -0
  266. data/bower_components/leaflet/docs/examples/map-panes/example.md +38 -0
  267. data/bower_components/leaflet/docs/examples/map-panes/index.md +105 -0
  268. data/bower_components/leaflet/docs/examples/map-panes/thumbnail.png +0 -0
  269. data/bower_components/leaflet/docs/examples/mobile-example.md +5 -0
  270. data/bower_components/leaflet/docs/examples/mobile.md +5 -0
  271. data/bower_components/leaflet/docs/examples/mobile/example.md +42 -0
  272. data/bower_components/leaflet/docs/examples/mobile/index.md +72 -0
  273. data/bower_components/leaflet/docs/examples/mobile/thumbnail.png +0 -0
  274. data/bower_components/leaflet/docs/examples/quick-start-example.md +5 -0
  275. data/bower_components/leaflet/docs/examples/quick-start.md +5 -0
  276. data/bower_components/leaflet/docs/examples/quick-start/example-basic.md +19 -0
  277. data/bower_components/leaflet/docs/examples/quick-start/example-overlays.md +35 -0
  278. data/bower_components/leaflet/docs/examples/quick-start/example-popups.md +37 -0
  279. data/bower_components/leaflet/docs/examples/quick-start/example.md +46 -0
  280. data/bower_components/leaflet/docs/examples/quick-start/index.md +143 -0
  281. data/bower_components/leaflet/docs/examples/quick-start/thumbnail.png +0 -0
  282. data/bower_components/leaflet/docs/examples/video-overlay/example-bounds.md +23 -0
  283. data/bower_components/leaflet/docs/examples/video-overlay/example-nocontrols.md +31 -0
  284. data/bower_components/leaflet/docs/examples/video-overlay/example.md +58 -0
  285. data/bower_components/leaflet/docs/examples/video-overlay/index.md +122 -0
  286. data/bower_components/leaflet/docs/examples/video-overlay/thumbnail.gif +0 -0
  287. data/bower_components/leaflet/docs/examples/wms/qgis-wms-layers.png +0 -0
  288. data/bower_components/leaflet/docs/examples/wms/thumbnail.png +0 -0
  289. data/bower_components/leaflet/docs/examples/wms/wms-example-crs.md +18 -0
  290. data/bower_components/leaflet/docs/examples/wms/wms-example1.md +16 -0
  291. data/bower_components/leaflet/docs/examples/wms/wms-example2.md +16 -0
  292. data/bower_components/leaflet/docs/examples/wms/wms-example3.md +34 -0
  293. data/bower_components/leaflet/docs/examples/wms/wms-example4.md +29 -0
  294. data/bower_components/leaflet/docs/examples/wms/wms.md +157 -0
  295. data/bower_components/leaflet/docs/examples/zoom-levels/example-delta.md +40 -0
  296. data/bower_components/leaflet/docs/examples/zoom-levels/example-fractional.md +56 -0
  297. data/bower_components/leaflet/docs/examples/zoom-levels/example-scale.md +29 -0
  298. data/bower_components/leaflet/docs/examples/zoom-levels/example-setzoom.md +44 -0
  299. data/bower_components/leaflet/docs/examples/zoom-levels/example-zero.md +19 -0
  300. data/bower_components/leaflet/docs/examples/zoom-levels/index.md +275 -0
  301. data/bower_components/leaflet/docs/examples/zoom-levels/thumbnail.png +0 -0
  302. data/bower_components/leaflet/docs/index.html +218 -0
  303. data/bower_components/leaflet/docs/plugins.md +3854 -0
  304. data/bower_components/leaflet/docs/reference-0.7.7.html +6424 -0
  305. data/bower_components/leaflet/docs/reference-1.0.0.html +22889 -0
  306. data/bower_components/leaflet/docs/reference-1.0.2.html +23382 -0
  307. data/bower_components/leaflet/docs/reference-1.0.3.html +23495 -0
  308. data/bower_components/leaflet/docs/reference-tpl.html +89 -0
  309. data/bower_components/leaflet/docs/reference-versions.html +16 -0
  310. data/bower_components/leaflet/docs/reference.html +3 -0
  311. data/bower_components/leaflet/package.json +77 -16
  312. data/columbus3.gemspec +1 -1
  313. data/doc/ChangeLog.org +10 -0
  314. data/doc/manual.txt +122 -0
  315. data/doc/todo.org +63 -0
  316. data/exe/columbus3 +2 -246
  317. data/lib/columbus3.rb +12 -7
  318. data/lib/columbus3/cli/command_semantics.rb +352 -0
  319. data/lib/columbus3/cli/command_syntax.rb +103 -0
  320. data/lib/columbus3/metadata/query_parser.racc +21 -7
  321. data/lib/columbus3/metadata/query_parser.tab.rb +34 -34
  322. data/lib/columbus3/metadata/sidecar.rb +1 -1
  323. data/lib/columbus3/renderer/flot_renderer.rb +3 -8
  324. data/lib/columbus3/renderer/leaflet_renderer.rb +18 -29
  325. data/lib/columbus3/renderer/sanitizer.rb +8 -0
  326. data/lib/columbus3/v900track/gpx2v900.rb +31 -0
  327. data/lib/columbus3/v900track/v900track.rb +34 -8
  328. data/lib/columbus3/v900track/v900waypoint.rb +9 -0
  329. data/lib/columbus3/version.rb +1 -1
  330. data/lib/html/flot.html.erb +6 -6
  331. data/lib/html/show.html.erb +53 -76
  332. data/lib/html/track.js.erb +58 -12
  333. metadata +222 -23
  334. data/README.textile +0 -67
  335. data/bower_components/jquery/src/ajax/parseJSON.js +0 -13
  336. data/bower_components/jquery/src/css/defaultDisplay.js +0 -70
  337. data/bower_components/jquery/src/css/var/isHidden.js +0 -13
  338. data/bower_components/jquery/src/intro.js +0 -44
  339. data/bower_components/jquery/src/outro.js +0 -1
  340. data/bower_components/jquery/src/sizzle/dist/sizzle.min.js +0 -3
  341. data/bower_components/jquery/src/sizzle/dist/sizzle.min.map +0 -1
  342. data/bower_components/jquery/src/var/rnotwhite.js +0 -3
  343. data/bower_components/jquery/src/var/strundefined.js +0 -3
  344. data/bower_components/leaflet/component.json +0 -20
@@ -1,22 +1,24 @@
1
- define([
1
+ define( [
2
2
  "./core",
3
- "./data/var/data_priv",
3
+ "./data/var/dataPriv",
4
4
  "./deferred",
5
5
  "./callbacks"
6
- ], function( jQuery, data_priv ) {
6
+ ], function( jQuery, dataPriv ) {
7
7
 
8
- jQuery.extend({
8
+ "use strict";
9
+
10
+ jQuery.extend( {
9
11
  queue: function( elem, type, data ) {
10
12
  var queue;
11
13
 
12
14
  if ( elem ) {
13
15
  type = ( type || "fx" ) + "queue";
14
- queue = data_priv.get( elem, type );
16
+ queue = dataPriv.get( elem, type );
15
17
 
16
18
  // Speed up dequeue by getting out quickly if this is just a lookup
17
19
  if ( data ) {
18
- if ( !queue || jQuery.isArray( data ) ) {
19
- queue = data_priv.access( elem, type, jQuery.makeArray(data) );
20
+ if ( !queue || Array.isArray( data ) ) {
21
+ queue = dataPriv.access( elem, type, jQuery.makeArray( data ) );
20
22
  } else {
21
23
  queue.push( data );
22
24
  }
@@ -63,15 +65,15 @@ jQuery.extend({
63
65
  // Not public - generate a queueHooks object, or return the current one
64
66
  _queueHooks: function( elem, type ) {
65
67
  var key = type + "queueHooks";
66
- return data_priv.get( elem, key ) || data_priv.access( elem, key, {
67
- empty: jQuery.Callbacks("once memory").add(function() {
68
- data_priv.remove( elem, [ type + "queue", key ] );
69
- })
70
- });
68
+ return dataPriv.get( elem, key ) || dataPriv.access( elem, key, {
69
+ empty: jQuery.Callbacks( "once memory" ).add( function() {
70
+ dataPriv.remove( elem, [ type + "queue", key ] );
71
+ } )
72
+ } );
71
73
  }
72
- });
74
+ } );
73
75
 
74
- jQuery.fn.extend({
76
+ jQuery.fn.extend( {
75
77
  queue: function( type, data ) {
76
78
  var setter = 2;
77
79
 
@@ -82,30 +84,31 @@ jQuery.fn.extend({
82
84
  }
83
85
 
84
86
  if ( arguments.length < setter ) {
85
- return jQuery.queue( this[0], type );
87
+ return jQuery.queue( this[ 0 ], type );
86
88
  }
87
89
 
88
90
  return data === undefined ?
89
91
  this :
90
- this.each(function() {
92
+ this.each( function() {
91
93
  var queue = jQuery.queue( this, type, data );
92
94
 
93
95
  // Ensure a hooks for this queue
94
96
  jQuery._queueHooks( this, type );
95
97
 
96
- if ( type === "fx" && queue[0] !== "inprogress" ) {
98
+ if ( type === "fx" && queue[ 0 ] !== "inprogress" ) {
97
99
  jQuery.dequeue( this, type );
98
100
  }
99
- });
101
+ } );
100
102
  },
101
103
  dequeue: function( type ) {
102
- return this.each(function() {
104
+ return this.each( function() {
103
105
  jQuery.dequeue( this, type );
104
- });
106
+ } );
105
107
  },
106
108
  clearQueue: function( type ) {
107
109
  return this.queue( type || "fx", [] );
108
110
  },
111
+
109
112
  // Get a promise resolved when queues of a certain type
110
113
  // are emptied (fx is the type by default)
111
114
  promise: function( type, obj ) {
@@ -127,7 +130,7 @@ jQuery.fn.extend({
127
130
  type = type || "fx";
128
131
 
129
132
  while ( i-- ) {
130
- tmp = data_priv.get( elements[ i ], type + "queueHooks" );
133
+ tmp = dataPriv.get( elements[ i ], type + "queueHooks" );
131
134
  if ( tmp && tmp.empty ) {
132
135
  count++;
133
136
  tmp.empty.add( resolve );
@@ -136,7 +139,7 @@ jQuery.fn.extend({
136
139
  resolve();
137
140
  return defer.promise( obj );
138
141
  }
139
- });
142
+ } );
140
143
 
141
144
  return jQuery;
142
- });
145
+ } );
@@ -1,22 +1,24 @@
1
- define([
1
+ define( [
2
2
  "../core",
3
3
  "../queue",
4
4
  "../effects" // Delay is optional because of this dependency
5
5
  ], function( jQuery ) {
6
6
 
7
+ "use strict";
8
+
7
9
  // Based off of the plugin by Clint Helfers, with permission.
8
- // http://blindsignals.com/index.php/2009/07/jquery-delay/
10
+ // https://web.archive.org/web/20100324014747/http://blindsignals.com/index.php/2009/07/jquery-delay/
9
11
  jQuery.fn.delay = function( time, type ) {
10
12
  time = jQuery.fx ? jQuery.fx.speeds[ time ] || time : time;
11
13
  type = type || "fx";
12
14
 
13
15
  return this.queue( type, function( next, hooks ) {
14
- var timeout = setTimeout( next, time );
16
+ var timeout = window.setTimeout( next, time );
15
17
  hooks.stop = function() {
16
- clearTimeout( timeout );
18
+ window.clearTimeout( timeout );
17
19
  };
18
- });
20
+ } );
19
21
  };
20
22
 
21
23
  return jQuery.fn.delay;
22
- });
24
+ } );
@@ -1,6 +1,12 @@
1
- define([
2
- "./core"
3
- ], function( jQuery ) {
1
+ define( [
2
+ "./core",
3
+ "./var/document",
4
+ "./var/documentElement",
5
+ "./var/hasOwn",
6
+ "./var/indexOf"
7
+ ], function( jQuery, document, documentElement, hasOwn, indexOf ) {
8
+
9
+ "use strict";
4
10
 
5
11
  /*
6
12
  * Optional (non-Sizzle) selector module for custom builds.
@@ -27,46 +33,112 @@ define([
27
33
  * customize this stub for the project's specific needs.
28
34
  */
29
35
 
30
- var docElem = window.document.documentElement,
31
- selector_hasDuplicate,
32
- matches = docElem.matches ||
33
- docElem.webkitMatchesSelector ||
34
- docElem.mozMatchesSelector ||
35
- docElem.oMatchesSelector ||
36
- docElem.msMatchesSelector,
37
- selector_sortOrder = function( a, b ) {
38
- // Flag for duplicate removal
39
- if ( a === b ) {
40
- selector_hasDuplicate = true;
41
- return 0;
36
+ var hasDuplicate, sortInput,
37
+ sortStable = jQuery.expando.split( "" ).sort( sortOrder ).join( "" ) === jQuery.expando,
38
+ matches = documentElement.matches ||
39
+ documentElement.webkitMatchesSelector ||
40
+ documentElement.mozMatchesSelector ||
41
+ documentElement.oMatchesSelector ||
42
+ documentElement.msMatchesSelector,
43
+
44
+ // CSS string/identifier serialization
45
+ // https://drafts.csswg.org/cssom/#common-serializing-idioms
46
+ rcssescape = /([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g,
47
+ fcssescape = function( ch, asCodePoint ) {
48
+ if ( asCodePoint ) {
49
+
50
+ // U+0000 NULL becomes U+FFFD REPLACEMENT CHARACTER
51
+ if ( ch === "\0" ) {
52
+ return "\uFFFD";
53
+ }
54
+
55
+ // Control characters and (dependent upon position) numbers get escaped as code points
56
+ return ch.slice( 0, -1 ) + "\\" + ch.charCodeAt( ch.length - 1 ).toString( 16 ) + " ";
42
57
  }
43
58
 
44
- var compare = b.compareDocumentPosition && a.compareDocumentPosition && a.compareDocumentPosition( b );
59
+ // Other potentially-special ASCII characters get backslash-escaped
60
+ return "\\" + ch;
61
+ };
45
62
 
46
- if ( compare ) {
47
- // Disconnected nodes
48
- if ( compare & 1 ) {
63
+ function sortOrder( a, b ) {
49
64
 
50
- // Choose the first element that is related to our document
51
- if ( a === document || jQuery.contains(document, a) ) {
52
- return -1;
53
- }
54
- if ( b === document || jQuery.contains(document, b) ) {
55
- return 1;
56
- }
65
+ // Flag for duplicate removal
66
+ if ( a === b ) {
67
+ hasDuplicate = true;
68
+ return 0;
69
+ }
57
70
 
58
- // Maintain original order
59
- return 0;
60
- }
71
+ // Sort on method existence if only one input has compareDocumentPosition
72
+ var compare = !a.compareDocumentPosition - !b.compareDocumentPosition;
73
+ if ( compare ) {
74
+ return compare;
75
+ }
76
+
77
+ // Calculate position if both inputs belong to the same document
78
+ compare = ( a.ownerDocument || a ) === ( b.ownerDocument || b ) ?
79
+ a.compareDocumentPosition( b ) :
80
+
81
+ // Otherwise we know they are disconnected
82
+ 1;
61
83
 
62
- return compare & 4 ? -1 : 1;
84
+ // Disconnected nodes
85
+ if ( compare & 1 ) {
86
+
87
+ // Choose the first element that is related to our preferred document
88
+ if ( a === document || a.ownerDocument === document &&
89
+ jQuery.contains( document, a ) ) {
90
+ return -1;
91
+ }
92
+ if ( b === document || b.ownerDocument === document &&
93
+ jQuery.contains( document, b ) ) {
94
+ return 1;
63
95
  }
64
96
 
65
- // Not directly comparable, sort on existence of method
66
- return a.compareDocumentPosition ? -1 : 1;
67
- };
97
+ // Maintain original order
98
+ return sortInput ?
99
+ ( indexOf.call( sortInput, a ) - indexOf.call( sortInput, b ) ) :
100
+ 0;
101
+ }
102
+
103
+ return compare & 4 ? -1 : 1;
104
+ }
105
+
106
+ function uniqueSort( results ) {
107
+ var elem,
108
+ duplicates = [],
109
+ j = 0,
110
+ i = 0;
111
+
112
+ hasDuplicate = false;
113
+ sortInput = !sortStable && results.slice( 0 );
114
+ results.sort( sortOrder );
115
+
116
+ if ( hasDuplicate ) {
117
+ while ( ( elem = results[ i++ ] ) ) {
118
+ if ( elem === results[ i ] ) {
119
+ j = duplicates.push( i );
120
+ }
121
+ }
122
+ while ( j-- ) {
123
+ results.splice( duplicates[ j ], 1 );
124
+ }
125
+ }
126
+
127
+ // Clear input after sorting to release objects
128
+ // See https://github.com/jquery/sizzle/pull/225
129
+ sortInput = null;
68
130
 
69
- jQuery.extend({
131
+ return results;
132
+ }
133
+
134
+ function escape( sel ) {
135
+ return ( sel + "" ).replace( rcssescape, fcssescape );
136
+ }
137
+
138
+ jQuery.extend( {
139
+ uniqueSort: uniqueSort,
140
+ unique: uniqueSort,
141
+ escapeSelector: escape,
70
142
  find: function( selector, context, results, seed ) {
71
143
  var elem, nodeType,
72
144
  i = 0;
@@ -80,40 +152,18 @@ jQuery.extend({
80
152
  }
81
153
 
82
154
  // Early return if context is not an element or document
83
- if ( (nodeType = context.nodeType) !== 1 && nodeType !== 9 ) {
155
+ if ( ( nodeType = context.nodeType ) !== 1 && nodeType !== 9 ) {
84
156
  return [];
85
157
  }
86
158
 
87
159
  if ( seed ) {
88
- while ( (elem = seed[i++]) ) {
89
- if ( jQuery.find.matchesSelector(elem, selector) ) {
160
+ while ( ( elem = seed[ i++ ] ) ) {
161
+ if ( jQuery.find.matchesSelector( elem, selector ) ) {
90
162
  results.push( elem );
91
163
  }
92
164
  }
93
165
  } else {
94
- jQuery.merge( results, context.querySelectorAll(selector) );
95
- }
96
-
97
- return results;
98
- },
99
- unique: function( results ) {
100
- var elem,
101
- duplicates = [],
102
- i = 0,
103
- j = 0;
104
-
105
- selector_hasDuplicate = false;
106
- results.sort( selector_sortOrder );
107
-
108
- if ( selector_hasDuplicate ) {
109
- while ( (elem = results[i++]) ) {
110
- if ( elem === results[ i ] ) {
111
- j = duplicates.push( i );
112
- }
113
- }
114
- while ( j-- ) {
115
- results.splice( duplicates[ j ], 1 );
116
- }
166
+ jQuery.merge( results, context.querySelectorAll( selector ) );
117
167
  }
118
168
 
119
169
  return results;
@@ -125,17 +175,21 @@ jQuery.extend({
125
175
  nodeType = elem.nodeType;
126
176
 
127
177
  if ( !nodeType ) {
178
+
128
179
  // If no nodeType, this is expected to be an array
129
- while ( (node = elem[i++]) ) {
180
+ while ( ( node = elem[ i++ ] ) ) {
181
+
130
182
  // Do not traverse comment nodes
131
183
  ret += jQuery.text( node );
132
184
  }
133
185
  } else if ( nodeType === 1 || nodeType === 9 || nodeType === 11 ) {
186
+
134
187
  // Use textContent for elements
135
188
  return elem.textContent;
136
189
  } else if ( nodeType === 3 || nodeType === 4 ) {
137
190
  return elem.nodeValue;
138
191
  }
192
+
139
193
  // Do not include comment or processing instruction nodes
140
194
 
141
195
  return ret;
@@ -143,19 +197,24 @@ jQuery.extend({
143
197
  contains: function( a, b ) {
144
198
  var adown = a.nodeType === 9 ? a.documentElement : a,
145
199
  bup = b && b.parentNode;
146
- return a === bup || !!( bup && bup.nodeType === 1 && adown.contains(bup) );
200
+ return a === bup || !!( bup && bup.nodeType === 1 && adown.contains( bup ) );
147
201
  },
148
202
  isXMLDoc: function( elem ) {
149
- return (elem.ownerDocument || elem).documentElement.nodeName !== "HTML";
203
+
204
+ // documentElement is verified for cases where it doesn't yet exist
205
+ // (such as loading iframes in IE - #4833)
206
+ var documentElement = elem && ( elem.ownerDocument || elem ).documentElement;
207
+ return documentElement ? documentElement.nodeName !== "HTML" : false;
150
208
  },
151
209
  expr: {
152
210
  attrHandle: {},
153
211
  match: {
154
- bool: /^(?:checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped)$/i,
212
+ bool: new RegExp( "^(?:checked|selected|async|autofocus|autoplay|controls|defer" +
213
+ "|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped)$", "i" ),
155
214
  needsContext: /^[\x20\t\r\n\f]*[>+~]/
156
215
  }
157
216
  }
158
- });
217
+ } );
159
218
 
160
219
  jQuery.extend( jQuery.find, {
161
220
  matches: function( expr, elements ) {
@@ -165,8 +224,14 @@ jQuery.extend( jQuery.find, {
165
224
  return matches.call( elem, expr );
166
225
  },
167
226
  attr: function( elem, name ) {
168
- return elem.getAttribute( name );
227
+ var fn = jQuery.expr.attrHandle[ name.toLowerCase() ],
228
+
229
+ // Don't get fooled by Object.prototype properties (jQuery #13807)
230
+ value = fn && hasOwn.call( jQuery.expr.attrHandle, name.toLowerCase() ) ?
231
+ fn( elem, name, jQuery.isXMLDoc( elem ) ) :
232
+ undefined;
233
+ return value !== undefined ? value : elem.getAttribute( name );
169
234
  }
170
- });
235
+ } );
171
236
 
172
- });
237
+ } );
@@ -1,14 +1,19 @@
1
- define([
1
+ define( [
2
2
  "./core",
3
- "sizzle"
3
+ "../external/sizzle/dist/sizzle"
4
4
  ], function( jQuery, Sizzle ) {
5
5
 
6
+ "use strict";
7
+
6
8
  jQuery.find = Sizzle;
7
9
  jQuery.expr = Sizzle.selectors;
8
- jQuery.expr[":"] = jQuery.expr.pseudos;
9
- jQuery.unique = Sizzle.uniqueSort;
10
+
11
+ // Deprecated
12
+ jQuery.expr[ ":" ] = jQuery.expr.pseudos;
13
+ jQuery.uniqueSort = jQuery.unique = Sizzle.uniqueSort;
10
14
  jQuery.text = Sizzle.getText;
11
15
  jQuery.isXMLDoc = Sizzle.isXML;
12
16
  jQuery.contains = Sizzle.contains;
17
+ jQuery.escapeSelector = Sizzle.escape;
13
18
 
14
- });
19
+ } );
@@ -1 +1,3 @@
1
- define([ "./selector-sizzle" ]);
1
+ define( [ "./selector-sizzle" ], function() {
2
+ "use strict";
3
+ } );
@@ -1,4 +1,4 @@
1
- define([
1
+ define( [
2
2
  "./core",
3
3
  "./manipulation/var/rcheckableType",
4
4
  "./core/init",
@@ -6,7 +6,9 @@ define([
6
6
  "./attributes/prop"
7
7
  ], function( jQuery, rcheckableType ) {
8
8
 
9
- var r20 = /%20/g,
9
+ "use strict";
10
+
11
+ var
10
12
  rbracket = /\[\]$/,
11
13
  rCRLF = /\r?\n/g,
12
14
  rsubmitterTypes = /^(?:submit|button|image|reset|file)$/i,
@@ -15,26 +17,36 @@ var r20 = /%20/g,
15
17
  function buildParams( prefix, obj, traditional, add ) {
16
18
  var name;
17
19
 
18
- if ( jQuery.isArray( obj ) ) {
20
+ if ( Array.isArray( obj ) ) {
21
+
19
22
  // Serialize array item.
20
23
  jQuery.each( obj, function( i, v ) {
21
24
  if ( traditional || rbracket.test( prefix ) ) {
25
+
22
26
  // Treat each array item as a scalar.
23
27
  add( prefix, v );
24
28
 
25
29
  } else {
30
+
26
31
  // Item is non-scalar (array or object), encode its numeric index.
27
- buildParams( prefix + "[" + ( typeof v === "object" ? i : "" ) + "]", v, traditional, add );
32
+ buildParams(
33
+ prefix + "[" + ( typeof v === "object" && v != null ? i : "" ) + "]",
34
+ v,
35
+ traditional,
36
+ add
37
+ );
28
38
  }
29
- });
39
+ } );
30
40
 
31
41
  } else if ( !traditional && jQuery.type( obj ) === "object" ) {
42
+
32
43
  // Serialize object item.
33
44
  for ( name in obj ) {
34
45
  buildParams( prefix + "[" + name + "]", obj[ name ], traditional, add );
35
46
  }
36
47
 
37
48
  } else {
49
+
38
50
  // Serialize scalar item.
39
51
  add( prefix, obj );
40
52
  }
@@ -45,25 +57,27 @@ function buildParams( prefix, obj, traditional, add ) {
45
57
  jQuery.param = function( a, traditional ) {
46
58
  var prefix,
47
59
  s = [],
48
- add = function( key, value ) {
49
- // If value is a function, invoke it and return its value
50
- value = jQuery.isFunction( value ) ? value() : ( value == null ? "" : value );
51
- s[ s.length ] = encodeURIComponent( key ) + "=" + encodeURIComponent( value );
52
- };
60
+ add = function( key, valueOrFunction ) {
53
61
 
54
- // Set traditional to true for jQuery <= 1.3.2 behavior.
55
- if ( traditional === undefined ) {
56
- traditional = jQuery.ajaxSettings && jQuery.ajaxSettings.traditional;
57
- }
62
+ // If value is a function, invoke it and use its return value
63
+ var value = jQuery.isFunction( valueOrFunction ) ?
64
+ valueOrFunction() :
65
+ valueOrFunction;
66
+
67
+ s[ s.length ] = encodeURIComponent( key ) + "=" +
68
+ encodeURIComponent( value == null ? "" : value );
69
+ };
58
70
 
59
71
  // If an array was passed in, assume that it is an array of form elements.
60
- if ( jQuery.isArray( a ) || ( a.jquery && !jQuery.isPlainObject( a ) ) ) {
72
+ if ( Array.isArray( a ) || ( a.jquery && !jQuery.isPlainObject( a ) ) ) {
73
+
61
74
  // Serialize the form elements
62
75
  jQuery.each( a, function() {
63
76
  add( this.name, this.value );
64
- });
77
+ } );
65
78
 
66
79
  } else {
80
+
67
81
  // If traditional, encode the "old" way (the way 1.3.2 or older
68
82
  // did it), otherwise encode params recursively.
69
83
  for ( prefix in a ) {
@@ -72,40 +86,45 @@ jQuery.param = function( a, traditional ) {
72
86
  }
73
87
 
74
88
  // Return the resulting serialization
75
- return s.join( "&" ).replace( r20, "+" );
89
+ return s.join( "&" );
76
90
  };
77
91
 
78
- jQuery.fn.extend({
92
+ jQuery.fn.extend( {
79
93
  serialize: function() {
80
94
  return jQuery.param( this.serializeArray() );
81
95
  },
82
96
  serializeArray: function() {
83
- return this.map(function() {
97
+ return this.map( function() {
98
+
84
99
  // Can add propHook for "elements" to filter or add form elements
85
100
  var elements = jQuery.prop( this, "elements" );
86
101
  return elements ? jQuery.makeArray( elements ) : this;
87
- })
88
- .filter(function() {
102
+ } )
103
+ .filter( function() {
89
104
  var type = this.type;
90
105
 
91
106
  // Use .is( ":disabled" ) so that fieldset[disabled] works
92
107
  return this.name && !jQuery( this ).is( ":disabled" ) &&
93
108
  rsubmittable.test( this.nodeName ) && !rsubmitterTypes.test( type ) &&
94
109
  ( this.checked || !rcheckableType.test( type ) );
95
- })
96
- .map(function( i, elem ) {
110
+ } )
111
+ .map( function( i, elem ) {
97
112
  var val = jQuery( this ).val();
98
113
 
99
- return val == null ?
100
- null :
101
- jQuery.isArray( val ) ?
102
- jQuery.map( val, function( val ) {
103
- return { name: elem.name, value: val.replace( rCRLF, "\r\n" ) };
104
- }) :
105
- { name: elem.name, value: val.replace( rCRLF, "\r\n" ) };
106
- }).get();
114
+ if ( val == null ) {
115
+ return null;
116
+ }
117
+
118
+ if ( Array.isArray( val ) ) {
119
+ return jQuery.map( val, function( val ) {
120
+ return { name: elem.name, value: val.replace( rCRLF, "\r\n" ) };
121
+ } );
122
+ }
123
+
124
+ return { name: elem.name, value: val.replace( rCRLF, "\r\n" ) };
125
+ } ).get();
107
126
  }
108
- });
127
+ } );
109
128
 
110
129
  return jQuery;
111
- });
130
+ } );