enju_leaf 2.0.0.beta.1 → 2.0.0.beta.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (198) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/app/views/devise/registrations/edit.html.erb +1 -1
  4. data/config/locales/en.yml +4 -0
  5. data/config/locales/ja.yml +4 -0
  6. data/lib/enju_leaf/version.rb +1 -1
  7. data/spec/dummy/config/environments/test.rb +0 -1
  8. data/spec/dummy/db/development.sqlite3 +0 -0
  9. data/spec/dummy/db/schema.rb +0 -1
  10. data/spec/dummy/db/test.sqlite3 +0 -0
  11. data/spec/dummy/public/404.html +55 -14
  12. data/spec/dummy/public/422.html +55 -14
  13. data/spec/dummy/public/500.html +54 -13
  14. data/spec/dummy/public/apple-touch-icon-precomposed.png +0 -0
  15. data/spec/dummy/public/apple-touch-icon.png +0 -0
  16. metadata +12 -372
  17. data/spec/acceptance/profile.rb +0 -9
  18. data/spec/dummy/node_modules/jquery/AUTHORS.txt +0 -278
  19. data/spec/dummy/node_modules/jquery/LICENSE.txt +0 -36
  20. data/spec/dummy/node_modules/jquery/README.md +0 -65
  21. data/spec/dummy/node_modules/jquery/bower.json +0 -14
  22. data/spec/dummy/node_modules/jquery/dist/jquery.js +0 -9814
  23. data/spec/dummy/node_modules/jquery/dist/jquery.min.js +0 -4
  24. data/spec/dummy/node_modules/jquery/dist/jquery.min.map +0 -1
  25. data/spec/dummy/node_modules/jquery/external/sizzle/LICENSE.txt +0 -36
  26. data/spec/dummy/node_modules/jquery/external/sizzle/dist/sizzle.js +0 -2143
  27. data/spec/dummy/node_modules/jquery/external/sizzle/dist/sizzle.min.js +0 -3
  28. data/spec/dummy/node_modules/jquery/external/sizzle/dist/sizzle.min.map +0 -1
  29. data/spec/dummy/node_modules/jquery/package.json +0 -84
  30. data/spec/dummy/node_modules/jquery/src/ajax.js +0 -845
  31. data/spec/dummy/node_modules/jquery/src/ajax/jsonp.js +0 -100
  32. data/spec/dummy/node_modules/jquery/src/ajax/load.js +0 -83
  33. data/spec/dummy/node_modules/jquery/src/ajax/parseJSON.js +0 -13
  34. data/spec/dummy/node_modules/jquery/src/ajax/parseXML.js +0 -27
  35. data/spec/dummy/node_modules/jquery/src/ajax/script.js +0 -68
  36. data/spec/dummy/node_modules/jquery/src/ajax/var/location.js +0 -3
  37. data/spec/dummy/node_modules/jquery/src/ajax/var/nonce.js +0 -5
  38. data/spec/dummy/node_modules/jquery/src/ajax/var/rquery.js +0 -3
  39. data/spec/dummy/node_modules/jquery/src/ajax/xhr.js +0 -167
  40. data/spec/dummy/node_modules/jquery/src/attributes.js +0 -11
  41. data/spec/dummy/node_modules/jquery/src/attributes/attr.js +0 -142
  42. data/spec/dummy/node_modules/jquery/src/attributes/classes.js +0 -177
  43. data/spec/dummy/node_modules/jquery/src/attributes/prop.js +0 -125
  44. data/spec/dummy/node_modules/jquery/src/attributes/support.js +0 -36
  45. data/spec/dummy/node_modules/jquery/src/attributes/val.js +0 -177
  46. data/spec/dummy/node_modules/jquery/src/callbacks.js +0 -232
  47. data/spec/dummy/node_modules/jquery/src/core.js +0 -494
  48. data/spec/dummy/node_modules/jquery/src/core/access.js +0 -65
  49. data/spec/dummy/node_modules/jquery/src/core/init.js +0 -134
  50. data/spec/dummy/node_modules/jquery/src/core/parseHTML.js +0 -41
  51. data/spec/dummy/node_modules/jquery/src/core/ready.js +0 -103
  52. data/spec/dummy/node_modules/jquery/src/core/var/rsingleTag.js +0 -5
  53. data/spec/dummy/node_modules/jquery/src/css.js +0 -502
  54. data/spec/dummy/node_modules/jquery/src/css/addGetHookIf.js +0 -24
  55. data/spec/dummy/node_modules/jquery/src/css/adjustCSS.js +0 -65
  56. data/spec/dummy/node_modules/jquery/src/css/curCSS.js +0 -60
  57. data/spec/dummy/node_modules/jquery/src/css/defaultDisplay.js +0 -72
  58. data/spec/dummy/node_modules/jquery/src/css/hiddenVisibleSelectors.js +0 -18
  59. data/spec/dummy/node_modules/jquery/src/css/showHide.js +0 -48
  60. data/spec/dummy/node_modules/jquery/src/css/support.js +0 -121
  61. data/spec/dummy/node_modules/jquery/src/css/var/cssExpand.js +0 -3
  62. data/spec/dummy/node_modules/jquery/src/css/var/getStyles.js +0 -15
  63. data/spec/dummy/node_modules/jquery/src/css/var/isHidden.js +0 -16
  64. data/spec/dummy/node_modules/jquery/src/css/var/rmargin.js +0 -3
  65. data/spec/dummy/node_modules/jquery/src/css/var/rnumnonpx.js +0 -5
  66. data/spec/dummy/node_modules/jquery/src/css/var/swap.js +0 -24
  67. data/spec/dummy/node_modules/jquery/src/data.js +0 -187
  68. data/spec/dummy/node_modules/jquery/src/data/Data.js +0 -200
  69. data/spec/dummy/node_modules/jquery/src/data/var/acceptData.js +0 -18
  70. data/spec/dummy/node_modules/jquery/src/data/var/dataPriv.js +0 -5
  71. data/spec/dummy/node_modules/jquery/src/data/var/dataUser.js +0 -5
  72. data/spec/dummy/node_modules/jquery/src/deferred.js +0 -158
  73. data/spec/dummy/node_modules/jquery/src/deprecated.js +0 -32
  74. data/spec/dummy/node_modules/jquery/src/dimensions.js +0 -54
  75. data/spec/dummy/node_modules/jquery/src/effects.js +0 -629
  76. data/spec/dummy/node_modules/jquery/src/effects/Tween.js +0 -121
  77. data/spec/dummy/node_modules/jquery/src/effects/animatedSelector.js +0 -13
  78. data/spec/dummy/node_modules/jquery/src/event.js +0 -711
  79. data/spec/dummy/node_modules/jquery/src/event/ajax.js +0 -20
  80. data/spec/dummy/node_modules/jquery/src/event/alias.js +0 -27
  81. data/spec/dummy/node_modules/jquery/src/event/focusin.js +0 -53
  82. data/spec/dummy/node_modules/jquery/src/event/support.js +0 -9
  83. data/spec/dummy/node_modules/jquery/src/event/trigger.js +0 -183
  84. data/spec/dummy/node_modules/jquery/src/exports/amd.js +0 -24
  85. data/spec/dummy/node_modules/jquery/src/exports/global.js +0 -26
  86. data/spec/dummy/node_modules/jquery/src/intro.js +0 -44
  87. data/spec/dummy/node_modules/jquery/src/jquery.js +0 -37
  88. data/spec/dummy/node_modules/jquery/src/manipulation.js +0 -481
  89. data/spec/dummy/node_modules/jquery/src/manipulation/_evalUrl.js +0 -20
  90. data/spec/dummy/node_modules/jquery/src/manipulation/buildFragment.js +0 -102
  91. data/spec/dummy/node_modules/jquery/src/manipulation/getAll.js +0 -21
  92. data/spec/dummy/node_modules/jquery/src/manipulation/setGlobalEval.js +0 -20
  93. data/spec/dummy/node_modules/jquery/src/manipulation/support.js +0 -33
  94. data/spec/dummy/node_modules/jquery/src/manipulation/var/rcheckableType.js +0 -3
  95. data/spec/dummy/node_modules/jquery/src/manipulation/var/rscriptType.js +0 -3
  96. data/spec/dummy/node_modules/jquery/src/manipulation/var/rtagName.js +0 -3
  97. data/spec/dummy/node_modules/jquery/src/manipulation/wrapMap.js +0 -27
  98. data/spec/dummy/node_modules/jquery/src/offset.js +0 -218
  99. data/spec/dummy/node_modules/jquery/src/outro.js +0 -2
  100. data/spec/dummy/node_modules/jquery/src/queue.js +0 -143
  101. data/spec/dummy/node_modules/jquery/src/queue/delay.js +0 -22
  102. data/spec/dummy/node_modules/jquery/src/selector-native.js +0 -211
  103. data/spec/dummy/node_modules/jquery/src/selector-sizzle.js +0 -14
  104. data/spec/dummy/node_modules/jquery/src/selector.js +0 -1
  105. data/spec/dummy/node_modules/jquery/src/serialize.js +0 -125
  106. data/spec/dummy/node_modules/jquery/src/traversing.js +0 -175
  107. data/spec/dummy/node_modules/jquery/src/traversing/findFilter.js +0 -100
  108. data/spec/dummy/node_modules/jquery/src/traversing/var/dir.js +0 -20
  109. data/spec/dummy/node_modules/jquery/src/traversing/var/rneedsContext.js +0 -6
  110. data/spec/dummy/node_modules/jquery/src/traversing/var/siblings.js +0 -15
  111. data/spec/dummy/node_modules/jquery/src/var/arr.js +0 -3
  112. data/spec/dummy/node_modules/jquery/src/var/class2type.js +0 -5
  113. data/spec/dummy/node_modules/jquery/src/var/concat.js +0 -5
  114. data/spec/dummy/node_modules/jquery/src/var/document.js +0 -3
  115. data/spec/dummy/node_modules/jquery/src/var/documentElement.js +0 -5
  116. data/spec/dummy/node_modules/jquery/src/var/hasOwn.js +0 -5
  117. data/spec/dummy/node_modules/jquery/src/var/indexOf.js +0 -5
  118. data/spec/dummy/node_modules/jquery/src/var/pnum.js +0 -3
  119. data/spec/dummy/node_modules/jquery/src/var/push.js +0 -5
  120. data/spec/dummy/node_modules/jquery/src/var/rcssNum.js +0 -7
  121. data/spec/dummy/node_modules/jquery/src/var/rnotwhite.js +0 -3
  122. data/spec/dummy/node_modules/jquery/src/var/slice.js +0 -5
  123. data/spec/dummy/node_modules/jquery/src/var/support.js +0 -5
  124. data/spec/dummy/node_modules/jquery/src/var/toString.js +0 -5
  125. data/spec/dummy/node_modules/jquery/src/wrap.js +0 -79
  126. data/spec/dummy/package.json +0 -5
  127. data/spec/dummy/public/system/user_export_files/user_exports/000/000/003/original/user_export_file_20141214-44379-1fdvvdb.txt +0 -8
  128. data/spec/dummy/public/system/user_export_files/user_exports/000/000/003/original/user_export_file_20141225-67268-nerc4o.txt +0 -8
  129. data/spec/dummy/public/system/user_export_files/user_exports/000/000/003/original/user_export_file_20150123-14447-1lf8lc5.txt +0 -8
  130. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141214-44379-1exy9mg.txt +0 -8
  131. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141217-58343-ztcmne.txt +0 -8
  132. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141217-58490-hnqvxg.txt +0 -8
  133. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141217-58609-5iyax7.txt +0 -8
  134. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141217-58776-1e9gg8b.txt +0 -8
  135. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141217-58951-zfxzc6.txt +0 -8
  136. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141217-59095-l3yd2t.txt +0 -8
  137. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141217-59220-1mgboh1.txt +0 -8
  138. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141217-59533-1ie807t.txt +0 -8
  139. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141217-59716-m8uy9h.txt +0 -8
  140. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141217-59834-1fcv3ir.txt +0 -8
  141. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141217-59932-14y6v8m.txt +0 -8
  142. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141217-60422-ksg8ww.txt +0 -8
  143. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141217-60507-j2u5ra.txt +0 -8
  144. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141217-60619-2j2h65.txt +0 -8
  145. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141217-60822-1xdqwcc.txt +0 -8
  146. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141217-60925-4d4ce1.txt +0 -8
  147. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141217-61046-y4nspn.txt +0 -8
  148. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141217-62053-1qsuqzd.txt +0 -8
  149. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141217-62204-3quf6j.txt +0 -8
  150. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141217-62472-w05wkf.txt +0 -8
  151. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141218-67112-1viizrs.txt +0 -8
  152. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141218-67232-11tcrfq.txt +0 -8
  153. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141218-67342-1bajplt.txt +0 -8
  154. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141218-67475-gmnmq4.txt +0 -8
  155. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141220-74670-mxvkc6.txt +0 -8
  156. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141220-74954-1m11avl.txt +0 -8
  157. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141220-75054-1ac0xmz.txt +0 -8
  158. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141220-75135-1r3z1p.txt +0 -8
  159. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141220-75289-18xm9sx.txt +0 -8
  160. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141220-75372-1ab1rn4.txt +0 -8
  161. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141220-75612-14gavh8.txt +0 -8
  162. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141220-75709-xgjjja.txt +0 -8
  163. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141220-75832-uej6ye.txt +0 -8
  164. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141220-75905-13kbauv.txt +0 -8
  165. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141220-76001-13yt1kv.txt +0 -8
  166. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141220-76158-1pitds8.txt +0 -8
  167. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141220-76526-q0rb2j.txt +0 -8
  168. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141220-76848-ya95k2.txt +0 -8
  169. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141220-88475-165899e.txt +0 -8
  170. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141220-89902-paupo2.txt +0 -8
  171. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141220-90001-1eg9w1e.txt +0 -8
  172. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141220-90157-bcu8m7.txt +0 -8
  173. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141221-7985-u6s6l1.txt +0 -8
  174. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141224-44711-1amcibm.txt +0 -8
  175. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141224-44828-ap6n8d.txt +0 -8
  176. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141225-48701-14hbzl1.txt +0 -8
  177. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141225-49875-1pc6esj.txt +0 -8
  178. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141225-64608-1wo1bpq.txt +0 -8
  179. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141225-64763-daej3l.txt +0 -8
  180. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141225-65000-1a7srlh.txt +0 -8
  181. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141225-65196-ggad1c.txt +0 -8
  182. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141225-65273-tt5ev2.txt +0 -8
  183. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141225-65424-1d17hts.txt +0 -8
  184. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141225-65662-1gqvlj3.txt +0 -8
  185. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141225-65725-1qpz2tm.txt +0 -8
  186. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141225-65807-t7cfln.txt +0 -8
  187. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141225-65962-161pm01.txt +0 -8
  188. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141225-66069-h9ftv6.txt +0 -8
  189. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141225-66327-hsz0j4.txt +0 -8
  190. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20141225-67268-hqxt6v.txt +0 -8
  191. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20150119-54567-1exwx4r.txt +0 -8
  192. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20150120-80886-1whqn2s.txt +0 -8
  193. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20150120-81115-hlvwc4.txt +0 -8
  194. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20150121-86495-navftm.txt +0 -8
  195. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20150121-86986-894a3i.txt +0 -8
  196. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20150122-4492-vaml86.txt +0 -8
  197. data/spec/dummy/public/system/user_export_files/user_exports/000/000/004/original/user_export_file_20150123-14447-gy0ver.txt +0 -8
  198. data/spec/dummy/yarn.lock +0 -8
@@ -1,11 +0,0 @@
1
- define( [
2
- "./core",
3
- "./attributes/attr",
4
- "./attributes/prop",
5
- "./attributes/classes",
6
- "./attributes/val"
7
- ], function( jQuery ) {
8
-
9
- // Return jQuery for attributes-only inclusion
10
- return jQuery;
11
- } );
@@ -1,142 +0,0 @@
1
- define( [
2
- "../core",
3
- "../core/access",
4
- "./support",
5
- "../var/rnotwhite",
6
- "../selector"
7
- ], function( jQuery, access, support, rnotwhite ) {
8
-
9
- var boolHook,
10
- attrHandle = jQuery.expr.attrHandle;
11
-
12
- jQuery.fn.extend( {
13
- attr: function( name, value ) {
14
- return access( this, jQuery.attr, name, value, arguments.length > 1 );
15
- },
16
-
17
- removeAttr: function( name ) {
18
- return this.each( function() {
19
- jQuery.removeAttr( this, name );
20
- } );
21
- }
22
- } );
23
-
24
- jQuery.extend( {
25
- attr: function( elem, name, value ) {
26
- var ret, hooks,
27
- nType = elem.nodeType;
28
-
29
- // Don't get/set attributes on text, comment and attribute nodes
30
- if ( nType === 3 || nType === 8 || nType === 2 ) {
31
- return;
32
- }
33
-
34
- // Fallback to prop when attributes are not supported
35
- if ( typeof elem.getAttribute === "undefined" ) {
36
- return jQuery.prop( elem, name, value );
37
- }
38
-
39
- // All attributes are lowercase
40
- // Grab necessary hook if one is defined
41
- if ( nType !== 1 || !jQuery.isXMLDoc( elem ) ) {
42
- name = name.toLowerCase();
43
- hooks = jQuery.attrHooks[ name ] ||
44
- ( jQuery.expr.match.bool.test( name ) ? boolHook : undefined );
45
- }
46
-
47
- if ( value !== undefined ) {
48
- if ( value === null ) {
49
- jQuery.removeAttr( elem, name );
50
- return;
51
- }
52
-
53
- if ( hooks && "set" in hooks &&
54
- ( ret = hooks.set( elem, value, name ) ) !== undefined ) {
55
- return ret;
56
- }
57
-
58
- elem.setAttribute( name, value + "" );
59
- return value;
60
- }
61
-
62
- if ( hooks && "get" in hooks && ( ret = hooks.get( elem, name ) ) !== null ) {
63
- return ret;
64
- }
65
-
66
- ret = jQuery.find.attr( elem, name );
67
-
68
- // Non-existent attributes return null, we normalize to undefined
69
- return ret == null ? undefined : ret;
70
- },
71
-
72
- attrHooks: {
73
- type: {
74
- set: function( elem, value ) {
75
- if ( !support.radioValue && value === "radio" &&
76
- jQuery.nodeName( elem, "input" ) ) {
77
- var val = elem.value;
78
- elem.setAttribute( "type", value );
79
- if ( val ) {
80
- elem.value = val;
81
- }
82
- return value;
83
- }
84
- }
85
- }
86
- },
87
-
88
- removeAttr: function( elem, value ) {
89
- var name, propName,
90
- i = 0,
91
- attrNames = value && value.match( rnotwhite );
92
-
93
- if ( attrNames && elem.nodeType === 1 ) {
94
- while ( ( name = attrNames[ i++ ] ) ) {
95
- propName = jQuery.propFix[ name ] || name;
96
-
97
- // Boolean attributes get special treatment (#10870)
98
- if ( jQuery.expr.match.bool.test( name ) ) {
99
-
100
- // Set corresponding property to false
101
- elem[ propName ] = false;
102
- }
103
-
104
- elem.removeAttribute( name );
105
- }
106
- }
107
- }
108
- } );
109
-
110
- // Hooks for boolean attributes
111
- boolHook = {
112
- set: function( elem, value, name ) {
113
- if ( value === false ) {
114
-
115
- // Remove boolean attributes when set to false
116
- jQuery.removeAttr( elem, name );
117
- } else {
118
- elem.setAttribute( name, name );
119
- }
120
- return name;
121
- }
122
- };
123
- jQuery.each( jQuery.expr.match.bool.source.match( /\w+/g ), function( i, name ) {
124
- var getter = attrHandle[ name ] || jQuery.find.attr;
125
-
126
- attrHandle[ name ] = function( elem, name, isXML ) {
127
- var ret, handle;
128
- if ( !isXML ) {
129
-
130
- // Avoid an infinite loop by temporarily removing this function from the getter
131
- handle = attrHandle[ name ];
132
- attrHandle[ name ] = ret;
133
- ret = getter( elem, name, isXML ) != null ?
134
- name.toLowerCase() :
135
- null;
136
- attrHandle[ name ] = handle;
137
- }
138
- return ret;
139
- };
140
- } );
141
-
142
- } );
@@ -1,177 +0,0 @@
1
- define( [
2
- "../core",
3
- "../var/rnotwhite",
4
- "../data/var/dataPriv",
5
- "../core/init"
6
- ], function( jQuery, rnotwhite, dataPriv ) {
7
-
8
- var rclass = /[\t\r\n\f]/g;
9
-
10
- function getClass( elem ) {
11
- return elem.getAttribute && elem.getAttribute( "class" ) || "";
12
- }
13
-
14
- jQuery.fn.extend( {
15
- addClass: function( value ) {
16
- var classes, elem, cur, curValue, clazz, j, finalValue,
17
- i = 0;
18
-
19
- if ( jQuery.isFunction( value ) ) {
20
- return this.each( function( j ) {
21
- jQuery( this ).addClass( value.call( this, j, getClass( this ) ) );
22
- } );
23
- }
24
-
25
- if ( typeof value === "string" && value ) {
26
- classes = value.match( rnotwhite ) || [];
27
-
28
- while ( ( elem = this[ i++ ] ) ) {
29
- curValue = getClass( elem );
30
- cur = elem.nodeType === 1 &&
31
- ( " " + curValue + " " ).replace( rclass, " " );
32
-
33
- if ( cur ) {
34
- j = 0;
35
- while ( ( clazz = classes[ j++ ] ) ) {
36
- if ( cur.indexOf( " " + clazz + " " ) < 0 ) {
37
- cur += clazz + " ";
38
- }
39
- }
40
-
41
- // Only assign if different to avoid unneeded rendering.
42
- finalValue = jQuery.trim( cur );
43
- if ( curValue !== finalValue ) {
44
- elem.setAttribute( "class", finalValue );
45
- }
46
- }
47
- }
48
- }
49
-
50
- return this;
51
- },
52
-
53
- removeClass: function( value ) {
54
- var classes, elem, cur, curValue, clazz, j, finalValue,
55
- i = 0;
56
-
57
- if ( jQuery.isFunction( value ) ) {
58
- return this.each( function( j ) {
59
- jQuery( this ).removeClass( value.call( this, j, getClass( this ) ) );
60
- } );
61
- }
62
-
63
- if ( !arguments.length ) {
64
- return this.attr( "class", "" );
65
- }
66
-
67
- if ( typeof value === "string" && value ) {
68
- classes = value.match( rnotwhite ) || [];
69
-
70
- while ( ( elem = this[ i++ ] ) ) {
71
- curValue = getClass( elem );
72
-
73
- // This expression is here for better compressibility (see addClass)
74
- cur = elem.nodeType === 1 &&
75
- ( " " + curValue + " " ).replace( rclass, " " );
76
-
77
- if ( cur ) {
78
- j = 0;
79
- while ( ( clazz = classes[ j++ ] ) ) {
80
-
81
- // Remove *all* instances
82
- while ( cur.indexOf( " " + clazz + " " ) > -1 ) {
83
- cur = cur.replace( " " + clazz + " ", " " );
84
- }
85
- }
86
-
87
- // Only assign if different to avoid unneeded rendering.
88
- finalValue = jQuery.trim( cur );
89
- if ( curValue !== finalValue ) {
90
- elem.setAttribute( "class", finalValue );
91
- }
92
- }
93
- }
94
- }
95
-
96
- return this;
97
- },
98
-
99
- toggleClass: function( value, stateVal ) {
100
- var type = typeof value;
101
-
102
- if ( typeof stateVal === "boolean" && type === "string" ) {
103
- return stateVal ? this.addClass( value ) : this.removeClass( value );
104
- }
105
-
106
- if ( jQuery.isFunction( value ) ) {
107
- return this.each( function( i ) {
108
- jQuery( this ).toggleClass(
109
- value.call( this, i, getClass( this ), stateVal ),
110
- stateVal
111
- );
112
- } );
113
- }
114
-
115
- return this.each( function() {
116
- var className, i, self, classNames;
117
-
118
- if ( type === "string" ) {
119
-
120
- // Toggle individual class names
121
- i = 0;
122
- self = jQuery( this );
123
- classNames = value.match( rnotwhite ) || [];
124
-
125
- while ( ( className = classNames[ i++ ] ) ) {
126
-
127
- // Check each className given, space separated list
128
- if ( self.hasClass( className ) ) {
129
- self.removeClass( className );
130
- } else {
131
- self.addClass( className );
132
- }
133
- }
134
-
135
- // Toggle whole class name
136
- } else if ( value === undefined || type === "boolean" ) {
137
- className = getClass( this );
138
- if ( className ) {
139
-
140
- // Store className if set
141
- dataPriv.set( this, "__className__", className );
142
- }
143
-
144
- // If the element has a class name or if we're passed `false`,
145
- // then remove the whole classname (if there was one, the above saved it).
146
- // Otherwise bring back whatever was previously saved (if anything),
147
- // falling back to the empty string if nothing was stored.
148
- if ( this.setAttribute ) {
149
- this.setAttribute( "class",
150
- className || value === false ?
151
- "" :
152
- dataPriv.get( this, "__className__" ) || ""
153
- );
154
- }
155
- }
156
- } );
157
- },
158
-
159
- hasClass: function( selector ) {
160
- var className, elem,
161
- i = 0;
162
-
163
- className = " " + selector + " ";
164
- while ( ( elem = this[ i++ ] ) ) {
165
- if ( elem.nodeType === 1 &&
166
- ( " " + getClass( elem ) + " " ).replace( rclass, " " )
167
- .indexOf( className ) > -1
168
- ) {
169
- return true;
170
- }
171
- }
172
-
173
- return false;
174
- }
175
- } );
176
-
177
- } );
@@ -1,125 +0,0 @@
1
- define( [
2
- "../core",
3
- "../core/access",
4
- "./support",
5
- "../selector"
6
- ], function( jQuery, access, support ) {
7
-
8
- var rfocusable = /^(?:input|select|textarea|button)$/i,
9
- rclickable = /^(?:a|area)$/i;
10
-
11
- jQuery.fn.extend( {
12
- prop: function( name, value ) {
13
- return access( this, jQuery.prop, name, value, arguments.length > 1 );
14
- },
15
-
16
- removeProp: function( name ) {
17
- return this.each( function() {
18
- delete this[ jQuery.propFix[ name ] || name ];
19
- } );
20
- }
21
- } );
22
-
23
- jQuery.extend( {
24
- prop: function( elem, name, value ) {
25
- var ret, hooks,
26
- nType = elem.nodeType;
27
-
28
- // Don't get/set properties on text, comment and attribute nodes
29
- if ( nType === 3 || nType === 8 || nType === 2 ) {
30
- return;
31
- }
32
-
33
- if ( nType !== 1 || !jQuery.isXMLDoc( elem ) ) {
34
-
35
- // Fix name and attach hooks
36
- name = jQuery.propFix[ name ] || name;
37
- hooks = jQuery.propHooks[ name ];
38
- }
39
-
40
- if ( value !== undefined ) {
41
- if ( hooks && "set" in hooks &&
42
- ( ret = hooks.set( elem, value, name ) ) !== undefined ) {
43
- return ret;
44
- }
45
-
46
- return ( elem[ name ] = value );
47
- }
48
-
49
- if ( hooks && "get" in hooks && ( ret = hooks.get( elem, name ) ) !== null ) {
50
- return ret;
51
- }
52
-
53
- return elem[ name ];
54
- },
55
-
56
- propHooks: {
57
- tabIndex: {
58
- get: function( elem ) {
59
-
60
- // elem.tabIndex doesn't always return the
61
- // correct value when it hasn't been explicitly set
62
- // http://fluidproject.org/blog/2008/01/09/getting-setting-and-removing-tabindex-values-with-javascript/
63
- // Use proper attribute retrieval(#12072)
64
- var tabindex = jQuery.find.attr( elem, "tabindex" );
65
-
66
- return tabindex ?
67
- parseInt( tabindex, 10 ) :
68
- rfocusable.test( elem.nodeName ) ||
69
- rclickable.test( elem.nodeName ) && elem.href ?
70
- 0 :
71
- -1;
72
- }
73
- }
74
- },
75
-
76
- propFix: {
77
- "for": "htmlFor",
78
- "class": "className"
79
- }
80
- } );
81
-
82
- // Support: IE <=11 only
83
- // Accessing the selectedIndex property
84
- // forces the browser to respect setting selected
85
- // on the option
86
- // The getter ensures a default option is selected
87
- // when in an optgroup
88
- if ( !support.optSelected ) {
89
- jQuery.propHooks.selected = {
90
- get: function( elem ) {
91
- var parent = elem.parentNode;
92
- if ( parent && parent.parentNode ) {
93
- parent.parentNode.selectedIndex;
94
- }
95
- return null;
96
- },
97
- set: function( elem ) {
98
- var parent = elem.parentNode;
99
- if ( parent ) {
100
- parent.selectedIndex;
101
-
102
- if ( parent.parentNode ) {
103
- parent.parentNode.selectedIndex;
104
- }
105
- }
106
- }
107
- };
108
- }
109
-
110
- jQuery.each( [
111
- "tabIndex",
112
- "readOnly",
113
- "maxLength",
114
- "cellSpacing",
115
- "cellPadding",
116
- "rowSpan",
117
- "colSpan",
118
- "useMap",
119
- "frameBorder",
120
- "contentEditable"
121
- ], function() {
122
- jQuery.propFix[ this.toLowerCase() ] = this;
123
- } );
124
-
125
- } );