columbus3 0.4.0 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -1
- data/README.md +122 -0
- data/bin/console +0 -0
- data/bin/setup +0 -0
- data/bower.json +25 -0
- data/bower_components/jquery/.bower.json +7 -20
- data/bower_components/jquery/AUTHORS.txt +301 -0
- data/bower_components/jquery/{MIT-LICENSE.txt → LICENSE.txt} +17 -2
- data/bower_components/jquery/README.md +67 -0
- data/bower_components/jquery/bower.json +2 -16
- data/bower_components/jquery/dist/core.js +476 -0
- data/bower_components/jquery/dist/jquery.js +3861 -2818
- data/bower_components/jquery/dist/jquery.min.js +4 -5
- data/bower_components/jquery/dist/jquery.min.map +1 -1
- data/bower_components/jquery/dist/jquery.slim.js +8160 -0
- data/bower_components/jquery/dist/jquery.slim.min.js +4 -0
- data/bower_components/jquery/dist/jquery.slim.min.map +1 -0
- data/bower_components/jquery/external/sizzle/LICENSE.txt +36 -0
- data/bower_components/jquery/{src → external}/sizzle/dist/sizzle.js +445 -240
- data/bower_components/jquery/external/sizzle/dist/sizzle.min.js +3 -0
- data/bower_components/jquery/external/sizzle/dist/sizzle.min.map +1 -0
- data/bower_components/jquery/src/.eslintrc.json +5 -0
- data/bower_components/jquery/src/ajax.js +174 -105
- data/bower_components/jquery/src/ajax/jsonp.js +27 -14
- data/bower_components/jquery/src/ajax/load.js +24 -23
- data/bower_components/jquery/src/ajax/parseXML.js +8 -6
- data/bower_components/jquery/src/ajax/script.js +25 -12
- data/bower_components/jquery/src/ajax/var/location.js +5 -0
- data/bower_components/jquery/src/ajax/var/nonce.js +4 -2
- data/bower_components/jquery/src/ajax/var/rquery.js +5 -3
- data/bower_components/jquery/src/ajax/xhr.js +76 -43
- data/bower_components/jquery/src/attributes.js +4 -2
- data/bower_components/jquery/src/attributes/attr.js +60 -60
- data/bower_components/jquery/src/attributes/classes.js +87 -71
- data/bower_components/jquery/src/attributes/prop.js +81 -32
- data/bower_components/jquery/src/attributes/support.js +11 -13
- data/bower_components/jquery/src/attributes/val.js +66 -37
- data/bower_components/jquery/src/callbacks.js +119 -90
- data/bower_components/jquery/src/core.js +108 -134
- data/bower_components/jquery/src/core/DOMEval.js +16 -0
- data/bower_components/jquery/src/core/access.js +21 -11
- data/bower_components/jquery/src/core/init.js +33 -28
- data/bower_components/jquery/src/core/nodeName.js +13 -0
- data/bower_components/jquery/src/core/parseHTML.js +39 -13
- data/bower_components/jquery/src/core/ready-no-deferred.js +96 -0
- data/bower_components/jquery/src/core/ready.js +40 -51
- data/bower_components/jquery/src/core/readyException.js +13 -0
- data/bower_components/jquery/src/core/stripAndCollapse.js +14 -0
- data/bower_components/jquery/src/core/support.js +20 -0
- data/bower_components/jquery/src/core/var/rsingleTag.js +5 -3
- data/bower_components/jquery/src/css.js +146 -158
- data/bower_components/jquery/src/css/addGetHookIf.js +7 -3
- data/bower_components/jquery/src/css/adjustCSS.js +71 -0
- data/bower_components/jquery/src/css/curCSS.js +22 -14
- data/bower_components/jquery/src/css/hiddenVisibleSelectors.js +8 -8
- data/bower_components/jquery/src/css/showHide.js +105 -0
- data/bower_components/jquery/src/css/support.js +69 -76
- data/bower_components/jquery/src/css/var/cssExpand.js +4 -2
- data/bower_components/jquery/src/css/var/getStyles.js +11 -6
- data/bower_components/jquery/src/css/var/isHiddenWithinTree.js +34 -0
- data/bower_components/jquery/src/css/var/rmargin.js +5 -3
- data/bower_components/jquery/src/css/var/rnumnonpx.js +4 -2
- data/bower_components/jquery/src/css/{swap.js → var/swap.js} +5 -7
- data/bower_components/jquery/src/data.js +67 -66
- data/bower_components/jquery/src/data/Data.js +87 -107
- data/bower_components/jquery/src/data/{accepts.js → var/acceptData.js} +6 -7
- data/bower_components/jquery/src/data/var/{data_priv.js → dataPriv.js} +4 -2
- data/bower_components/jquery/src/data/var/{data_user.js → dataUser.js} +4 -2
- data/bower_components/jquery/src/deferred.js +314 -72
- data/bower_components/jquery/src/deferred/exceptionHook.js +21 -0
- data/bower_components/jquery/src/deprecated.js +36 -9
- data/bower_components/jquery/src/dimensions.js +16 -10
- data/bower_components/jquery/src/effects.js +257 -206
- data/bower_components/jquery/src/effects/Tween.js +18 -9
- data/bower_components/jquery/src/effects/animatedSelector.js +7 -5
- data/bower_components/jquery/src/event.js +297 -419
- data/bower_components/jquery/src/event/ajax.js +13 -4
- data/bower_components/jquery/src/event/alias.js +13 -23
- data/bower_components/jquery/src/event/focusin.js +55 -0
- data/bower_components/jquery/src/event/support.js +5 -3
- data/bower_components/jquery/src/event/trigger.js +185 -0
- data/bower_components/jquery/src/exports/amd.js +5 -3
- data/bower_components/jquery/src/exports/global.js +8 -6
- data/bower_components/jquery/src/jquery.js +6 -2
- data/bower_components/jquery/src/manipulation.js +218 -310
- data/bower_components/jquery/src/manipulation/_evalUrl.js +9 -4
- data/bower_components/jquery/src/manipulation/buildFragment.js +104 -0
- data/bower_components/jquery/src/manipulation/getAll.js +32 -0
- data/bower_components/jquery/src/manipulation/setGlobalEval.js +22 -0
- data/bower_components/jquery/src/manipulation/support.js +11 -8
- data/bower_components/jquery/src/manipulation/var/rcheckableType.js +5 -3
- data/bower_components/jquery/src/manipulation/var/rscriptType.js +5 -0
- data/bower_components/jquery/src/manipulation/var/rtagName.js +5 -0
- data/bower_components/jquery/src/manipulation/wrapMap.js +29 -0
- data/bower_components/jquery/src/offset.js +75 -53
- data/bower_components/jquery/src/queue.js +26 -23
- data/bower_components/jquery/src/queue/delay.js +8 -6
- data/bower_components/jquery/src/selector-native.js +133 -68
- data/bower_components/jquery/src/selector-sizzle.js +10 -5
- data/bower_components/jquery/src/selector.js +3 -1
- data/bower_components/jquery/src/serialize.js +52 -33
- data/bower_components/jquery/src/traversing.js +61 -69
- data/bower_components/jquery/src/traversing/findFilter.js +37 -31
- data/bower_components/jquery/src/traversing/var/dir.js +22 -0
- data/bower_components/jquery/src/traversing/var/rneedsContext.js +4 -2
- data/bower_components/jquery/src/traversing/var/siblings.js +17 -0
- data/bower_components/jquery/src/var/ObjectFunctionString.js +7 -0
- data/bower_components/jquery/src/var/arr.js +4 -2
- data/bower_components/jquery/src/var/class2type.js +4 -2
- data/bower_components/jquery/src/var/concat.js +4 -2
- data/bower_components/jquery/src/var/document.js +5 -0
- data/bower_components/jquery/src/var/documentElement.js +7 -0
- data/bower_components/jquery/src/var/fnToString.js +7 -0
- data/bower_components/jquery/src/var/getProto.js +5 -0
- data/bower_components/jquery/src/var/hasOwn.js +4 -2
- data/bower_components/jquery/src/var/indexOf.js +4 -2
- data/bower_components/jquery/src/var/pnum.js +5 -3
- data/bower_components/jquery/src/var/push.js +4 -2
- data/bower_components/jquery/src/var/rcssNum.js +9 -0
- data/bower_components/jquery/src/var/rnothtmlwhite.js +8 -0
- data/bower_components/jquery/src/var/slice.js +4 -2
- data/bower_components/jquery/src/var/support.js +4 -2
- data/bower_components/jquery/src/var/toString.js +4 -2
- data/bower_components/jquery/src/wrap.js +24 -26
- data/bower_components/leaflet-providers/.bower.json +6 -7
- data/bower_components/leaflet-providers/CHANGELOG.md +62 -0
- data/bower_components/leaflet-providers/README.md +12 -3
- data/bower_components/leaflet-providers/bower.json +1 -1
- data/bower_components/leaflet-providers/leaflet-providers.js +133 -92
- data/bower_components/leaflet-providers/package.json +14 -7
- data/bower_components/leaflet/.bower.json +10 -14
- data/bower_components/leaflet/CHANGELOG.md +648 -3
- data/bower_components/leaflet/CONTRIBUTING.md +88 -33
- data/bower_components/leaflet/ISSUE_TEMPLATE.md +25 -0
- data/bower_components/leaflet/Jakefile.js +73 -14
- data/bower_components/leaflet/LICENSE +1 -1
- data/bower_components/leaflet/PLUGIN-GUIDE.md +97 -3
- data/bower_components/leaflet/README.md +6 -8
- data/bower_components/leaflet/bower.json +3 -9
- data/bower_components/leaflet/dist/images/layers-2x.png +0 -0
- data/bower_components/leaflet/dist/images/layers.png +0 -0
- data/bower_components/leaflet/dist/images/marker-icon-2x.png +0 -0
- data/bower_components/leaflet/dist/images/marker-icon.png +0 -0
- data/bower_components/leaflet/dist/images/marker-shadow.png +0 -0
- data/bower_components/leaflet/dist/leaflet-src.js +12301 -7898
- data/bower_components/leaflet/dist/leaflet-src.js.map +1 -0
- data/bower_components/leaflet/dist/leaflet.css +196 -43
- data/bower_components/leaflet/dist/leaflet.js +6 -9
- data/bower_components/leaflet/dist/leaflet.js.map +1 -0
- data/bower_components/leaflet/docs/CNAME +1 -0
- data/bower_components/leaflet/docs/Gemfile +4 -0
- data/bower_components/leaflet/docs/_config.yml +19 -0
- data/bower_components/leaflet/docs/_includes/frame.html +9 -0
- data/bower_components/leaflet/docs/_includes/tutorial_link.html +8 -0
- data/bower_components/leaflet/docs/_layouts/post.html +30 -0
- data/bower_components/leaflet/docs/_layouts/redirected.html +14 -0
- data/bower_components/leaflet/docs/_layouts/tutorial.html +9 -0
- data/bower_components/leaflet/docs/_layouts/tutorial_frame.html +32 -0
- data/bower_components/leaflet/docs/_layouts/tutorial_v2.html +9 -0
- data/bower_components/leaflet/docs/_layouts/v2.html +159 -0
- data/bower_components/leaflet/docs/_posts/2012-07-30-leaflet-0-4-released.md +240 -0
- data/bower_components/leaflet/docs/_posts/2012-08-07-leaflet-0-4-3-and-a-new-tutorial.md +47 -0
- data/bower_components/leaflet/docs/_posts/2012-08-20-guest-post-markerclusterer-0-1-released.md +112 -0
- data/bower_components/leaflet/docs/_posts/2012-10-25-leaflet-0-4-5-bugfix-release-and-plans-for-0.5.md +36 -0
- data/bower_components/leaflet/docs/_posts/2013-01-17-leaflet-0-5-released.md +24 -0
- data/bower_components/leaflet/docs/_posts/2013-02-20-guest-post-draw.md +146 -0
- data/bower_components/leaflet/docs/_posts/2013-06-26-leaflet-0-6-released-dc-code-sprint-mapbox.md +31 -0
- data/bower_components/leaflet/docs/_posts/2013-06-28-leaflet-plugin-authoring-guide.md +111 -0
- data/bower_components/leaflet/docs/_posts/2013-11-18-leaflet-0-7-released-plans-for-future.md +56 -0
- data/bower_components/leaflet/docs/_posts/2015-07-01-leaflet-is-alive-and-kicking.md +21 -0
- data/bower_components/leaflet/docs/_posts/2015-07-15-leaflet-1.0-beta1-released.md +60 -0
- data/bower_components/leaflet/docs/_posts/2015-09-01-leaflet-0.7.4-released.md +29 -0
- data/bower_components/leaflet/docs/_posts/2015-10-14-leaflet-1.0-beta2-released.md +35 -0
- data/bower_components/leaflet/docs/_posts/2016-03-20-debugging-touch-interactions.md +101 -0
- data/bower_components/leaflet/docs/_posts/2016-04-18-leaflet-1.0-rc1.md +78 -0
- data/bower_components/leaflet/docs/_posts/2016-07-16-leaflet-1.0-rc2.md +60 -0
- data/bower_components/leaflet/docs/_posts/2016-08-05-leaflet-1.0-rc3.md +53 -0
- data/bower_components/leaflet/docs/_posts/2016-09-27-leaflet-1.0-final.md +50 -0
- data/bower_components/leaflet/docs/_posts/2016-11-21-leaflet-1.0.2.md +25 -0
- data/bower_components/leaflet/docs/_posts/2017-01-23-leaflet-1.0.3.md +27 -0
- data/bower_components/leaflet/docs/atom.xml +29 -0
- data/bower_components/leaflet/docs/blog.md +24 -0
- data/bower_components/leaflet/docs/docs/css/main.css +1092 -0
- data/bower_components/leaflet/docs/docs/css/normalize.css +426 -0
- data/bower_components/leaflet/docs/docs/highlight/LICENSE +24 -0
- data/bower_components/leaflet/docs/docs/highlight/highlight.pack.js +1 -0
- data/bower_components/leaflet/docs/docs/highlight/styles/github-gist.css +211 -0
- data/bower_components/leaflet/docs/docs/images/2016-03-20-prosthetic-hand-zooming.gif +0 -0
- data/bower_components/leaflet/docs/docs/images/2016-04-18-inheritances.gif +0 -0
- data/bower_components/leaflet/docs/docs/images/2016-04-18-leaflet-toilet-paper.jpeg +0 -0
- data/bower_components/leaflet/docs/docs/images/2016-04-18-madrid-leaflet-864px.jpg +0 -0
- data/bower_components/leaflet/docs/docs/images/2016-07-18-remote-session.png +0 -0
- data/bower_components/leaflet/docs/docs/images/2016-07-18-tooltip.png +0 -0
- data/bower_components/leaflet/docs/docs/images/2016-08-03-iraq-hacking.jpg +0 -0
- data/bower_components/leaflet/docs/docs/images/favicon.ico +0 -0
- data/bower_components/leaflet/docs/docs/images/forum-round.png +0 -0
- data/bower_components/leaflet/docs/docs/images/github-round.png +0 -0
- data/bower_components/leaflet/docs/docs/images/logo.png +0 -0
- data/bower_components/leaflet/docs/docs/images/logos.png +0 -0
- data/bower_components/leaflet/docs/docs/images/sprite.png +0 -0
- data/bower_components/leaflet/docs/docs/images/sprite.svg +75 -0
- data/bower_components/leaflet/docs/docs/images/twitter-round.png +0 -0
- data/bower_components/leaflet/docs/docs/images/twitter.png +0 -0
- data/bower_components/leaflet/docs/docs/js/docs.js +52 -0
- data/bower_components/leaflet/docs/download.md +95 -0
- data/bower_components/leaflet/docs/examples.md +125 -0
- data/bower_components/leaflet/docs/examples/choropleth-example.md +5 -0
- data/bower_components/leaflet/docs/examples/choropleth.md +5 -0
- data/bower_components/leaflet/docs/examples/choropleth/example-basic.md +20 -0
- data/bower_components/leaflet/docs/examples/choropleth/example-color.md +46 -0
- data/bower_components/leaflet/docs/examples/choropleth/example.md +159 -0
- data/bower_components/leaflet/docs/examples/choropleth/index.md +232 -0
- data/bower_components/leaflet/docs/examples/choropleth/thumbnail.png +0 -0
- data/bower_components/leaflet/docs/examples/choropleth/us-states.js +54 -0
- data/bower_components/leaflet/docs/examples/crs-simple/crs-simple-example1.md +16 -0
- data/bower_components/leaflet/docs/examples/crs-simple/crs-simple-example2.md +20 -0
- data/bower_components/leaflet/docs/examples/crs-simple/crs-simple-example3.md +38 -0
- data/bower_components/leaflet/docs/examples/crs-simple/crs-simple.md +117 -0
- data/bower_components/leaflet/docs/examples/crs-simple/thumbnail.png +0 -0
- data/bower_components/leaflet/docs/examples/crs-simple/uqm_map_400px.png +0 -0
- data/bower_components/leaflet/docs/examples/crs-simple/uqm_map_detail.png +0 -0
- data/bower_components/leaflet/docs/examples/crs-simple/uqm_map_full.png +0 -0
- data/bower_components/leaflet/docs/examples/custom-icons-example.md +5 -0
- data/bower_components/leaflet/docs/examples/custom-icons.md +5 -0
- data/bower_components/leaflet/docs/examples/custom-icons/example-one-icon.md +27 -0
- data/bower_components/leaflet/docs/examples/custom-icons/example.md +31 -0
- data/bower_components/leaflet/docs/examples/custom-icons/index.md +79 -0
- data/bower_components/leaflet/docs/examples/custom-icons/leaf-green.png +0 -0
- data/bower_components/leaflet/docs/examples/custom-icons/leaf-orange.png +0 -0
- data/bower_components/leaflet/docs/examples/custom-icons/leaf-red.png +0 -0
- data/bower_components/leaflet/docs/examples/custom-icons/leaf-shadow.png +0 -0
- data/bower_components/leaflet/docs/examples/custom-icons/thumbnail.png +0 -0
- data/bower_components/leaflet/docs/examples/extending/canvascircles.md +37 -0
- data/bower_components/leaflet/docs/examples/extending/class-diagram.md +24 -0
- data/bower_components/leaflet/docs/examples/extending/class-diagram.png +0 -0
- data/bower_components/leaflet/docs/examples/extending/class-diagram.txt +100 -0
- data/bower_components/leaflet/docs/examples/extending/extending-1-classes.md +196 -0
- data/bower_components/leaflet/docs/examples/extending/extending-2-layers.md +210 -0
- data/bower_components/leaflet/docs/examples/extending/extending-3-controls.md +100 -0
- data/bower_components/leaflet/docs/examples/extending/gridcoords.md +32 -0
- data/bower_components/leaflet/docs/examples/extending/kittenlayer.md +29 -0
- data/bower_components/leaflet/docs/examples/extending/pixelorigin.md +90 -0
- data/bower_components/leaflet/docs/examples/extending/thumbnail-1.png +0 -0
- data/bower_components/leaflet/docs/examples/extending/thumbnail-2.png +0 -0
- data/bower_components/leaflet/docs/examples/extending/thumbnail-3.png +0 -0
- data/bower_components/leaflet/docs/examples/extending/tilt.md +59 -0
- data/bower_components/leaflet/docs/examples/extending/watermark.md +36 -0
- data/bower_components/leaflet/docs/examples/geojson-example.md +5 -0
- data/bower_components/leaflet/docs/examples/geojson.md +5 -0
- data/bower_components/leaflet/docs/examples/geojson/baseball-marker.png +0 -0
- data/bower_components/leaflet/docs/examples/geojson/example.md +78 -0
- data/bower_components/leaflet/docs/examples/geojson/geojson-example.html +89 -0
- data/bower_components/leaflet/docs/examples/geojson/geojson.html +281 -0
- data/bower_components/leaflet/docs/examples/geojson/index.md +205 -0
- data/bower_components/leaflet/docs/examples/geojson/sample-geojson.js +248 -0
- data/bower_components/leaflet/docs/examples/geojson/thumbnail.png +0 -0
- data/bower_components/leaflet/docs/examples/layers-control-example.md +5 -0
- data/bower_components/leaflet/docs/examples/layers-control.md +5 -0
- data/bower_components/leaflet/docs/examples/layers-control/example.md +38 -0
- data/bower_components/leaflet/docs/examples/layers-control/index.md +72 -0
- data/bower_components/leaflet/docs/examples/layers-control/thumbnail.png +0 -0
- data/bower_components/leaflet/docs/examples/map-panes-example.md +5 -0
- data/bower_components/leaflet/docs/examples/map-panes.md +5 -0
- data/bower_components/leaflet/docs/examples/map-panes/eu-countries.js +79 -0
- data/bower_components/leaflet/docs/examples/map-panes/example.md +38 -0
- data/bower_components/leaflet/docs/examples/map-panes/index.md +105 -0
- data/bower_components/leaflet/docs/examples/map-panes/thumbnail.png +0 -0
- data/bower_components/leaflet/docs/examples/mobile-example.md +5 -0
- data/bower_components/leaflet/docs/examples/mobile.md +5 -0
- data/bower_components/leaflet/docs/examples/mobile/example.md +42 -0
- data/bower_components/leaflet/docs/examples/mobile/index.md +72 -0
- data/bower_components/leaflet/docs/examples/mobile/thumbnail.png +0 -0
- data/bower_components/leaflet/docs/examples/quick-start-example.md +5 -0
- data/bower_components/leaflet/docs/examples/quick-start.md +5 -0
- data/bower_components/leaflet/docs/examples/quick-start/example-basic.md +19 -0
- data/bower_components/leaflet/docs/examples/quick-start/example-overlays.md +35 -0
- data/bower_components/leaflet/docs/examples/quick-start/example-popups.md +37 -0
- data/bower_components/leaflet/docs/examples/quick-start/example.md +46 -0
- data/bower_components/leaflet/docs/examples/quick-start/index.md +143 -0
- data/bower_components/leaflet/docs/examples/quick-start/thumbnail.png +0 -0
- data/bower_components/leaflet/docs/examples/video-overlay/example-bounds.md +23 -0
- data/bower_components/leaflet/docs/examples/video-overlay/example-nocontrols.md +31 -0
- data/bower_components/leaflet/docs/examples/video-overlay/example.md +58 -0
- data/bower_components/leaflet/docs/examples/video-overlay/index.md +122 -0
- data/bower_components/leaflet/docs/examples/video-overlay/thumbnail.gif +0 -0
- data/bower_components/leaflet/docs/examples/wms/qgis-wms-layers.png +0 -0
- data/bower_components/leaflet/docs/examples/wms/thumbnail.png +0 -0
- data/bower_components/leaflet/docs/examples/wms/wms-example-crs.md +18 -0
- data/bower_components/leaflet/docs/examples/wms/wms-example1.md +16 -0
- data/bower_components/leaflet/docs/examples/wms/wms-example2.md +16 -0
- data/bower_components/leaflet/docs/examples/wms/wms-example3.md +34 -0
- data/bower_components/leaflet/docs/examples/wms/wms-example4.md +29 -0
- data/bower_components/leaflet/docs/examples/wms/wms.md +157 -0
- data/bower_components/leaflet/docs/examples/zoom-levels/example-delta.md +40 -0
- data/bower_components/leaflet/docs/examples/zoom-levels/example-fractional.md +56 -0
- data/bower_components/leaflet/docs/examples/zoom-levels/example-scale.md +29 -0
- data/bower_components/leaflet/docs/examples/zoom-levels/example-setzoom.md +44 -0
- data/bower_components/leaflet/docs/examples/zoom-levels/example-zero.md +19 -0
- data/bower_components/leaflet/docs/examples/zoom-levels/index.md +275 -0
- data/bower_components/leaflet/docs/examples/zoom-levels/thumbnail.png +0 -0
- data/bower_components/leaflet/docs/index.html +218 -0
- data/bower_components/leaflet/docs/plugins.md +3854 -0
- data/bower_components/leaflet/docs/reference-0.7.7.html +6424 -0
- data/bower_components/leaflet/docs/reference-1.0.0.html +22889 -0
- data/bower_components/leaflet/docs/reference-1.0.2.html +23382 -0
- data/bower_components/leaflet/docs/reference-1.0.3.html +23495 -0
- data/bower_components/leaflet/docs/reference-tpl.html +89 -0
- data/bower_components/leaflet/docs/reference-versions.html +16 -0
- data/bower_components/leaflet/docs/reference.html +3 -0
- data/bower_components/leaflet/package.json +77 -16
- data/columbus3.gemspec +1 -1
- data/doc/ChangeLog.org +10 -0
- data/doc/manual.txt +122 -0
- data/doc/todo.org +63 -0
- data/exe/columbus3 +2 -246
- data/lib/columbus3.rb +12 -7
- data/lib/columbus3/cli/command_semantics.rb +352 -0
- data/lib/columbus3/cli/command_syntax.rb +103 -0
- data/lib/columbus3/metadata/query_parser.racc +21 -7
- data/lib/columbus3/metadata/query_parser.tab.rb +34 -34
- data/lib/columbus3/metadata/sidecar.rb +1 -1
- data/lib/columbus3/renderer/flot_renderer.rb +3 -8
- data/lib/columbus3/renderer/leaflet_renderer.rb +18 -29
- data/lib/columbus3/renderer/sanitizer.rb +8 -0
- data/lib/columbus3/v900track/gpx2v900.rb +31 -0
- data/lib/columbus3/v900track/v900track.rb +34 -8
- data/lib/columbus3/v900track/v900waypoint.rb +9 -0
- data/lib/columbus3/version.rb +1 -1
- data/lib/html/flot.html.erb +6 -6
- data/lib/html/show.html.erb +53 -76
- data/lib/html/track.js.erb +58 -12
- metadata +222 -23
- data/README.textile +0 -67
- data/bower_components/jquery/src/ajax/parseJSON.js +0 -13
- data/bower_components/jquery/src/css/defaultDisplay.js +0 -70
- data/bower_components/jquery/src/css/var/isHidden.js +0 -13
- data/bower_components/jquery/src/intro.js +0 -44
- data/bower_components/jquery/src/outro.js +0 -1
- data/bower_components/jquery/src/sizzle/dist/sizzle.min.js +0 -3
- data/bower_components/jquery/src/sizzle/dist/sizzle.min.map +0 -1
- data/bower_components/jquery/src/var/rnotwhite.js +0 -3
- data/bower_components/jquery/src/var/strundefined.js +0 -3
- data/bower_components/leaflet/component.json +0 -20
@@ -1,5 +1,13 @@
|
|
1
|
-
Copyright
|
2
|
-
|
1
|
+
Copyright JS Foundation and other contributors, https://js.foundation/
|
2
|
+
|
3
|
+
This software consists of voluntary contributions made by many
|
4
|
+
individuals. For exact contribution history, see the revision history
|
5
|
+
available at https://github.com/jquery/jquery
|
6
|
+
|
7
|
+
The following license applies to all parts of this software except as
|
8
|
+
documented below:
|
9
|
+
|
10
|
+
====
|
3
11
|
|
4
12
|
Permission is hereby granted, free of charge, to any person obtaining
|
5
13
|
a copy of this software and associated documentation files (the
|
@@ -19,3 +27,10 @@ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
|
19
27
|
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
20
28
|
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
21
29
|
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
30
|
+
|
31
|
+
====
|
32
|
+
|
33
|
+
All files located in the node_modules and external directories are
|
34
|
+
externally maintained libraries used by this software which have their
|
35
|
+
own licenses; we recommend you read them, as their terms may differ from
|
36
|
+
the terms above.
|
@@ -0,0 +1,67 @@
|
|
1
|
+
# jQuery
|
2
|
+
|
3
|
+
> jQuery is a fast, small, and feature-rich JavaScript library.
|
4
|
+
|
5
|
+
For information on how to get started and how to use jQuery, please see [jQuery's documentation](http://api.jquery.com/).
|
6
|
+
For source files and issues, please visit the [jQuery repo](https://github.com/jquery/jquery).
|
7
|
+
|
8
|
+
If upgrading, please see the [blog post for 3.2.1](https://blog.jquery.com/2017/03/20/jquery-3-2-1-now-available/). This includes notable differences from the previous version and a more readable changelog.
|
9
|
+
|
10
|
+
## Including jQuery
|
11
|
+
|
12
|
+
Below are some of the most common ways to include jQuery.
|
13
|
+
|
14
|
+
### Browser
|
15
|
+
|
16
|
+
#### Script tag
|
17
|
+
|
18
|
+
```html
|
19
|
+
<script src="https://code.jquery.com/jquery-3.2.1.min.js"></script>
|
20
|
+
```
|
21
|
+
|
22
|
+
#### Babel
|
23
|
+
|
24
|
+
[Babel](http://babeljs.io/) is a next generation JavaScript compiler. One of the features is the ability to use ES6/ES2015 modules now, even though browsers do not yet support this feature natively.
|
25
|
+
|
26
|
+
```js
|
27
|
+
import $ from "jquery";
|
28
|
+
```
|
29
|
+
|
30
|
+
#### Browserify/Webpack
|
31
|
+
|
32
|
+
There are several ways to use [Browserify](http://browserify.org/) and [Webpack](https://webpack.github.io/). For more information on using these tools, please refer to the corresponding project's documention. In the script, including jQuery will usually look like this...
|
33
|
+
|
34
|
+
```js
|
35
|
+
var $ = require("jquery");
|
36
|
+
```
|
37
|
+
|
38
|
+
#### AMD (Asynchronous Module Definition)
|
39
|
+
|
40
|
+
AMD is a module format built for the browser. For more information, we recommend [require.js' documentation](http://requirejs.org/docs/whyamd.html).
|
41
|
+
|
42
|
+
```js
|
43
|
+
define(["jquery"], function($) {
|
44
|
+
|
45
|
+
});
|
46
|
+
```
|
47
|
+
|
48
|
+
### Node
|
49
|
+
|
50
|
+
To include jQuery in [Node](nodejs.org), first install with npm.
|
51
|
+
|
52
|
+
```sh
|
53
|
+
npm install jquery
|
54
|
+
```
|
55
|
+
|
56
|
+
For jQuery to work in Node, a window with a document is required. Since no such window exists natively in Node, one can be mocked by tools such as [jsdom](https://github.com/tmpvar/jsdom). This can be useful for testing purposes.
|
57
|
+
|
58
|
+
```js
|
59
|
+
require("jsdom").env("", function(err, window) {
|
60
|
+
if (err) {
|
61
|
+
console.error(err);
|
62
|
+
return;
|
63
|
+
}
|
64
|
+
|
65
|
+
var $ = require("jquery")(window);
|
66
|
+
});
|
67
|
+
```
|
@@ -1,28 +1,14 @@
|
|
1
1
|
{
|
2
2
|
"name": "jquery",
|
3
|
-
"version": "2.1.4",
|
4
3
|
"main": "dist/jquery.js",
|
5
4
|
"license": "MIT",
|
6
5
|
"ignore": [
|
7
|
-
"**/.*",
|
8
|
-
"build",
|
9
|
-
"dist/cdn",
|
10
|
-
"speed",
|
11
|
-
"test",
|
12
|
-
"*.md",
|
13
|
-
"AUTHORS.txt",
|
14
|
-
"Gruntfile.js",
|
15
6
|
"package.json"
|
16
7
|
],
|
17
|
-
"devDependencies": {
|
18
|
-
"sizzle": "2.1.1-jquery.2.1.2",
|
19
|
-
"requirejs": "2.1.10",
|
20
|
-
"qunit": "1.14.0",
|
21
|
-
"sinon": "1.8.1"
|
22
|
-
},
|
23
8
|
"keywords": [
|
24
9
|
"jquery",
|
25
10
|
"javascript",
|
11
|
+
"browser",
|
26
12
|
"library"
|
27
13
|
]
|
28
|
-
}
|
14
|
+
}
|
@@ -0,0 +1,476 @@
|
|
1
|
+
/* global Symbol */
|
2
|
+
// Defining this global in .eslintrc.json would create a danger of using the global
|
3
|
+
// unguarded in another place, it seems safer to define global only for this module
|
4
|
+
|
5
|
+
define( [
|
6
|
+
"./var/arr",
|
7
|
+
"./var/document",
|
8
|
+
"./var/getProto",
|
9
|
+
"./var/slice",
|
10
|
+
"./var/concat",
|
11
|
+
"./var/push",
|
12
|
+
"./var/indexOf",
|
13
|
+
"./var/class2type",
|
14
|
+
"./var/toString",
|
15
|
+
"./var/hasOwn",
|
16
|
+
"./var/fnToString",
|
17
|
+
"./var/ObjectFunctionString",
|
18
|
+
"./var/support",
|
19
|
+
"./core/DOMEval"
|
20
|
+
], function( arr, document, getProto, slice, concat, push, indexOf,
|
21
|
+
class2type, toString, hasOwn, fnToString, ObjectFunctionString,
|
22
|
+
support, DOMEval ) {
|
23
|
+
|
24
|
+
"use strict";
|
25
|
+
|
26
|
+
var
|
27
|
+
version = "3.2.1",
|
28
|
+
|
29
|
+
// Define a local copy of jQuery
|
30
|
+
jQuery = function( selector, context ) {
|
31
|
+
|
32
|
+
// The jQuery object is actually just the init constructor 'enhanced'
|
33
|
+
// Need init if jQuery is called (just allow error to be thrown if not included)
|
34
|
+
return new jQuery.fn.init( selector, context );
|
35
|
+
},
|
36
|
+
|
37
|
+
// Support: Android <=4.0 only
|
38
|
+
// Make sure we trim BOM and NBSP
|
39
|
+
rtrim = /^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,
|
40
|
+
|
41
|
+
// Matches dashed string for camelizing
|
42
|
+
rmsPrefix = /^-ms-/,
|
43
|
+
rdashAlpha = /-([a-z])/g,
|
44
|
+
|
45
|
+
// Used by jQuery.camelCase as callback to replace()
|
46
|
+
fcamelCase = function( all, letter ) {
|
47
|
+
return letter.toUpperCase();
|
48
|
+
};
|
49
|
+
|
50
|
+
jQuery.fn = jQuery.prototype = {
|
51
|
+
|
52
|
+
// The current version of jQuery being used
|
53
|
+
jquery: version,
|
54
|
+
|
55
|
+
constructor: jQuery,
|
56
|
+
|
57
|
+
// The default length of a jQuery object is 0
|
58
|
+
length: 0,
|
59
|
+
|
60
|
+
toArray: function() {
|
61
|
+
return slice.call( this );
|
62
|
+
},
|
63
|
+
|
64
|
+
// Get the Nth element in the matched element set OR
|
65
|
+
// Get the whole matched element set as a clean array
|
66
|
+
get: function( num ) {
|
67
|
+
|
68
|
+
// Return all the elements in a clean array
|
69
|
+
if ( num == null ) {
|
70
|
+
return slice.call( this );
|
71
|
+
}
|
72
|
+
|
73
|
+
// Return just the one element from the set
|
74
|
+
return num < 0 ? this[ num + this.length ] : this[ num ];
|
75
|
+
},
|
76
|
+
|
77
|
+
// Take an array of elements and push it onto the stack
|
78
|
+
// (returning the new matched element set)
|
79
|
+
pushStack: function( elems ) {
|
80
|
+
|
81
|
+
// Build a new jQuery matched element set
|
82
|
+
var ret = jQuery.merge( this.constructor(), elems );
|
83
|
+
|
84
|
+
// Add the old object onto the stack (as a reference)
|
85
|
+
ret.prevObject = this;
|
86
|
+
|
87
|
+
// Return the newly-formed element set
|
88
|
+
return ret;
|
89
|
+
},
|
90
|
+
|
91
|
+
// Execute a callback for every element in the matched set.
|
92
|
+
each: function( callback ) {
|
93
|
+
return jQuery.each( this, callback );
|
94
|
+
},
|
95
|
+
|
96
|
+
map: function( callback ) {
|
97
|
+
return this.pushStack( jQuery.map( this, function( elem, i ) {
|
98
|
+
return callback.call( elem, i, elem );
|
99
|
+
} ) );
|
100
|
+
},
|
101
|
+
|
102
|
+
slice: function() {
|
103
|
+
return this.pushStack( slice.apply( this, arguments ) );
|
104
|
+
},
|
105
|
+
|
106
|
+
first: function() {
|
107
|
+
return this.eq( 0 );
|
108
|
+
},
|
109
|
+
|
110
|
+
last: function() {
|
111
|
+
return this.eq( -1 );
|
112
|
+
},
|
113
|
+
|
114
|
+
eq: function( i ) {
|
115
|
+
var len = this.length,
|
116
|
+
j = +i + ( i < 0 ? len : 0 );
|
117
|
+
return this.pushStack( j >= 0 && j < len ? [ this[ j ] ] : [] );
|
118
|
+
},
|
119
|
+
|
120
|
+
end: function() {
|
121
|
+
return this.prevObject || this.constructor();
|
122
|
+
},
|
123
|
+
|
124
|
+
// For internal use only.
|
125
|
+
// Behaves like an Array's method, not like a jQuery method.
|
126
|
+
push: push,
|
127
|
+
sort: arr.sort,
|
128
|
+
splice: arr.splice
|
129
|
+
};
|
130
|
+
|
131
|
+
jQuery.extend = jQuery.fn.extend = function() {
|
132
|
+
var options, name, src, copy, copyIsArray, clone,
|
133
|
+
target = arguments[ 0 ] || {},
|
134
|
+
i = 1,
|
135
|
+
length = arguments.length,
|
136
|
+
deep = false;
|
137
|
+
|
138
|
+
// Handle a deep copy situation
|
139
|
+
if ( typeof target === "boolean" ) {
|
140
|
+
deep = target;
|
141
|
+
|
142
|
+
// Skip the boolean and the target
|
143
|
+
target = arguments[ i ] || {};
|
144
|
+
i++;
|
145
|
+
}
|
146
|
+
|
147
|
+
// Handle case when target is a string or something (possible in deep copy)
|
148
|
+
if ( typeof target !== "object" && !jQuery.isFunction( target ) ) {
|
149
|
+
target = {};
|
150
|
+
}
|
151
|
+
|
152
|
+
// Extend jQuery itself if only one argument is passed
|
153
|
+
if ( i === length ) {
|
154
|
+
target = this;
|
155
|
+
i--;
|
156
|
+
}
|
157
|
+
|
158
|
+
for ( ; i < length; i++ ) {
|
159
|
+
|
160
|
+
// Only deal with non-null/undefined values
|
161
|
+
if ( ( options = arguments[ i ] ) != null ) {
|
162
|
+
|
163
|
+
// Extend the base object
|
164
|
+
for ( name in options ) {
|
165
|
+
src = target[ name ];
|
166
|
+
copy = options[ name ];
|
167
|
+
|
168
|
+
// Prevent never-ending loop
|
169
|
+
if ( target === copy ) {
|
170
|
+
continue;
|
171
|
+
}
|
172
|
+
|
173
|
+
// Recurse if we're merging plain objects or arrays
|
174
|
+
if ( deep && copy && ( jQuery.isPlainObject( copy ) ||
|
175
|
+
( copyIsArray = Array.isArray( copy ) ) ) ) {
|
176
|
+
|
177
|
+
if ( copyIsArray ) {
|
178
|
+
copyIsArray = false;
|
179
|
+
clone = src && Array.isArray( src ) ? src : [];
|
180
|
+
|
181
|
+
} else {
|
182
|
+
clone = src && jQuery.isPlainObject( src ) ? src : {};
|
183
|
+
}
|
184
|
+
|
185
|
+
// Never move original objects, clone them
|
186
|
+
target[ name ] = jQuery.extend( deep, clone, copy );
|
187
|
+
|
188
|
+
// Don't bring in undefined values
|
189
|
+
} else if ( copy !== undefined ) {
|
190
|
+
target[ name ] = copy;
|
191
|
+
}
|
192
|
+
}
|
193
|
+
}
|
194
|
+
}
|
195
|
+
|
196
|
+
// Return the modified object
|
197
|
+
return target;
|
198
|
+
};
|
199
|
+
|
200
|
+
jQuery.extend( {
|
201
|
+
|
202
|
+
// Unique for each copy of jQuery on the page
|
203
|
+
expando: "jQuery" + ( version + Math.random() ).replace( /\D/g, "" ),
|
204
|
+
|
205
|
+
// Assume jQuery is ready without the ready module
|
206
|
+
isReady: true,
|
207
|
+
|
208
|
+
error: function( msg ) {
|
209
|
+
throw new Error( msg );
|
210
|
+
},
|
211
|
+
|
212
|
+
noop: function() {},
|
213
|
+
|
214
|
+
isFunction: function( obj ) {
|
215
|
+
return jQuery.type( obj ) === "function";
|
216
|
+
},
|
217
|
+
|
218
|
+
isWindow: function( obj ) {
|
219
|
+
return obj != null && obj === obj.window;
|
220
|
+
},
|
221
|
+
|
222
|
+
isNumeric: function( obj ) {
|
223
|
+
|
224
|
+
// As of jQuery 3.0, isNumeric is limited to
|
225
|
+
// strings and numbers (primitives or objects)
|
226
|
+
// that can be coerced to finite numbers (gh-2662)
|
227
|
+
var type = jQuery.type( obj );
|
228
|
+
return ( type === "number" || type === "string" ) &&
|
229
|
+
|
230
|
+
// parseFloat NaNs numeric-cast false positives ("")
|
231
|
+
// ...but misinterprets leading-number strings, particularly hex literals ("0x...")
|
232
|
+
// subtraction forces infinities to NaN
|
233
|
+
!isNaN( obj - parseFloat( obj ) );
|
234
|
+
},
|
235
|
+
|
236
|
+
isPlainObject: function( obj ) {
|
237
|
+
var proto, Ctor;
|
238
|
+
|
239
|
+
// Detect obvious negatives
|
240
|
+
// Use toString instead of jQuery.type to catch host objects
|
241
|
+
if ( !obj || toString.call( obj ) !== "[object Object]" ) {
|
242
|
+
return false;
|
243
|
+
}
|
244
|
+
|
245
|
+
proto = getProto( obj );
|
246
|
+
|
247
|
+
// Objects with no prototype (e.g., `Object.create( null )`) are plain
|
248
|
+
if ( !proto ) {
|
249
|
+
return true;
|
250
|
+
}
|
251
|
+
|
252
|
+
// Objects with prototype are plain iff they were constructed by a global Object function
|
253
|
+
Ctor = hasOwn.call( proto, "constructor" ) && proto.constructor;
|
254
|
+
return typeof Ctor === "function" && fnToString.call( Ctor ) === ObjectFunctionString;
|
255
|
+
},
|
256
|
+
|
257
|
+
isEmptyObject: function( obj ) {
|
258
|
+
|
259
|
+
/* eslint-disable no-unused-vars */
|
260
|
+
// See https://github.com/eslint/eslint/issues/6125
|
261
|
+
var name;
|
262
|
+
|
263
|
+
for ( name in obj ) {
|
264
|
+
return false;
|
265
|
+
}
|
266
|
+
return true;
|
267
|
+
},
|
268
|
+
|
269
|
+
type: function( obj ) {
|
270
|
+
if ( obj == null ) {
|
271
|
+
return obj + "";
|
272
|
+
}
|
273
|
+
|
274
|
+
// Support: Android <=2.3 only (functionish RegExp)
|
275
|
+
return typeof obj === "object" || typeof obj === "function" ?
|
276
|
+
class2type[ toString.call( obj ) ] || "object" :
|
277
|
+
typeof obj;
|
278
|
+
},
|
279
|
+
|
280
|
+
// Evaluates a script in a global context
|
281
|
+
globalEval: function( code ) {
|
282
|
+
DOMEval( code );
|
283
|
+
},
|
284
|
+
|
285
|
+
// Convert dashed to camelCase; used by the css and data modules
|
286
|
+
// Support: IE <=9 - 11, Edge 12 - 13
|
287
|
+
// Microsoft forgot to hump their vendor prefix (#9572)
|
288
|
+
camelCase: function( string ) {
|
289
|
+
return string.replace( rmsPrefix, "ms-" ).replace( rdashAlpha, fcamelCase );
|
290
|
+
},
|
291
|
+
|
292
|
+
each: function( obj, callback ) {
|
293
|
+
var length, i = 0;
|
294
|
+
|
295
|
+
if ( isArrayLike( obj ) ) {
|
296
|
+
length = obj.length;
|
297
|
+
for ( ; i < length; i++ ) {
|
298
|
+
if ( callback.call( obj[ i ], i, obj[ i ] ) === false ) {
|
299
|
+
break;
|
300
|
+
}
|
301
|
+
}
|
302
|
+
} else {
|
303
|
+
for ( i in obj ) {
|
304
|
+
if ( callback.call( obj[ i ], i, obj[ i ] ) === false ) {
|
305
|
+
break;
|
306
|
+
}
|
307
|
+
}
|
308
|
+
}
|
309
|
+
|
310
|
+
return obj;
|
311
|
+
},
|
312
|
+
|
313
|
+
// Support: Android <=4.0 only
|
314
|
+
trim: function( text ) {
|
315
|
+
return text == null ?
|
316
|
+
"" :
|
317
|
+
( text + "" ).replace( rtrim, "" );
|
318
|
+
},
|
319
|
+
|
320
|
+
// results is for internal usage only
|
321
|
+
makeArray: function( arr, results ) {
|
322
|
+
var ret = results || [];
|
323
|
+
|
324
|
+
if ( arr != null ) {
|
325
|
+
if ( isArrayLike( Object( arr ) ) ) {
|
326
|
+
jQuery.merge( ret,
|
327
|
+
typeof arr === "string" ?
|
328
|
+
[ arr ] : arr
|
329
|
+
);
|
330
|
+
} else {
|
331
|
+
push.call( ret, arr );
|
332
|
+
}
|
333
|
+
}
|
334
|
+
|
335
|
+
return ret;
|
336
|
+
},
|
337
|
+
|
338
|
+
inArray: function( elem, arr, i ) {
|
339
|
+
return arr == null ? -1 : indexOf.call( arr, elem, i );
|
340
|
+
},
|
341
|
+
|
342
|
+
// Support: Android <=4.0 only, PhantomJS 1 only
|
343
|
+
// push.apply(_, arraylike) throws on ancient WebKit
|
344
|
+
merge: function( first, second ) {
|
345
|
+
var len = +second.length,
|
346
|
+
j = 0,
|
347
|
+
i = first.length;
|
348
|
+
|
349
|
+
for ( ; j < len; j++ ) {
|
350
|
+
first[ i++ ] = second[ j ];
|
351
|
+
}
|
352
|
+
|
353
|
+
first.length = i;
|
354
|
+
|
355
|
+
return first;
|
356
|
+
},
|
357
|
+
|
358
|
+
grep: function( elems, callback, invert ) {
|
359
|
+
var callbackInverse,
|
360
|
+
matches = [],
|
361
|
+
i = 0,
|
362
|
+
length = elems.length,
|
363
|
+
callbackExpect = !invert;
|
364
|
+
|
365
|
+
// Go through the array, only saving the items
|
366
|
+
// that pass the validator function
|
367
|
+
for ( ; i < length; i++ ) {
|
368
|
+
callbackInverse = !callback( elems[ i ], i );
|
369
|
+
if ( callbackInverse !== callbackExpect ) {
|
370
|
+
matches.push( elems[ i ] );
|
371
|
+
}
|
372
|
+
}
|
373
|
+
|
374
|
+
return matches;
|
375
|
+
},
|
376
|
+
|
377
|
+
// arg is for internal usage only
|
378
|
+
map: function( elems, callback, arg ) {
|
379
|
+
var length, value,
|
380
|
+
i = 0,
|
381
|
+
ret = [];
|
382
|
+
|
383
|
+
// Go through the array, translating each of the items to their new values
|
384
|
+
if ( isArrayLike( elems ) ) {
|
385
|
+
length = elems.length;
|
386
|
+
for ( ; i < length; i++ ) {
|
387
|
+
value = callback( elems[ i ], i, arg );
|
388
|
+
|
389
|
+
if ( value != null ) {
|
390
|
+
ret.push( value );
|
391
|
+
}
|
392
|
+
}
|
393
|
+
|
394
|
+
// Go through every key on the object,
|
395
|
+
} else {
|
396
|
+
for ( i in elems ) {
|
397
|
+
value = callback( elems[ i ], i, arg );
|
398
|
+
|
399
|
+
if ( value != null ) {
|
400
|
+
ret.push( value );
|
401
|
+
}
|
402
|
+
}
|
403
|
+
}
|
404
|
+
|
405
|
+
// Flatten any nested arrays
|
406
|
+
return concat.apply( [], ret );
|
407
|
+
},
|
408
|
+
|
409
|
+
// A global GUID counter for objects
|
410
|
+
guid: 1,
|
411
|
+
|
412
|
+
// Bind a function to a context, optionally partially applying any
|
413
|
+
// arguments.
|
414
|
+
proxy: function( fn, context ) {
|
415
|
+
var tmp, args, proxy;
|
416
|
+
|
417
|
+
if ( typeof context === "string" ) {
|
418
|
+
tmp = fn[ context ];
|
419
|
+
context = fn;
|
420
|
+
fn = tmp;
|
421
|
+
}
|
422
|
+
|
423
|
+
// Quick check to determine if target is callable, in the spec
|
424
|
+
// this throws a TypeError, but we will just return undefined.
|
425
|
+
if ( !jQuery.isFunction( fn ) ) {
|
426
|
+
return undefined;
|
427
|
+
}
|
428
|
+
|
429
|
+
// Simulated bind
|
430
|
+
args = slice.call( arguments, 2 );
|
431
|
+
proxy = function() {
|
432
|
+
return fn.apply( context || this, args.concat( slice.call( arguments ) ) );
|
433
|
+
};
|
434
|
+
|
435
|
+
// Set the guid of unique handler to the same of original handler, so it can be removed
|
436
|
+
proxy.guid = fn.guid = fn.guid || jQuery.guid++;
|
437
|
+
|
438
|
+
return proxy;
|
439
|
+
},
|
440
|
+
|
441
|
+
now: Date.now,
|
442
|
+
|
443
|
+
// jQuery.support is not used in Core but other projects attach their
|
444
|
+
// properties to it so it needs to exist.
|
445
|
+
support: support
|
446
|
+
} );
|
447
|
+
|
448
|
+
if ( typeof Symbol === "function" ) {
|
449
|
+
jQuery.fn[ Symbol.iterator ] = arr[ Symbol.iterator ];
|
450
|
+
}
|
451
|
+
|
452
|
+
// Populate the class2type map
|
453
|
+
jQuery.each( "Boolean Number String Function Array Date RegExp Object Error Symbol".split( " " ),
|
454
|
+
function( i, name ) {
|
455
|
+
class2type[ "[object " + name + "]" ] = name.toLowerCase();
|
456
|
+
} );
|
457
|
+
|
458
|
+
function isArrayLike( obj ) {
|
459
|
+
|
460
|
+
// Support: real iOS 8.2 only (not reproducible in simulator)
|
461
|
+
// `in` check used to prevent JIT error (gh-2145)
|
462
|
+
// hasOwn isn't used here due to false negatives
|
463
|
+
// regarding Nodelist length in IE
|
464
|
+
var length = !!obj && "length" in obj && obj.length,
|
465
|
+
type = jQuery.type( obj );
|
466
|
+
|
467
|
+
if ( type === "function" || jQuery.isWindow( obj ) ) {
|
468
|
+
return false;
|
469
|
+
}
|
470
|
+
|
471
|
+
return type === "array" || length === 0 ||
|
472
|
+
typeof length === "number" && length > 0 && ( length - 1 ) in obj;
|
473
|
+
}
|
474
|
+
|
475
|
+
return jQuery;
|
476
|
+
} );
|