epuber 0.5.7 → 0.7.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (208) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +5 -2
  3. data/README.md +20 -26
  4. data/bin/epuber +2 -3
  5. data/epuber.gemspec +10 -12
  6. data/lib/epuber/book/contributor.rb +1 -1
  7. data/lib/epuber/book/file_request.rb +1 -1
  8. data/lib/epuber/book/target.rb +1 -2
  9. data/lib/epuber/book/toc_item.rb +1 -2
  10. data/lib/epuber/book.rb +1 -2
  11. data/lib/epuber/checker/text_checker.rb +1 -1
  12. data/lib/epuber/checker.rb +1 -2
  13. data/lib/epuber/checker_transformer_base.rb +1 -0
  14. data/lib/epuber/command/build.rb +1 -2
  15. data/lib/epuber/command/compile.rb +1 -1
  16. data/lib/epuber/command/init.rb +1 -2
  17. data/lib/epuber/command/server.rb +1 -2
  18. data/lib/epuber/command.rb +1 -1
  19. data/lib/epuber/compiler/compilation_context.rb +1 -1
  20. data/lib/epuber/compiler/file_database.rb +3 -5
  21. data/lib/epuber/compiler/file_finders/abstract.rb +1 -1
  22. data/lib/epuber/compiler/file_finders/imaginary.rb +1 -2
  23. data/lib/epuber/compiler/file_finders/normal.rb +1 -1
  24. data/lib/epuber/compiler/file_resolver.rb +1 -2
  25. data/lib/epuber/compiler/file_stat.rb +0 -1
  26. data/lib/epuber/compiler/file_types/abstract_file.rb +1 -2
  27. data/lib/epuber/compiler/file_types/bade_file.rb +1 -2
  28. data/lib/epuber/compiler/file_types/coffee_script_file.rb +1 -2
  29. data/lib/epuber/compiler/file_types/container_xml_file.rb +1 -2
  30. data/lib/epuber/compiler/file_types/generated_file.rb +1 -2
  31. data/lib/epuber/compiler/file_types/ibooks_display_options_file.rb +1 -7
  32. data/lib/epuber/compiler/file_types/image_file.rb +1 -2
  33. data/lib/epuber/compiler/file_types/mime_type_file.rb +1 -2
  34. data/lib/epuber/compiler/file_types/nav_file.rb +1 -2
  35. data/lib/epuber/compiler/file_types/opf_file.rb +1 -2
  36. data/lib/epuber/compiler/file_types/source_file.rb +1 -2
  37. data/lib/epuber/compiler/file_types/static_file.rb +1 -2
  38. data/lib/epuber/compiler/file_types/stylus_file.rb +1 -2
  39. data/lib/epuber/compiler/file_types/xhtml_file.rb +2 -4
  40. data/lib/epuber/compiler/generator.rb +1 -1
  41. data/lib/epuber/compiler/meta_inf_generator.rb +1 -1
  42. data/lib/epuber/compiler/nav_generator.rb +1 -1
  43. data/lib/epuber/compiler/opf_generator.rb +1 -1
  44. data/lib/epuber/compiler/problem.rb +1 -2
  45. data/lib/epuber/compiler/xhtml_processor.rb +6 -6
  46. data/lib/epuber/compiler.rb +7 -11
  47. data/lib/epuber/config.rb +3 -4
  48. data/lib/epuber/dsl/attribute.rb +1 -1
  49. data/lib/epuber/dsl/attribute_support.rb +2 -2
  50. data/lib/epuber/dsl/object.rb +1 -1
  51. data/lib/epuber/dsl/tree_object.rb +1 -1
  52. data/lib/epuber/helper.rb +1 -1
  53. data/lib/epuber/lockfile.rb +1 -1
  54. data/lib/epuber/plugin.rb +1 -1
  55. data/lib/epuber/ruby_extensions/match_data.rb +1 -0
  56. data/lib/epuber/ruby_extensions/thread.rb +1 -0
  57. data/lib/epuber/server/handlers.rb +1 -1
  58. data/lib/epuber/server.rb +3 -2
  59. data/lib/epuber/templates.rb +2 -1
  60. data/lib/epuber/third_party/bower/bower.json +3 -3
  61. data/lib/epuber/third_party/bower/bower_components/cookies-js/bower.json +1 -1
  62. data/lib/epuber/third_party/bower/bower_components/cookies-js/dist/cookies.js +2 -3
  63. data/lib/epuber/third_party/bower/bower_components/cookies-js/dist/cookies.min.js +6 -6
  64. data/lib/epuber/third_party/bower/bower_components/jquery/AUTHORS.txt +278 -0
  65. data/lib/epuber/third_party/bower/bower_components/jquery/{MIT-LICENSE.txt → LICENSE.txt} +17 -2
  66. data/lib/epuber/third_party/bower/bower_components/jquery/README.md +65 -0
  67. data/lib/epuber/third_party/bower/bower_components/jquery/bower.json +2 -16
  68. data/lib/epuber/third_party/bower/bower_components/jquery/dist/jquery.js +2566 -1962
  69. data/lib/epuber/third_party/bower/bower_components/jquery/dist/jquery.min.js +4 -5
  70. data/lib/epuber/third_party/bower/bower_components/jquery/dist/jquery.min.map +1 -1
  71. data/lib/epuber/third_party/bower/bower_components/jquery/external/sizzle/LICENSE.txt +36 -0
  72. data/lib/epuber/third_party/bower/bower_components/jquery/{src → external}/sizzle/dist/sizzle.js +236 -160
  73. data/lib/epuber/third_party/bower/bower_components/jquery/external/sizzle/dist/sizzle.min.js +3 -0
  74. data/lib/epuber/third_party/bower/bower_components/jquery/external/sizzle/dist/sizzle.min.map +1 -0
  75. data/lib/epuber/third_party/bower/bower_components/jquery/src/ajax/jsonp.js +25 -14
  76. data/lib/epuber/third_party/bower/bower_components/jquery/src/ajax/load.js +20 -12
  77. data/lib/epuber/third_party/bower/bower_components/jquery/src/ajax/parseJSON.js +2 -2
  78. data/lib/epuber/third_party/bower/bower_components/jquery/src/ajax/parseXML.js +4 -5
  79. data/lib/epuber/third_party/bower/bower_components/jquery/src/ajax/script.js +16 -12
  80. data/lib/epuber/third_party/bower/bower_components/jquery/src/ajax/var/location.js +3 -0
  81. data/lib/epuber/third_party/bower/bower_components/jquery/src/ajax/var/nonce.js +2 -2
  82. data/lib/epuber/third_party/bower/bower_components/jquery/src/ajax/var/rquery.js +3 -3
  83. data/lib/epuber/third_party/bower/bower_components/jquery/src/ajax/xhr.js +73 -42
  84. data/lib/epuber/third_party/bower/bower_components/jquery/src/ajax.js +116 -57
  85. data/lib/epuber/third_party/bower/bower_components/jquery/src/attributes/attr.js +49 -48
  86. data/lib/epuber/third_party/bower/bower_components/jquery/src/attributes/classes.js +86 -67
  87. data/lib/epuber/third_party/bower/bower_components/jquery/src/attributes/prop.js +63 -32
  88. data/lib/epuber/third_party/bower/bower_components/jquery/src/attributes/support.js +6 -5
  89. data/lib/epuber/third_party/bower/bower_components/jquery/src/attributes/val.js +40 -24
  90. data/lib/epuber/third_party/bower/bower_components/jquery/src/attributes.js +2 -2
  91. data/lib/epuber/third_party/bower/bower_components/jquery/src/callbacks.js +114 -87
  92. data/lib/epuber/third_party/bower/bower_components/jquery/src/core/access.js +11 -6
  93. data/lib/epuber/third_party/bower/bower_components/jquery/src/core/init.js +27 -16
  94. data/lib/epuber/third_party/bower/bower_components/jquery/src/core/parseHTML.js +10 -8
  95. data/lib/epuber/third_party/bower/bower_components/jquery/src/core/ready.js +20 -14
  96. data/lib/epuber/third_party/bower/bower_components/jquery/src/core/var/rsingleTag.js +4 -3
  97. data/lib/epuber/third_party/bower/bower_components/jquery/src/core.js +77 -85
  98. data/lib/epuber/third_party/bower/bower_components/jquery/src/css/addGetHookIf.js +5 -3
  99. data/lib/epuber/third_party/bower/bower_components/jquery/src/css/adjustCSS.js +65 -0
  100. data/lib/epuber/third_party/bower/bower_components/jquery/src/css/curCSS.js +20 -17
  101. data/lib/epuber/third_party/bower/bower_components/jquery/src/css/defaultDisplay.js +16 -14
  102. data/lib/epuber/third_party/bower/bower_components/jquery/src/css/hiddenVisibleSelectors.js +9 -6
  103. data/lib/epuber/third_party/bower/bower_components/jquery/src/css/showHide.js +48 -0
  104. data/lib/epuber/third_party/bower/bower_components/jquery/src/css/support.js +86 -61
  105. data/lib/epuber/third_party/bower/bower_components/jquery/src/css/var/cssExpand.js +2 -2
  106. data/lib/epuber/third_party/bower/bower_components/jquery/src/css/var/getStyles.js +8 -5
  107. data/lib/epuber/third_party/bower/bower_components/jquery/src/css/var/isHidden.js +6 -3
  108. data/lib/epuber/third_party/bower/bower_components/jquery/src/css/var/rmargin.js +3 -3
  109. data/lib/epuber/third_party/bower/bower_components/jquery/src/css/var/rnumnonpx.js +2 -2
  110. data/lib/epuber/third_party/bower/bower_components/jquery/src/css/{swap.js → var/swap.js} +3 -7
  111. data/lib/epuber/third_party/bower/bower_components/jquery/src/css.js +107 -55
  112. data/lib/epuber/third_party/bower/bower_components/jquery/src/data/Data.js +93 -74
  113. data/lib/epuber/third_party/bower/bower_components/jquery/src/data/{accepts.js → var/acceptData.js} +4 -6
  114. data/lib/epuber/third_party/bower/bower_components/jquery/src/data/var/{data_priv.js → dataPriv.js} +2 -2
  115. data/lib/epuber/third_party/bower/bower_components/jquery/src/data/var/{data_user.js → dataUser.js} +2 -2
  116. data/lib/epuber/third_party/bower/bower_components/jquery/src/data.js +49 -40
  117. data/lib/epuber/third_party/bower/bower_components/jquery/src/deferred.js +34 -25
  118. data/lib/epuber/third_party/bower/bower_components/jquery/src/deprecated.js +27 -8
  119. data/lib/epuber/third_party/bower/bower_components/jquery/src/dimensions.js +9 -5
  120. data/lib/epuber/third_party/bower/bower_components/jquery/src/effects/Tween.js +14 -7
  121. data/lib/epuber/third_party/bower/bower_components/jquery/src/effects/animatedSelector.js +4 -4
  122. data/lib/epuber/third_party/bower/bower_components/jquery/src/effects.js +96 -115
  123. data/lib/epuber/third_party/bower/bower_components/jquery/src/event/ajax.js +11 -4
  124. data/lib/epuber/third_party/bower/bower_components/jquery/src/event/alias.js +11 -23
  125. data/lib/epuber/third_party/bower/bower_components/jquery/src/event/focusin.js +53 -0
  126. data/lib/epuber/third_party/bower/bower_components/jquery/src/event/support.js +3 -3
  127. data/lib/epuber/third_party/bower/bower_components/jquery/src/event/trigger.js +183 -0
  128. data/lib/epuber/third_party/bower/bower_components/jquery/src/event.js +168 -325
  129. data/lib/epuber/third_party/bower/bower_components/jquery/src/exports/amd.js +3 -3
  130. data/lib/epuber/third_party/bower/bower_components/jquery/src/exports/global.js +2 -8
  131. data/lib/epuber/third_party/bower/bower_components/jquery/src/intro.js +1 -1
  132. data/lib/epuber/third_party/bower/bower_components/jquery/src/jquery.js +5 -5
  133. data/lib/epuber/third_party/bower/bower_components/jquery/src/manipulation/_evalUrl.js +6 -4
  134. data/lib/epuber/third_party/bower/bower_components/jquery/src/manipulation/buildFragment.js +102 -0
  135. data/lib/epuber/third_party/bower/bower_components/jquery/src/manipulation/getAll.js +21 -0
  136. data/lib/epuber/third_party/bower/bower_components/jquery/src/manipulation/setGlobalEval.js +20 -0
  137. data/lib/epuber/third_party/bower/bower_components/jquery/src/manipulation/support.js +7 -6
  138. data/lib/epuber/third_party/bower/bower_components/jquery/src/manipulation/var/rcheckableType.js +3 -3
  139. data/lib/epuber/third_party/bower/bower_components/jquery/src/manipulation/var/rscriptType.js +3 -0
  140. data/lib/epuber/third_party/bower/bower_components/jquery/src/manipulation/var/rtagName.js +3 -0
  141. data/lib/epuber/third_party/bower/bower_components/jquery/src/manipulation/wrapMap.js +27 -0
  142. data/lib/epuber/third_party/bower/bower_components/jquery/src/manipulation.js +206 -305
  143. data/lib/epuber/third_party/bower/bower_components/jquery/src/offset.js +40 -29
  144. data/lib/epuber/third_party/bower/bower_components/jquery/src/outro.js +1 -0
  145. data/lib/epuber/third_party/bower/bower_components/jquery/src/queue/delay.js +6 -6
  146. data/lib/epuber/third_party/bower/bower_components/jquery/src/queue.js +23 -22
  147. data/lib/epuber/third_party/bower/bower_components/jquery/src/selector-native.js +107 -68
  148. data/lib/epuber/third_party/bower/bower_components/jquery/src/selector-sizzle.js +5 -5
  149. data/lib/epuber/third_party/bower/bower_components/jquery/src/selector.js +1 -1
  150. data/lib/epuber/third_party/bower/bower_components/jquery/src/serialize.js +28 -14
  151. data/lib/epuber/third_party/bower/bower_components/jquery/src/traversing/findFilter.js +13 -13
  152. data/lib/epuber/third_party/bower/bower_components/jquery/src/traversing/var/dir.js +20 -0
  153. data/lib/epuber/third_party/bower/bower_components/jquery/src/traversing/var/rneedsContext.js +2 -2
  154. data/lib/epuber/third_party/bower/bower_components/jquery/src/traversing/var/siblings.js +15 -0
  155. data/lib/epuber/third_party/bower/bower_components/jquery/src/traversing.js +32 -56
  156. data/lib/epuber/third_party/bower/bower_components/jquery/src/var/arr.js +2 -2
  157. data/lib/epuber/third_party/bower/bower_components/jquery/src/var/class2type.js +3 -2
  158. data/lib/epuber/third_party/bower/bower_components/jquery/src/var/concat.js +2 -2
  159. data/lib/epuber/third_party/bower/bower_components/jquery/src/var/document.js +3 -0
  160. data/lib/epuber/third_party/bower/bower_components/jquery/src/var/documentElement.js +5 -0
  161. data/lib/epuber/third_party/bower/bower_components/jquery/src/var/hasOwn.js +2 -2
  162. data/lib/epuber/third_party/bower/bower_components/jquery/src/var/indexOf.js +2 -2
  163. data/lib/epuber/third_party/bower/bower_components/jquery/src/var/pnum.js +3 -3
  164. data/lib/epuber/third_party/bower/bower_components/jquery/src/var/push.js +2 -2
  165. data/lib/epuber/third_party/bower/bower_components/jquery/src/var/rcssNum.js +7 -0
  166. data/lib/epuber/third_party/bower/bower_components/jquery/src/var/rnotwhite.js +3 -3
  167. data/lib/epuber/third_party/bower/bower_components/jquery/src/var/slice.js +2 -2
  168. data/lib/epuber/third_party/bower/bower_components/jquery/src/var/support.js +3 -2
  169. data/lib/epuber/third_party/bower/bower_components/jquery/src/var/toString.js +2 -2
  170. data/lib/epuber/third_party/bower/bower_components/jquery/src/wrap.js +19 -19
  171. data/lib/epuber/third_party/bower/bower_components/spin.js/{LICENSE.txt → LICENSE.md} +2 -1
  172. data/lib/epuber/third_party/bower/bower_components/spin.js/README.md +21 -21
  173. data/lib/epuber/third_party/bower/bower_components/spin.js/bower.json +0 -1
  174. data/lib/epuber/third_party/bower/bower_components/spin.js/jquery.spin.js +23 -24
  175. data/lib/epuber/third_party/bower/bower_components/spin.js/spin.js +153 -113
  176. data/lib/epuber/third_party/bower/bower_components/spin.js/spin.min.js +2 -0
  177. data/lib/epuber/third_party/bower/bower_components/uri.js/CHANGELOG.md +424 -0
  178. data/lib/epuber/third_party/bower/bower_components/uri.js/README.md +23 -308
  179. data/lib/epuber/third_party/bower/bower_components/uri.js/SECURITY.md +12 -0
  180. data/lib/epuber/third_party/bower/bower_components/uri.js/bower.json +2 -2
  181. data/lib/epuber/third_party/bower/bower_components/uri.js/contributing.md +0 -4
  182. data/lib/epuber/third_party/bower/bower_components/uri.js/src/IPv6.js +3 -6
  183. data/lib/epuber/third_party/bower/bower_components/uri.js/src/SecondLevelDomains.js +8 -4
  184. data/lib/epuber/third_party/bower/bower_components/uri.js/src/URI.fragmentQuery.js +21 -4
  185. data/lib/epuber/third_party/bower/bower_components/uri.js/src/URI.fragmentURI.js +1 -1
  186. data/lib/epuber/third_party/bower/bower_components/uri.js/src/URI.js +312 -69
  187. data/lib/epuber/third_party/bower/bower_components/uri.js/src/URI.min.js +85 -77
  188. data/lib/epuber/third_party/bower/bower_components/uri.js/src/URITemplate.js +28 -11
  189. data/lib/epuber/third_party/bower/bower_components/uri.js/src/jquery.URI.js +17 -18
  190. data/lib/epuber/third_party/bower/bower_components/uri.js/src/jquery.URI.min.js +6 -6
  191. data/lib/epuber/third_party/bower/bower_components/uri.js/src/punycode.js +63 -38
  192. data/lib/epuber/third_party/bower.rb +2 -0
  193. data/lib/epuber/transformer/text_transformer.rb +1 -2
  194. data/lib/epuber/transformer.rb +1 -2
  195. data/lib/epuber/user_interface.rb +1 -1
  196. data/lib/epuber/vendor/hash_binding.rb +1 -1
  197. data/lib/epuber/vendor/nokogiri_extensions.rb +24 -21
  198. data/lib/epuber/vendor/ruby_templater.rb +1 -2
  199. data/lib/epuber/vendor/size.rb +1 -0
  200. data/lib/epuber/vendor/version.rb +1 -1
  201. data/lib/epuber/version.rb +2 -1
  202. data/lib/epuber.rb +1 -1
  203. metadata +77 -46
  204. data/lib/epuber/ruby_extensions/string.rb +0 -16
  205. data/lib/epuber/third_party/bower/bower_components/jquery/src/sizzle/dist/sizzle.min.js +0 -3
  206. data/lib/epuber/third_party/bower/bower_components/jquery/src/sizzle/dist/sizzle.min.map +0 -1
  207. data/lib/epuber/third_party/bower/bower_components/jquery/src/var/strundefined.js +0 -3
  208. data/lib/epuber/vendor/globals_context.rb +0 -26
@@ -1,4 +1,4 @@
1
- define([
1
+ define( [
2
2
  "./core",
3
3
  "./manipulation/var/rcheckableType",
4
4
  "./core/init",
@@ -16,25 +16,35 @@ function buildParams( prefix, obj, traditional, add ) {
16
16
  var name;
17
17
 
18
18
  if ( jQuery.isArray( obj ) ) {
19
+
19
20
  // Serialize array item.
20
21
  jQuery.each( obj, function( i, v ) {
21
22
  if ( traditional || rbracket.test( prefix ) ) {
23
+
22
24
  // Treat each array item as a scalar.
23
25
  add( prefix, v );
24
26
 
25
27
  } else {
28
+
26
29
  // Item is non-scalar (array or object), encode its numeric index.
27
- buildParams( prefix + "[" + ( typeof v === "object" ? i : "" ) + "]", v, traditional, add );
30
+ buildParams(
31
+ prefix + "[" + ( typeof v === "object" && v != null ? i : "" ) + "]",
32
+ v,
33
+ traditional,
34
+ add
35
+ );
28
36
  }
29
- });
37
+ } );
30
38
 
31
39
  } else if ( !traditional && jQuery.type( obj ) === "object" ) {
40
+
32
41
  // Serialize object item.
33
42
  for ( name in obj ) {
34
43
  buildParams( prefix + "[" + name + "]", obj[ name ], traditional, add );
35
44
  }
36
45
 
37
46
  } else {
47
+
38
48
  // Serialize scalar item.
39
49
  add( prefix, obj );
40
50
  }
@@ -46,6 +56,7 @@ jQuery.param = function( a, traditional ) {
46
56
  var prefix,
47
57
  s = [],
48
58
  add = function( key, value ) {
59
+
49
60
  // If value is a function, invoke it and return its value
50
61
  value = jQuery.isFunction( value ) ? value() : ( value == null ? "" : value );
51
62
  s[ s.length ] = encodeURIComponent( key ) + "=" + encodeURIComponent( value );
@@ -58,12 +69,14 @@ jQuery.param = function( a, traditional ) {
58
69
 
59
70
  // If an array was passed in, assume that it is an array of form elements.
60
71
  if ( jQuery.isArray( a ) || ( a.jquery && !jQuery.isPlainObject( a ) ) ) {
72
+
61
73
  // Serialize the form elements
62
74
  jQuery.each( a, function() {
63
75
  add( this.name, this.value );
64
- });
76
+ } );
65
77
 
66
78
  } else {
79
+
67
80
  // If traditional, encode the "old" way (the way 1.3.2 or older
68
81
  // did it), otherwise encode params recursively.
69
82
  for ( prefix in a ) {
@@ -75,25 +88,26 @@ jQuery.param = function( a, traditional ) {
75
88
  return s.join( "&" ).replace( r20, "+" );
76
89
  };
77
90
 
78
- jQuery.fn.extend({
91
+ jQuery.fn.extend( {
79
92
  serialize: function() {
80
93
  return jQuery.param( this.serializeArray() );
81
94
  },
82
95
  serializeArray: function() {
83
- return this.map(function() {
96
+ return this.map( function() {
97
+
84
98
  // Can add propHook for "elements" to filter or add form elements
85
99
  var elements = jQuery.prop( this, "elements" );
86
100
  return elements ? jQuery.makeArray( elements ) : this;
87
- })
88
- .filter(function() {
101
+ } )
102
+ .filter( function() {
89
103
  var type = this.type;
90
104
 
91
105
  // Use .is( ":disabled" ) so that fieldset[disabled] works
92
106
  return this.name && !jQuery( this ).is( ":disabled" ) &&
93
107
  rsubmittable.test( this.nodeName ) && !rsubmitterTypes.test( type ) &&
94
108
  ( this.checked || !rcheckableType.test( type ) );
95
- })
96
- .map(function( i, elem ) {
109
+ } )
110
+ .map( function( i, elem ) {
97
111
  var val = jQuery( this ).val();
98
112
 
99
113
  return val == null ?
@@ -101,11 +115,11 @@ jQuery.fn.extend({
101
115
  jQuery.isArray( val ) ?
102
116
  jQuery.map( val, function( val ) {
103
117
  return { name: elem.name, value: val.replace( rCRLF, "\r\n" ) };
104
- }) :
118
+ } ) :
105
119
  { name: elem.name, value: val.replace( rCRLF, "\r\n" ) };
106
- }).get();
120
+ } ).get();
107
121
  }
108
- });
122
+ } );
109
123
 
110
124
  return jQuery;
111
- });
125
+ } );
@@ -1,4 +1,4 @@
1
- define([
1
+ define( [
2
2
  "../core",
3
3
  "../var/indexOf",
4
4
  "./var/rneedsContext",
@@ -13,14 +13,14 @@ function winnow( elements, qualifier, not ) {
13
13
  return jQuery.grep( elements, function( elem, i ) {
14
14
  /* jshint -W018 */
15
15
  return !!qualifier.call( elem, i, elem ) !== not;
16
- });
16
+ } );
17
17
 
18
18
  }
19
19
 
20
20
  if ( qualifier.nodeType ) {
21
21
  return jQuery.grep( elements, function( elem ) {
22
22
  return ( elem === qualifier ) !== not;
23
- });
23
+ } );
24
24
 
25
25
  }
26
26
 
@@ -33,8 +33,8 @@ function winnow( elements, qualifier, not ) {
33
33
  }
34
34
 
35
35
  return jQuery.grep( elements, function( elem ) {
36
- return ( indexOf.call( qualifier, elem ) >= 0 ) !== not;
37
- });
36
+ return ( indexOf.call( qualifier, elem ) > -1 ) !== not;
37
+ } );
38
38
  }
39
39
 
40
40
  jQuery.filter = function( expr, elems, not ) {
@@ -48,10 +48,10 @@ jQuery.filter = function( expr, elems, not ) {
48
48
  jQuery.find.matchesSelector( elem, expr ) ? [ elem ] : [] :
49
49
  jQuery.find.matches( expr, jQuery.grep( elems, function( elem ) {
50
50
  return elem.nodeType === 1;
51
- }));
51
+ } ) );
52
52
  };
53
53
 
54
- jQuery.fn.extend({
54
+ jQuery.fn.extend( {
55
55
  find: function( selector ) {
56
56
  var i,
57
57
  len = this.length,
@@ -59,13 +59,13 @@ jQuery.fn.extend({
59
59
  self = this;
60
60
 
61
61
  if ( typeof selector !== "string" ) {
62
- return this.pushStack( jQuery( selector ).filter(function() {
62
+ return this.pushStack( jQuery( selector ).filter( function() {
63
63
  for ( i = 0; i < len; i++ ) {
64
64
  if ( jQuery.contains( self[ i ], this ) ) {
65
65
  return true;
66
66
  }
67
67
  }
68
- }) );
68
+ } ) );
69
69
  }
70
70
 
71
71
  for ( i = 0; i < len; i++ ) {
@@ -78,10 +78,10 @@ jQuery.fn.extend({
78
78
  return ret;
79
79
  },
80
80
  filter: function( selector ) {
81
- return this.pushStack( winnow(this, selector || [], false) );
81
+ return this.pushStack( winnow( this, selector || [], false ) );
82
82
  },
83
83
  not: function( selector ) {
84
- return this.pushStack( winnow(this, selector || [], true) );
84
+ return this.pushStack( winnow( this, selector || [], true ) );
85
85
  },
86
86
  is: function( selector ) {
87
87
  return !!winnow(
@@ -95,6 +95,6 @@ jQuery.fn.extend({
95
95
  false
96
96
  ).length;
97
97
  }
98
- });
98
+ } );
99
99
 
100
- });
100
+ } );
@@ -0,0 +1,20 @@
1
+ define( [
2
+ "../../core"
3
+ ], function( jQuery ) {
4
+
5
+ return function( elem, dir, until ) {
6
+ var matched = [],
7
+ truncate = until !== undefined;
8
+
9
+ while ( ( elem = elem[ dir ] ) && elem.nodeType !== 9 ) {
10
+ if ( elem.nodeType === 1 ) {
11
+ if ( truncate && jQuery( elem ).is( until ) ) {
12
+ break;
13
+ }
14
+ matched.push( elem );
15
+ }
16
+ }
17
+ return matched;
18
+ };
19
+
20
+ } );
@@ -1,6 +1,6 @@
1
- define([
1
+ define( [
2
2
  "../../core",
3
3
  "../../selector"
4
4
  ], function( jQuery ) {
5
5
  return jQuery.expr.match.needsContext;
6
- });
6
+ } );
@@ -0,0 +1,15 @@
1
+ define( function() {
2
+
3
+ return function( n, elem ) {
4
+ var matched = [];
5
+
6
+ for ( ; n; n = n.nextSibling ) {
7
+ if ( n.nodeType === 1 && n !== elem ) {
8
+ matched.push( n );
9
+ }
10
+ }
11
+
12
+ return matched;
13
+ };
14
+
15
+ } );
@@ -1,13 +1,16 @@
1
- define([
1
+ define( [
2
2
  "./core",
3
3
  "./var/indexOf",
4
+ "./traversing/var/dir",
5
+ "./traversing/var/siblings",
4
6
  "./traversing/var/rneedsContext",
5
7
  "./core/init",
6
8
  "./traversing/findFilter",
7
9
  "./selector"
8
- ], function( jQuery, indexOf, rneedsContext ) {
10
+ ], function( jQuery, indexOf, dir, siblings, rneedsContext ) {
9
11
 
10
12
  var rparentsprev = /^(?:parents|prev(?:Until|All))/,
13
+
11
14
  // Methods guaranteed to produce a unique set when starting from a unique set
12
15
  guaranteedUnique = {
13
16
  children: true,
@@ -16,48 +19,19 @@ var rparentsprev = /^(?:parents|prev(?:Until|All))/,
16
19
  prev: true
17
20
  };
18
21
 
19
- jQuery.extend({
20
- dir: function( elem, dir, until ) {
21
- var matched = [],
22
- truncate = until !== undefined;
23
-
24
- while ( (elem = elem[ dir ]) && elem.nodeType !== 9 ) {
25
- if ( elem.nodeType === 1 ) {
26
- if ( truncate && jQuery( elem ).is( until ) ) {
27
- break;
28
- }
29
- matched.push( elem );
30
- }
31
- }
32
- return matched;
33
- },
34
-
35
- sibling: function( n, elem ) {
36
- var matched = [];
37
-
38
- for ( ; n; n = n.nextSibling ) {
39
- if ( n.nodeType === 1 && n !== elem ) {
40
- matched.push( n );
41
- }
42
- }
43
-
44
- return matched;
45
- }
46
- });
47
-
48
- jQuery.fn.extend({
22
+ jQuery.fn.extend( {
49
23
  has: function( target ) {
50
24
  var targets = jQuery( target, this ),
51
25
  l = targets.length;
52
26
 
53
- return this.filter(function() {
27
+ return this.filter( function() {
54
28
  var i = 0;
55
29
  for ( ; i < l; i++ ) {
56
- if ( jQuery.contains( this, targets[i] ) ) {
30
+ if ( jQuery.contains( this, targets[ i ] ) ) {
57
31
  return true;
58
32
  }
59
33
  }
60
- });
34
+ } );
61
35
  },
62
36
 
63
37
  closest: function( selectors, context ) {
@@ -70,14 +44,15 @@ jQuery.fn.extend({
70
44
  0;
71
45
 
72
46
  for ( ; i < l; i++ ) {
73
- for ( cur = this[i]; cur && cur !== context; cur = cur.parentNode ) {
47
+ for ( cur = this[ i ]; cur && cur !== context; cur = cur.parentNode ) {
48
+
74
49
  // Always skip document fragments
75
- if ( cur.nodeType < 11 && (pos ?
76
- pos.index(cur) > -1 :
50
+ if ( cur.nodeType < 11 && ( pos ?
51
+ pos.index( cur ) > -1 :
77
52
 
78
53
  // Don't pass non-elements to Sizzle
79
54
  cur.nodeType === 1 &&
80
- jQuery.find.matchesSelector(cur, selectors)) ) {
55
+ jQuery.find.matchesSelector( cur, selectors ) ) ) {
81
56
 
82
57
  matched.push( cur );
83
58
  break;
@@ -85,7 +60,7 @@ jQuery.fn.extend({
85
60
  }
86
61
  }
87
62
 
88
- return this.pushStack( matched.length > 1 ? jQuery.unique( matched ) : matched );
63
+ return this.pushStack( matched.length > 1 ? jQuery.uniqueSort( matched ) : matched );
89
64
  },
90
65
 
91
66
  // Determine the position of an element within the set
@@ -111,7 +86,7 @@ jQuery.fn.extend({
111
86
 
112
87
  add: function( selector, context ) {
113
88
  return this.pushStack(
114
- jQuery.unique(
89
+ jQuery.uniqueSort(
115
90
  jQuery.merge( this.get(), jQuery( selector, context ) )
116
91
  )
117
92
  );
@@ -119,26 +94,26 @@ jQuery.fn.extend({
119
94
 
120
95
  addBack: function( selector ) {
121
96
  return this.add( selector == null ?
122
- this.prevObject : this.prevObject.filter(selector)
97
+ this.prevObject : this.prevObject.filter( selector )
123
98
  );
124
99
  }
125
- });
100
+ } );
126
101
 
127
102
  function sibling( cur, dir ) {
128
- while ( (cur = cur[dir]) && cur.nodeType !== 1 ) {}
103
+ while ( ( cur = cur[ dir ] ) && cur.nodeType !== 1 ) {}
129
104
  return cur;
130
105
  }
131
106
 
132
- jQuery.each({
107
+ jQuery.each( {
133
108
  parent: function( elem ) {
134
109
  var parent = elem.parentNode;
135
110
  return parent && parent.nodeType !== 11 ? parent : null;
136
111
  },
137
112
  parents: function( elem ) {
138
- return jQuery.dir( elem, "parentNode" );
113
+ return dir( elem, "parentNode" );
139
114
  },
140
115
  parentsUntil: function( elem, i, until ) {
141
- return jQuery.dir( elem, "parentNode", until );
116
+ return dir( elem, "parentNode", until );
142
117
  },
143
118
  next: function( elem ) {
144
119
  return sibling( elem, "nextSibling" );
@@ -147,22 +122,22 @@ jQuery.each({
147
122
  return sibling( elem, "previousSibling" );
148
123
  },
149
124
  nextAll: function( elem ) {
150
- return jQuery.dir( elem, "nextSibling" );
125
+ return dir( elem, "nextSibling" );
151
126
  },
152
127
  prevAll: function( elem ) {
153
- return jQuery.dir( elem, "previousSibling" );
128
+ return dir( elem, "previousSibling" );
154
129
  },
155
130
  nextUntil: function( elem, i, until ) {
156
- return jQuery.dir( elem, "nextSibling", until );
131
+ return dir( elem, "nextSibling", until );
157
132
  },
158
133
  prevUntil: function( elem, i, until ) {
159
- return jQuery.dir( elem, "previousSibling", until );
134
+ return dir( elem, "previousSibling", until );
160
135
  },
161
136
  siblings: function( elem ) {
162
- return jQuery.sibling( ( elem.parentNode || {} ).firstChild, elem );
137
+ return siblings( ( elem.parentNode || {} ).firstChild, elem );
163
138
  },
164
139
  children: function( elem ) {
165
- return jQuery.sibling( elem.firstChild );
140
+ return siblings( elem.firstChild );
166
141
  },
167
142
  contents: function( elem ) {
168
143
  return elem.contentDocument || jQuery.merge( [], elem.childNodes );
@@ -180,9 +155,10 @@ jQuery.each({
180
155
  }
181
156
 
182
157
  if ( this.length > 1 ) {
158
+
183
159
  // Remove duplicates
184
160
  if ( !guaranteedUnique[ name ] ) {
185
- jQuery.unique( matched );
161
+ jQuery.uniqueSort( matched );
186
162
  }
187
163
 
188
164
  // Reverse order for parents* and prev-derivatives
@@ -193,7 +169,7 @@ jQuery.each({
193
169
 
194
170
  return this.pushStack( matched );
195
171
  };
196
- });
172
+ } );
197
173
 
198
174
  return jQuery;
199
- });
175
+ } );
@@ -1,3 +1,3 @@
1
- define(function() {
1
+ define( function() {
2
2
  return [];
3
- });
3
+ } );
@@ -1,4 +1,5 @@
1
- define(function() {
1
+ define( function() {
2
+
2
3
  // [[Class]] -> type pairs
3
4
  return {};
4
- });
5
+ } );
@@ -1,5 +1,5 @@
1
- define([
1
+ define( [
2
2
  "./arr"
3
3
  ], function( arr ) {
4
4
  return arr.concat;
5
- });
5
+ } );
@@ -0,0 +1,3 @@
1
+ define( function() {
2
+ return window.document;
3
+ } );
@@ -0,0 +1,5 @@
1
+ define( [
2
+ "./document"
3
+ ], function( document ) {
4
+ return document.documentElement;
5
+ } );
@@ -1,5 +1,5 @@
1
- define([
1
+ define( [
2
2
  "./class2type"
3
3
  ], function( class2type ) {
4
4
  return class2type.hasOwnProperty;
5
- });
5
+ } );
@@ -1,5 +1,5 @@
1
- define([
1
+ define( [
2
2
  "./arr"
3
3
  ], function( arr ) {
4
4
  return arr.indexOf;
5
- });
5
+ } );
@@ -1,3 +1,3 @@
1
- define(function() {
2
- return (/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/).source;
3
- });
1
+ define( function() {
2
+ return ( /[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/ ).source;
3
+ } );
@@ -1,5 +1,5 @@
1
- define([
1
+ define( [
2
2
  "./arr"
3
3
  ], function( arr ) {
4
4
  return arr.push;
5
- });
5
+ } );
@@ -0,0 +1,7 @@
1
+ define( [
2
+ "../var/pnum"
3
+ ], function( pnum ) {
4
+
5
+ return new RegExp( "^(?:([+-])=|)(" + pnum + ")([a-z%]*)$", "i" );
6
+
7
+ } );
@@ -1,3 +1,3 @@
1
- define(function() {
2
- return (/\S+/g);
3
- });
1
+ define( function() {
2
+ return ( /\S+/g );
3
+ } );
@@ -1,5 +1,5 @@
1
- define([
1
+ define( [
2
2
  "./arr"
3
3
  ], function( arr ) {
4
4
  return arr.slice;
5
- });
5
+ } );
@@ -1,4 +1,5 @@
1
- define(function() {
1
+ define( function() {
2
+
2
3
  // All support tests are defined in their respective modules.
3
4
  return {};
4
- });
5
+ } );
@@ -1,5 +1,5 @@
1
- define([
1
+ define( [
2
2
  "./class2type"
3
3
  ], function( class2type ) {
4
4
  return class2type.toString;
5
- });
5
+ } );
@@ -1,18 +1,18 @@
1
- define([
1
+ define( [
2
2
  "./core",
3
3
  "./core/init",
4
4
  "./manipulation", // clone
5
5
  "./traversing" // parent, contents
6
6
  ], function( jQuery ) {
7
7
 
8
- jQuery.fn.extend({
8
+ jQuery.fn.extend( {
9
9
  wrapAll: function( html ) {
10
10
  var wrap;
11
11
 
12
12
  if ( jQuery.isFunction( html ) ) {
13
- return this.each(function( i ) {
14
- jQuery( this ).wrapAll( html.call(this, i) );
15
- });
13
+ return this.each( function( i ) {
14
+ jQuery( this ).wrapAll( html.call( this, i ) );
15
+ } );
16
16
  }
17
17
 
18
18
  if ( this[ 0 ] ) {
@@ -24,7 +24,7 @@ jQuery.fn.extend({
24
24
  wrap.insertBefore( this[ 0 ] );
25
25
  }
26
26
 
27
- wrap.map(function() {
27
+ wrap.map( function() {
28
28
  var elem = this;
29
29
 
30
30
  while ( elem.firstElementChild ) {
@@ -32,7 +32,7 @@ jQuery.fn.extend({
32
32
  }
33
33
 
34
34
  return elem;
35
- }).append( this );
35
+ } ).append( this );
36
36
  }
37
37
 
38
38
  return this;
@@ -40,12 +40,12 @@ jQuery.fn.extend({
40
40
 
41
41
  wrapInner: function( html ) {
42
42
  if ( jQuery.isFunction( html ) ) {
43
- return this.each(function( i ) {
44
- jQuery( this ).wrapInner( html.call(this, i) );
45
- });
43
+ return this.each( function( i ) {
44
+ jQuery( this ).wrapInner( html.call( this, i ) );
45
+ } );
46
46
  }
47
47
 
48
- return this.each(function() {
48
+ return this.each( function() {
49
49
  var self = jQuery( this ),
50
50
  contents = self.contents();
51
51
 
@@ -55,25 +55,25 @@ jQuery.fn.extend({
55
55
  } else {
56
56
  self.append( html );
57
57
  }
58
- });
58
+ } );
59
59
  },
60
60
 
61
61
  wrap: function( html ) {
62
62
  var isFunction = jQuery.isFunction( html );
63
63
 
64
- return this.each(function( i ) {
65
- jQuery( this ).wrapAll( isFunction ? html.call(this, i) : html );
66
- });
64
+ return this.each( function( i ) {
65
+ jQuery( this ).wrapAll( isFunction ? html.call( this, i ) : html );
66
+ } );
67
67
  },
68
68
 
69
69
  unwrap: function() {
70
- return this.parent().each(function() {
70
+ return this.parent().each( function() {
71
71
  if ( !jQuery.nodeName( this, "body" ) ) {
72
72
  jQuery( this ).replaceWith( this.childNodes );
73
73
  }
74
- }).end();
74
+ } ).end();
75
75
  }
76
- });
76
+ } );
77
77
 
78
78
  return jQuery;
79
- });
79
+ } );
@@ -1,6 +1,7 @@
1
1
  The MIT License
2
+ ===============
2
3
 
3
- Copyright (c) 2011-2014 Felix Gnass [fgnass at neteye dot de]
4
+ Copyright (c) 2011-2015 Felix Gnass [fgnass at gmail dot com]
4
5
 
5
6
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
7
  of this software and associated documentation files (the "Software"), to deal