postrest 0.0.3 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (234) hide show
  1. checksums.yaml +4 -4
  2. data/lib/app.rb +1 -1
  3. data/public/index.htm +116 -0
  4. data/public/node_modules/pivottable/CONTRIBUTING.md +19 -0
  5. data/public/node_modules/pivottable/LICENSE.md +9 -0
  6. data/public/node_modules/pivottable/ReadMe.md +155 -0
  7. data/public/node_modules/pivottable/bower.json +31 -0
  8. data/public/node_modules/pivottable/c3_renderers.coffee +155 -0
  9. data/public/node_modules/pivottable/d3_renderers.coffee +73 -0
  10. data/public/node_modules/pivottable/dist/c3_renderers.js +256 -0
  11. data/public/node_modules/pivottable/dist/c3_renderers.js.map +1 -0
  12. data/public/node_modules/pivottable/dist/c3_renderers.min.js +2 -0
  13. data/public/node_modules/pivottable/dist/c3_renderers.min.js.map +1 -0
  14. data/public/node_modules/pivottable/dist/d3_renderers.js +105 -0
  15. data/public/node_modules/pivottable/dist/d3_renderers.js.map +1 -0
  16. data/public/node_modules/pivottable/dist/d3_renderers.min.js +2 -0
  17. data/public/node_modules/pivottable/dist/d3_renderers.min.js.map +1 -0
  18. data/public/node_modules/pivottable/dist/export_renderers.js +80 -0
  19. data/public/node_modules/pivottable/dist/export_renderers.js.map +1 -0
  20. data/public/node_modules/pivottable/dist/export_renderers.min.js +2 -0
  21. data/public/node_modules/pivottable/dist/export_renderers.min.js.map +1 -0
  22. data/public/node_modules/pivottable/dist/gchart_renderers.js +183 -0
  23. data/public/node_modules/pivottable/dist/gchart_renderers.js.map +1 -0
  24. data/public/node_modules/pivottable/dist/gchart_renderers.min.js +2 -0
  25. data/public/node_modules/pivottable/dist/gchart_renderers.min.js.map +1 -0
  26. data/public/node_modules/pivottable/dist/pivot.css +97 -0
  27. data/public/node_modules/pivottable/dist/pivot.es.js +78 -0
  28. data/public/node_modules/pivottable/dist/pivot.es.js.map +1 -0
  29. data/public/node_modules/pivottable/dist/pivot.es.min.js +2 -0
  30. data/public/node_modules/pivottable/dist/pivot.es.min.js.map +1 -0
  31. data/public/node_modules/pivottable/dist/pivot.fr.js +78 -0
  32. data/public/node_modules/pivottable/dist/pivot.fr.js.map +1 -0
  33. data/public/node_modules/pivottable/dist/pivot.fr.min.js +2 -0
  34. data/public/node_modules/pivottable/dist/pivot.fr.min.js.map +1 -0
  35. data/public/node_modules/pivottable/dist/pivot.js +1511 -0
  36. data/public/node_modules/pivottable/dist/pivot.js.map +1 -0
  37. data/public/node_modules/pivottable/dist/pivot.min.css +1 -0
  38. data/public/node_modules/pivottable/dist/pivot.min.js +2 -0
  39. data/public/node_modules/pivottable/dist/pivot.min.js.map +1 -0
  40. data/public/node_modules/pivottable/dist/pivot.nl.js +78 -0
  41. data/public/node_modules/pivottable/dist/pivot.nl.js.map +1 -0
  42. data/public/node_modules/pivottable/dist/pivot.nl.min.js +2 -0
  43. data/public/node_modules/pivottable/dist/pivot.nl.min.js.map +1 -0
  44. data/public/node_modules/pivottable/dist/pivot.pt.js +104 -0
  45. data/public/node_modules/pivottable/dist/pivot.pt.js.map +1 -0
  46. data/public/node_modules/pivottable/dist/pivot.pt.min.js +2 -0
  47. data/public/node_modules/pivottable/dist/pivot.pt.min.js.map +1 -0
  48. data/public/node_modules/pivottable/dist/pivot.ru.js +78 -0
  49. data/public/node_modules/pivottable/dist/pivot.ru.js.map +1 -0
  50. data/public/node_modules/pivottable/dist/pivot.ru.min.js +2 -0
  51. data/public/node_modules/pivottable/dist/pivot.ru.min.js.map +1 -0
  52. data/public/node_modules/pivottable/dist/pivot.tr.js +104 -0
  53. data/public/node_modules/pivottable/dist/pivot.tr.js.map +1 -0
  54. data/public/node_modules/pivottable/dist/pivot.tr.min.js +2 -0
  55. data/public/node_modules/pivottable/dist/pivot.tr.min.js.map +1 -0
  56. data/public/node_modules/pivottable/dist/tips_data.min.js +247 -0
  57. data/public/node_modules/pivottable/examples/c3.html +61 -0
  58. data/public/node_modules/pivottable/examples/d3.html +49 -0
  59. data/public/node_modules/pivottable/examples/fully_loaded.html +80 -0
  60. data/public/node_modules/pivottable/examples/gchart.html +53 -0
  61. data/public/node_modules/pivottable/examples/gh-fork-ribbon.css +140 -0
  62. data/public/node_modules/pivottable/examples/gh-fork-ribbon.ie.css +78 -0
  63. data/public/node_modules/pivottable/examples/index.html +85 -0
  64. data/public/node_modules/pivottable/examples/local.html +74 -0
  65. data/public/node_modules/pivottable/examples/montreal_2014.csv +366 -0
  66. data/public/node_modules/pivottable/examples/montreal_2014.html +106 -0
  67. data/public/node_modules/pivottable/examples/mps.csv +309 -0
  68. data/public/node_modules/pivottable/examples/mps.html +45 -0
  69. data/public/node_modules/pivottable/examples/mps.json +1 -0
  70. data/public/node_modules/pivottable/examples/mps_agg.html +44 -0
  71. data/public/node_modules/pivottable/examples/mps_csv.html +42 -0
  72. data/public/node_modules/pivottable/examples/mps_export.html +44 -0
  73. data/public/node_modules/pivottable/examples/mps_fr.html +40 -0
  74. data/public/node_modules/pivottable/examples/mps_prepop.html +42 -0
  75. data/public/node_modules/pivottable/examples/onrefresh.html +52 -0
  76. data/public/node_modules/pivottable/examples/rcsvs.html +87 -0
  77. data/public/node_modules/pivottable/examples/scatter.html +53 -0
  78. data/public/node_modules/pivottable/examples/show_code.js +17 -0
  79. data/public/node_modules/pivottable/examples/simple.html +41 -0
  80. data/public/node_modules/pivottable/examples/simple_agg.html +51 -0
  81. data/public/node_modules/pivottable/examples/simple_function.html +57 -0
  82. data/public/node_modules/pivottable/examples/simple_ui.html +42 -0
  83. data/public/node_modules/pivottable/examples/simple_ui_from_table.html +60 -0
  84. data/public/node_modules/pivottable/export_renderers.coffee +57 -0
  85. data/public/node_modules/pivottable/gchart_renderers.coffee +111 -0
  86. data/public/node_modules/pivottable/gulpFile.js +95 -0
  87. data/public/node_modules/pivottable/images/animation.gif +0 -0
  88. data/public/node_modules/pivottable/images/filters.png +0 -0
  89. data/public/node_modules/pivottable/images/gender_age_bins.png +0 -0
  90. data/public/node_modules/pivottable/images/gender_imbalance.png +0 -0
  91. data/public/node_modules/pivottable/images/gender_imbalance_instructions.png +0 -0
  92. data/public/node_modules/pivottable/images/initial_state.png +0 -0
  93. data/public/node_modules/pivottable/images/province_x_party_heatmap.png +0 -0
  94. data/public/node_modules/pivottable/images/province_x_party_heatmap_instructions.png +0 -0
  95. data/public/node_modules/pivottable/images/simple.png +0 -0
  96. data/public/node_modules/pivottable/images/simple_ui.png +0 -0
  97. data/public/node_modules/pivottable/images/whats_what.png +0 -0
  98. data/public/node_modules/pivottable/index.html +14 -0
  99. data/public/node_modules/pivottable/node_modules/jquery/AUTHORS.txt +278 -0
  100. data/public/node_modules/pivottable/node_modules/jquery/LICENSE.txt +36 -0
  101. data/public/node_modules/pivottable/node_modules/jquery/README.md +65 -0
  102. data/public/node_modules/pivottable/node_modules/jquery/bower.json +14 -0
  103. data/public/node_modules/pivottable/node_modules/jquery/dist/jquery.js +9842 -0
  104. data/public/node_modules/pivottable/node_modules/jquery/dist/jquery.min.js +4 -0
  105. data/public/node_modules/pivottable/node_modules/jquery/dist/jquery.min.map +1 -0
  106. data/public/node_modules/pivottable/node_modules/jquery/dist/jquery.slim.js +7877 -0
  107. data/public/node_modules/pivottable/node_modules/jquery/dist/jquery.slim.min.js +4 -0
  108. data/public/node_modules/pivottable/node_modules/jquery/dist/jquery.slim.min.map +1 -0
  109. data/public/node_modules/pivottable/node_modules/jquery/package.json +122 -0
  110. data/public/node_modules/pivottable/node_modules/jquery/sizzle/LICENSE.txt +36 -0
  111. data/public/node_modules/pivottable/node_modules/jquery/sizzle/dist/sizzle.js +2143 -0
  112. data/public/node_modules/pivottable/node_modules/jquery/sizzle/dist/sizzle.min.js +3 -0
  113. data/public/node_modules/pivottable/node_modules/jquery/sizzle/dist/sizzle.min.map +1 -0
  114. data/public/node_modules/pivottable/node_modules/jquery/src/ajax.js +845 -0
  115. data/public/node_modules/pivottable/node_modules/jquery/src/ajax/jsonp.js +100 -0
  116. data/public/node_modules/pivottable/node_modules/jquery/src/ajax/load.js +83 -0
  117. data/public/node_modules/pivottable/node_modules/jquery/src/ajax/parseJSON.js +13 -0
  118. data/public/node_modules/pivottable/node_modules/jquery/src/ajax/parseXML.js +27 -0
  119. data/public/node_modules/pivottable/node_modules/jquery/src/ajax/script.js +68 -0
  120. data/public/node_modules/pivottable/node_modules/jquery/src/ajax/var/location.js +3 -0
  121. data/public/node_modules/pivottable/node_modules/jquery/src/ajax/var/nonce.js +5 -0
  122. data/public/node_modules/pivottable/node_modules/jquery/src/ajax/var/rquery.js +3 -0
  123. data/public/node_modules/pivottable/node_modules/jquery/src/ajax/xhr.js +167 -0
  124. data/public/node_modules/pivottable/node_modules/jquery/src/attributes.js +11 -0
  125. data/public/node_modules/pivottable/node_modules/jquery/src/attributes/attr.js +142 -0
  126. data/public/node_modules/pivottable/node_modules/jquery/src/attributes/classes.js +177 -0
  127. data/public/node_modules/pivottable/node_modules/jquery/src/attributes/prop.js +125 -0
  128. data/public/node_modules/pivottable/node_modules/jquery/src/attributes/support.js +36 -0
  129. data/public/node_modules/pivottable/node_modules/jquery/src/attributes/val.js +177 -0
  130. data/public/node_modules/pivottable/node_modules/jquery/src/callbacks.js +232 -0
  131. data/public/node_modules/pivottable/node_modules/jquery/src/core.js +494 -0
  132. data/public/node_modules/pivottable/node_modules/jquery/src/core/DOMEval.js +14 -0
  133. data/public/node_modules/pivottable/node_modules/jquery/src/core/access.js +65 -0
  134. data/public/node_modules/pivottable/node_modules/jquery/src/core/init.js +134 -0
  135. data/public/node_modules/pivottable/node_modules/jquery/src/core/parseHTML.js +41 -0
  136. data/public/node_modules/pivottable/node_modules/jquery/src/core/ready.js +103 -0
  137. data/public/node_modules/pivottable/node_modules/jquery/src/core/support.js +18 -0
  138. data/public/node_modules/pivottable/node_modules/jquery/src/core/var/rsingleTag.js +5 -0
  139. data/public/node_modules/pivottable/node_modules/jquery/src/css.js +515 -0
  140. data/public/node_modules/pivottable/node_modules/jquery/src/css/addGetHookIf.js +24 -0
  141. data/public/node_modules/pivottable/node_modules/jquery/src/css/adjustCSS.js +65 -0
  142. data/public/node_modules/pivottable/node_modules/jquery/src/css/curCSS.js +60 -0
  143. data/public/node_modules/pivottable/node_modules/jquery/src/css/defaultDisplay.js +72 -0
  144. data/public/node_modules/pivottable/node_modules/jquery/src/css/hiddenVisibleSelectors.js +18 -0
  145. data/public/node_modules/pivottable/node_modules/jquery/src/css/showHide.js +48 -0
  146. data/public/node_modules/pivottable/node_modules/jquery/src/css/support.js +121 -0
  147. data/public/node_modules/pivottable/node_modules/jquery/src/css/var/cssExpand.js +3 -0
  148. data/public/node_modules/pivottable/node_modules/jquery/src/css/var/getStyles.js +15 -0
  149. data/public/node_modules/pivottable/node_modules/jquery/src/css/var/isHidden.js +16 -0
  150. data/public/node_modules/pivottable/node_modules/jquery/src/css/var/rmargin.js +3 -0
  151. data/public/node_modules/pivottable/node_modules/jquery/src/css/var/rnumnonpx.js +5 -0
  152. data/public/node_modules/pivottable/node_modules/jquery/src/css/var/swap.js +24 -0
  153. data/public/node_modules/pivottable/node_modules/jquery/src/data.js +187 -0
  154. data/public/node_modules/pivottable/node_modules/jquery/src/data/Data.js +200 -0
  155. data/public/node_modules/pivottable/node_modules/jquery/src/data/accepts.js +20 -0
  156. data/public/node_modules/pivottable/node_modules/jquery/src/data/support.js +23 -0
  157. data/public/node_modules/pivottable/node_modules/jquery/src/data/var/acceptData.js +18 -0
  158. data/public/node_modules/pivottable/node_modules/jquery/src/data/var/dataPriv.js +5 -0
  159. data/public/node_modules/pivottable/node_modules/jquery/src/data/var/dataUser.js +5 -0
  160. data/public/node_modules/pivottable/node_modules/jquery/src/deferred.js +158 -0
  161. data/public/node_modules/pivottable/node_modules/jquery/src/deferred/exceptionHook.js +19 -0
  162. data/public/node_modules/pivottable/node_modules/jquery/src/deprecated.js +32 -0
  163. data/public/node_modules/pivottable/node_modules/jquery/src/dimensions.js +54 -0
  164. data/public/node_modules/pivottable/node_modules/jquery/src/effects.js +629 -0
  165. data/public/node_modules/pivottable/node_modules/jquery/src/effects/Tween.js +121 -0
  166. data/public/node_modules/pivottable/node_modules/jquery/src/effects/animatedSelector.js +13 -0
  167. data/public/node_modules/pivottable/node_modules/jquery/src/effects/support.js +58 -0
  168. data/public/node_modules/pivottable/node_modules/jquery/src/event.js +710 -0
  169. data/public/node_modules/pivottable/node_modules/jquery/src/event/ajax.js +20 -0
  170. data/public/node_modules/pivottable/node_modules/jquery/src/event/alias.js +27 -0
  171. data/public/node_modules/pivottable/node_modules/jquery/src/event/focusin.js +53 -0
  172. data/public/node_modules/pivottable/node_modules/jquery/src/event/support.js +9 -0
  173. data/public/node_modules/pivottable/node_modules/jquery/src/event/trigger.js +199 -0
  174. data/public/node_modules/pivottable/node_modules/jquery/src/exports/amd.js +24 -0
  175. data/public/node_modules/pivottable/node_modules/jquery/src/exports/global.js +26 -0
  176. data/public/node_modules/pivottable/node_modules/jquery/src/intro.js +44 -0
  177. data/public/node_modules/pivottable/node_modules/jquery/src/jquery.js +37 -0
  178. data/public/node_modules/pivottable/node_modules/jquery/src/manipulation.js +481 -0
  179. data/public/node_modules/pivottable/node_modules/jquery/src/manipulation/_evalUrl.js +20 -0
  180. data/public/node_modules/pivottable/node_modules/jquery/src/manipulation/buildFragment.js +102 -0
  181. data/public/node_modules/pivottable/node_modules/jquery/src/manipulation/createSafeFragment.js +20 -0
  182. data/public/node_modules/pivottable/node_modules/jquery/src/manipulation/getAll.js +21 -0
  183. data/public/node_modules/pivottable/node_modules/jquery/src/manipulation/setGlobalEval.js +20 -0
  184. data/public/node_modules/pivottable/node_modules/jquery/src/manipulation/support.js +33 -0
  185. data/public/node_modules/pivottable/node_modules/jquery/src/manipulation/var/nodeNames.js +5 -0
  186. data/public/node_modules/pivottable/node_modules/jquery/src/manipulation/var/rcheckableType.js +3 -0
  187. data/public/node_modules/pivottable/node_modules/jquery/src/manipulation/var/rleadingWhitespace.js +3 -0
  188. data/public/node_modules/pivottable/node_modules/jquery/src/manipulation/var/rscriptType.js +3 -0
  189. data/public/node_modules/pivottable/node_modules/jquery/src/manipulation/var/rtagName.js +3 -0
  190. data/public/node_modules/pivottable/node_modules/jquery/src/manipulation/wrapMap.js +27 -0
  191. data/public/node_modules/pivottable/node_modules/jquery/src/offset.js +218 -0
  192. data/public/node_modules/pivottable/node_modules/jquery/src/outro.js +2 -0
  193. data/public/node_modules/pivottable/node_modules/jquery/src/queue.js +143 -0
  194. data/public/node_modules/pivottable/node_modules/jquery/src/queue/delay.js +22 -0
  195. data/public/node_modules/pivottable/node_modules/jquery/src/selector-native.js +211 -0
  196. data/public/node_modules/pivottable/node_modules/jquery/src/selector-sizzle.js +14 -0
  197. data/public/node_modules/pivottable/node_modules/jquery/src/selector.js +1 -0
  198. data/public/node_modules/pivottable/node_modules/jquery/src/serialize.js +125 -0
  199. data/public/node_modules/pivottable/node_modules/jquery/src/support.js +63 -0
  200. data/public/node_modules/pivottable/node_modules/jquery/src/traversing.js +175 -0
  201. data/public/node_modules/pivottable/node_modules/jquery/src/traversing/findFilter.js +100 -0
  202. data/public/node_modules/pivottable/node_modules/jquery/src/traversing/var/dir.js +20 -0
  203. data/public/node_modules/pivottable/node_modules/jquery/src/traversing/var/rneedsContext.js +6 -0
  204. data/public/node_modules/pivottable/node_modules/jquery/src/traversing/var/siblings.js +15 -0
  205. data/public/node_modules/pivottable/node_modules/jquery/src/var/arr.js +3 -0
  206. data/public/node_modules/pivottable/node_modules/jquery/src/var/class2type.js +5 -0
  207. data/public/node_modules/pivottable/node_modules/jquery/src/var/concat.js +5 -0
  208. data/public/node_modules/pivottable/node_modules/jquery/src/var/deletedIds.js +3 -0
  209. data/public/node_modules/pivottable/node_modules/jquery/src/var/document.js +3 -0
  210. data/public/node_modules/pivottable/node_modules/jquery/src/var/documentElement.js +5 -0
  211. data/public/node_modules/pivottable/node_modules/jquery/src/var/hasOwn.js +5 -0
  212. data/public/node_modules/pivottable/node_modules/jquery/src/var/indexOf.js +5 -0
  213. data/public/node_modules/pivottable/node_modules/jquery/src/var/pnum.js +3 -0
  214. data/public/node_modules/pivottable/node_modules/jquery/src/var/push.js +5 -0
  215. data/public/node_modules/pivottable/node_modules/jquery/src/var/rcssNum.js +7 -0
  216. data/public/node_modules/pivottable/node_modules/jquery/src/var/rnotwhite.js +3 -0
  217. data/public/node_modules/pivottable/node_modules/jquery/src/var/slice.js +5 -0
  218. data/public/node_modules/pivottable/node_modules/jquery/src/var/support.js +5 -0
  219. data/public/node_modules/pivottable/node_modules/jquery/src/var/toString.js +5 -0
  220. data/public/node_modules/pivottable/node_modules/jquery/src/wrap.js +79 -0
  221. data/public/node_modules/pivottable/package.json +70 -0
  222. data/public/node_modules/pivottable/pivot.coffee +957 -0
  223. data/public/node_modules/pivottable/pivot.es.coffee +57 -0
  224. data/public/node_modules/pivottable/pivot.fr.coffee +57 -0
  225. data/public/node_modules/pivottable/pivot.nl.coffee +55 -0
  226. data/public/node_modules/pivottable/pivot.pt.coffee +80 -0
  227. data/public/node_modules/pivottable/pivot.ru.coffee +56 -0
  228. data/public/node_modules/pivottable/pivot.tr.coffee +80 -0
  229. data/public/node_modules/pivottable/pivottable.jquery.json +33 -0
  230. data/public/node_modules/pivottable/tests/boot.js +152 -0
  231. data/public/node_modules/pivottable/tests/index.html +35 -0
  232. data/public/node_modules/pivottable/tests/pivot_spec.coffee +458 -0
  233. data/public/vendor.js +5 -0
  234. metadata +232 -1
@@ -0,0 +1,20 @@
1
+ define( [
2
+ "../core",
3
+ "../event"
4
+ ], function( jQuery ) {
5
+
6
+ // Attach a bunch of functions for handling common AJAX events
7
+ jQuery.each( [
8
+ "ajaxStart",
9
+ "ajaxStop",
10
+ "ajaxComplete",
11
+ "ajaxError",
12
+ "ajaxSuccess",
13
+ "ajaxSend"
14
+ ], function( i, type ) {
15
+ jQuery.fn[ type ] = function( fn ) {
16
+ return this.on( type, fn );
17
+ };
18
+ } );
19
+
20
+ } );
@@ -0,0 +1,27 @@
1
+ define( [
2
+ "../core",
3
+
4
+ "../event",
5
+ "./trigger"
6
+ ], function( jQuery ) {
7
+
8
+ jQuery.each( ( "blur focus focusin focusout load resize scroll unload click dblclick " +
9
+ "mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave " +
10
+ "change select submit keydown keypress keyup error contextmenu" ).split( " " ),
11
+ function( i, name ) {
12
+
13
+ // Handle event binding
14
+ jQuery.fn[ name ] = function( data, fn ) {
15
+ return arguments.length > 0 ?
16
+ this.on( name, null, data, fn ) :
17
+ this.trigger( name );
18
+ };
19
+ } );
20
+
21
+ jQuery.fn.extend( {
22
+ hover: function( fnOver, fnOut ) {
23
+ return this.mouseenter( fnOver ).mouseleave( fnOut || fnOver );
24
+ }
25
+ } );
26
+
27
+ } );
@@ -0,0 +1,53 @@
1
+ define( [
2
+ "../core",
3
+ "../data/var/dataPriv",
4
+ "./support",
5
+
6
+ "../event",
7
+ "./trigger"
8
+ ], function( jQuery, dataPriv, support ) {
9
+
10
+ // Support: Firefox
11
+ // Firefox doesn't have focus(in | out) events
12
+ // Related ticket - https://bugzilla.mozilla.org/show_bug.cgi?id=687787
13
+ //
14
+ // Support: Chrome, Safari
15
+ // focus(in | out) events fire after focus & blur events,
16
+ // which is spec violation - http://www.w3.org/TR/DOM-Level-3-Events/#events-focusevent-event-order
17
+ // Related ticket - https://code.google.com/p/chromium/issues/detail?id=449857
18
+ if ( !support.focusin ) {
19
+ jQuery.each( { focus: "focusin", blur: "focusout" }, function( orig, fix ) {
20
+
21
+ // Attach a single capturing handler on the document while someone wants focusin/focusout
22
+ var handler = function( event ) {
23
+ jQuery.event.simulate( fix, event.target, jQuery.event.fix( event ) );
24
+ };
25
+
26
+ jQuery.event.special[ fix ] = {
27
+ setup: function() {
28
+ var doc = this.ownerDocument || this,
29
+ attaches = dataPriv.access( doc, fix );
30
+
31
+ if ( !attaches ) {
32
+ doc.addEventListener( orig, handler, true );
33
+ }
34
+ dataPriv.access( doc, fix, ( attaches || 0 ) + 1 );
35
+ },
36
+ teardown: function() {
37
+ var doc = this.ownerDocument || this,
38
+ attaches = dataPriv.access( doc, fix ) - 1;
39
+
40
+ if ( !attaches ) {
41
+ doc.removeEventListener( orig, handler, true );
42
+ dataPriv.remove( doc, fix );
43
+
44
+ } else {
45
+ dataPriv.access( doc, fix, attaches );
46
+ }
47
+ }
48
+ };
49
+ } );
50
+ }
51
+
52
+ return jQuery;
53
+ } );
@@ -0,0 +1,9 @@
1
+ define( [
2
+ "../var/support"
3
+ ], function( support ) {
4
+
5
+ support.focusin = "onfocusin" in window;
6
+
7
+ return support;
8
+
9
+ } );
@@ -0,0 +1,199 @@
1
+ define( [
2
+ "../core",
3
+ "../var/document",
4
+ "../data/var/dataPriv",
5
+ "../data/var/acceptData",
6
+ "../var/hasOwn",
7
+
8
+ "../event"
9
+ ], function( jQuery, document, dataPriv, acceptData, hasOwn ) {
10
+
11
+ var rfocusMorph = /^(?:focusinfocus|focusoutblur)$/;
12
+
13
+ jQuery.extend( jQuery.event, {
14
+
15
+ trigger: function( event, data, elem, onlyHandlers ) {
16
+
17
+ var i, cur, tmp, bubbleType, ontype, handle, special,
18
+ eventPath = [ elem || document ],
19
+ type = hasOwn.call( event, "type" ) ? event.type : event,
20
+ namespaces = hasOwn.call( event, "namespace" ) ? event.namespace.split( "." ) : [];
21
+
22
+ cur = tmp = elem = elem || document;
23
+
24
+ // Don't do events on text and comment nodes
25
+ if ( elem.nodeType === 3 || elem.nodeType === 8 ) {
26
+ return;
27
+ }
28
+
29
+ // focus/blur morphs to focusin/out; ensure we're not firing them right now
30
+ if ( rfocusMorph.test( type + jQuery.event.triggered ) ) {
31
+ return;
32
+ }
33
+
34
+ if ( type.indexOf( "." ) > -1 ) {
35
+
36
+ // Namespaced trigger; create a regexp to match event type in handle()
37
+ namespaces = type.split( "." );
38
+ type = namespaces.shift();
39
+ namespaces.sort();
40
+ }
41
+ ontype = type.indexOf( ":" ) < 0 && "on" + type;
42
+
43
+ // Caller can pass in a jQuery.Event object, Object, or just an event type string
44
+ event = event[ jQuery.expando ] ?
45
+ event :
46
+ new jQuery.Event( type, typeof event === "object" && event );
47
+
48
+ // Trigger bitmask: & 1 for native handlers; & 2 for jQuery (always true)
49
+ event.isTrigger = onlyHandlers ? 2 : 3;
50
+ event.namespace = namespaces.join( "." );
51
+ event.rnamespace = event.namespace ?
52
+ new RegExp( "(^|\\.)" + namespaces.join( "\\.(?:.*\\.|)" ) + "(\\.|$)" ) :
53
+ null;
54
+
55
+ // Clean up the event in case it is being reused
56
+ event.result = undefined;
57
+ if ( !event.target ) {
58
+ event.target = elem;
59
+ }
60
+
61
+ // Clone any incoming data and prepend the event, creating the handler arg list
62
+ data = data == null ?
63
+ [ event ] :
64
+ jQuery.makeArray( data, [ event ] );
65
+
66
+ // Allow special events to draw outside the lines
67
+ special = jQuery.event.special[ type ] || {};
68
+ if ( !onlyHandlers && special.trigger && special.trigger.apply( elem, data ) === false ) {
69
+ return;
70
+ }
71
+
72
+ // Determine event propagation path in advance, per W3C events spec (#9951)
73
+ // Bubble up to document, then to window; watch for a global ownerDocument var (#9724)
74
+ if ( !onlyHandlers && !special.noBubble && !jQuery.isWindow( elem ) ) {
75
+
76
+ bubbleType = special.delegateType || type;
77
+ if ( !rfocusMorph.test( bubbleType + type ) ) {
78
+ cur = cur.parentNode;
79
+ }
80
+ for ( ; cur; cur = cur.parentNode ) {
81
+ eventPath.push( cur );
82
+ tmp = cur;
83
+ }
84
+
85
+ // Only add window if we got to document (e.g., not plain obj or detached DOM)
86
+ if ( tmp === ( elem.ownerDocument || document ) ) {
87
+ eventPath.push( tmp.defaultView || tmp.parentWindow || window );
88
+ }
89
+ }
90
+
91
+ // Fire handlers on the event path
92
+ i = 0;
93
+ while ( ( cur = eventPath[ i++ ] ) && !event.isPropagationStopped() ) {
94
+
95
+ event.type = i > 1 ?
96
+ bubbleType :
97
+ special.bindType || type;
98
+
99
+ // jQuery handler
100
+ handle = ( dataPriv.get( cur, "events" ) || {} )[ event.type ] &&
101
+ dataPriv.get( cur, "handle" );
102
+ if ( handle ) {
103
+ handle.apply( cur, data );
104
+ }
105
+
106
+ // Native handler
107
+ handle = ontype && cur[ ontype ];
108
+ if ( handle && handle.apply && acceptData( cur ) ) {
109
+ event.result = handle.apply( cur, data );
110
+ if ( event.result === false ) {
111
+ event.preventDefault();
112
+ }
113
+ }
114
+ }
115
+ event.type = type;
116
+
117
+ // If nobody prevented the default action, do it now
118
+ if ( !onlyHandlers && !event.isDefaultPrevented() ) {
119
+
120
+ if ( ( !special._default ||
121
+ special._default.apply( eventPath.pop(), data ) === false ) &&
122
+ acceptData( elem ) ) {
123
+
124
+ // Call a native DOM method on the target with the same name name as the event.
125
+ // Don't do default actions on window, that's where global variables be (#6170)
126
+ if ( ontype && jQuery.isFunction( elem[ type ] ) && !jQuery.isWindow( elem ) ) {
127
+
128
+ // Don't re-trigger an onFOO event when we call its FOO() method
129
+ tmp = elem[ ontype ];
130
+
131
+ if ( tmp ) {
132
+ elem[ ontype ] = null;
133
+ }
134
+
135
+ // Prevent re-triggering of the same event, since we already bubbled it above
136
+ jQuery.event.triggered = type;
137
+ elem[ type ]();
138
+ jQuery.event.triggered = undefined;
139
+
140
+ if ( tmp ) {
141
+ elem[ ontype ] = tmp;
142
+ }
143
+ }
144
+ }
145
+ }
146
+
147
+ return event.result;
148
+ },
149
+
150
+ // Piggyback on a donor event to simulate a different one
151
+ simulate: function( type, elem, event ) {
152
+ var e = jQuery.extend(
153
+ new jQuery.Event(),
154
+ event,
155
+ {
156
+ type: type,
157
+ isSimulated: true
158
+
159
+ // Previously, `originalEvent: {}` was set here, so stopPropagation call
160
+ // would not be triggered on donor event, since in our own
161
+ // jQuery.event.stopPropagation function we had a check for existence of
162
+ // originalEvent.stopPropagation method, so, consequently it would be a noop.
163
+ //
164
+ // But now, this "simulate" function is used only for events
165
+ // for which stopPropagation() is noop, so there is no need for that anymore.
166
+ //
167
+ // For the 1.x branch though, guard for "click" and "submit"
168
+ // events is still used, but was moved to jQuery.event.stopPropagation function
169
+ // because `originalEvent` should point to the original event for the constancy
170
+ // with other events and for more focused logic
171
+ }
172
+ );
173
+
174
+ jQuery.event.trigger( e, null, elem );
175
+
176
+ if ( e.isDefaultPrevented() ) {
177
+ event.preventDefault();
178
+ }
179
+ }
180
+
181
+ } );
182
+
183
+ jQuery.fn.extend( {
184
+
185
+ trigger: function( type, data ) {
186
+ return this.each( function() {
187
+ jQuery.event.trigger( type, data, this );
188
+ } );
189
+ },
190
+ triggerHandler: function( type, data ) {
191
+ var elem = this[ 0 ];
192
+ if ( elem ) {
193
+ return jQuery.event.trigger( type, data, elem, true );
194
+ }
195
+ }
196
+ } );
197
+
198
+ return jQuery;
199
+ } );
@@ -0,0 +1,24 @@
1
+ define( [
2
+ "../core"
3
+ ], function( jQuery ) {
4
+
5
+ // Register as a named AMD module, since jQuery can be concatenated with other
6
+ // files that may use define, but not via a proper concatenation script that
7
+ // understands anonymous AMD modules. A named AMD is safest and most robust
8
+ // way to register. Lowercase jquery is used because AMD module names are
9
+ // derived from file names, and jQuery is normally delivered in a lowercase
10
+ // file name. Do this after creating the global so that if an AMD module wants
11
+ // to call noConflict to hide this version of jQuery, it will work.
12
+
13
+ // Note that for maximum portability, libraries that are not jQuery should
14
+ // declare themselves as anonymous modules, and avoid setting a global if an
15
+ // AMD loader is present. jQuery is a special case. For more information, see
16
+ // https://github.com/jrburke/requirejs/wiki/Updating-existing-libraries#wiki-anon
17
+
18
+ if ( typeof define === "function" && define.amd ) {
19
+ define( "jquery", [], function() {
20
+ return jQuery;
21
+ } );
22
+ }
23
+
24
+ } );
@@ -0,0 +1,26 @@
1
+ var
2
+
3
+ // Map over jQuery in case of overwrite
4
+ _jQuery = window.jQuery,
5
+
6
+ // Map over the $ in case of overwrite
7
+ _$ = window.$;
8
+
9
+ jQuery.noConflict = function( deep ) {
10
+ if ( window.$ === jQuery ) {
11
+ window.$ = _$;
12
+ }
13
+
14
+ if ( deep && window.jQuery === jQuery ) {
15
+ window.jQuery = _jQuery;
16
+ }
17
+
18
+ return jQuery;
19
+ };
20
+
21
+ // Expose jQuery and $ identifiers, even in AMD
22
+ // (#7102#comment:10, https://github.com/jquery/jquery/pull/557)
23
+ // and CommonJS for browser emulators (#13566)
24
+ if ( !noGlobal ) {
25
+ window.jQuery = window.$ = jQuery;
26
+ }
@@ -0,0 +1,44 @@
1
+ /*!
2
+ * jQuery JavaScript Library v@VERSION
3
+ * http://jquery.com/
4
+ *
5
+ * Includes Sizzle.js
6
+ * http://sizzlejs.com/
7
+ *
8
+ * Copyright jQuery Foundation and other contributors
9
+ * Released under the MIT license
10
+ * http://jquery.org/license
11
+ *
12
+ * Date: @DATE
13
+ */
14
+
15
+ (function( global, factory ) {
16
+
17
+ if ( typeof module === "object" && typeof module.exports === "object" ) {
18
+ // For CommonJS and CommonJS-like environments where a proper `window`
19
+ // is present, execute the factory and get jQuery.
20
+ // For environments that do not have a `window` with a `document`
21
+ // (such as Node.js), expose a factory as module.exports.
22
+ // This accentuates the need for the creation of a real `window`.
23
+ // e.g. var jQuery = require("jquery")(window);
24
+ // See ticket #14549 for more info.
25
+ module.exports = global.document ?
26
+ factory( global, true ) :
27
+ function( w ) {
28
+ if ( !w.document ) {
29
+ throw new Error( "jQuery requires a window with a document" );
30
+ }
31
+ return factory( w );
32
+ };
33
+ } else {
34
+ factory( global );
35
+ }
36
+
37
+ // Pass this if window is not defined yet
38
+ }(typeof window !== "undefined" ? window : this, function( window, noGlobal ) {
39
+
40
+ // Support: Firefox 18+
41
+ // Can't be in strict mode, several libs including ASP.NET trace
42
+ // the stack via arguments.caller.callee and Firefox dies if
43
+ // you try to trace through "use strict" call chains. (#13335)
44
+ //"use strict";
@@ -0,0 +1,37 @@
1
+ define( [
2
+ "./core",
3
+ "./selector",
4
+ "./traversing",
5
+ "./callbacks",
6
+ "./deferred",
7
+ "./core/ready",
8
+ "./data",
9
+ "./queue",
10
+ "./queue/delay",
11
+ "./attributes",
12
+ "./event",
13
+ "./event/alias",
14
+ "./event/focusin",
15
+ "./manipulation",
16
+ "./manipulation/_evalUrl",
17
+ "./wrap",
18
+ "./css",
19
+ "./css/hiddenVisibleSelectors",
20
+ "./serialize",
21
+ "./ajax",
22
+ "./ajax/xhr",
23
+ "./ajax/script",
24
+ "./ajax/jsonp",
25
+ "./ajax/load",
26
+ "./event/ajax",
27
+ "./effects",
28
+ "./effects/animatedSelector",
29
+ "./offset",
30
+ "./dimensions",
31
+ "./deprecated",
32
+ "./exports/amd"
33
+ ], function( jQuery ) {
34
+
35
+ return ( window.jQuery = window.$ = jQuery );
36
+
37
+ } );