fork download
  1. // コンパイル+整形後
  2. function access(c, a, d, e, h, i, f) {
  3. var b = 0,
  4. j = c.length,
  5. g = null == d;
  6. if ("object" === jQuery.type(d))
  7. for (b in h = !0, d) jQuery.access(c, a, b, d[b], !0, i, f);
  8. else if (void 0 !== e && (h = !0, jQuery.isFunction(e) || (f = !0), g && (f ? (a.call(c, e), a = null) : (g = a, a = function (a, c, b) {
  9. return g.call(jQuery(a), b)
  10. })), a))
  11. for (; b < j; b++) a(c[b], d, f ? e : e.call(c[b], b, a(c[b], d)));
  12. return h ? c : g ? a.call(c) : j ? a(c[0], d) : i
  13. };
  14.  
  15. // コンパイル前
  16. function access( elems, fn, key, value, chainable, emptyGet, raw ) {
  17. var i = 0,
  18. length = elems.length;
  19. bulk = key == null;
  20.  
  21. // Sets many values
  22. if ( jQuery.type( key ) === "object" ) {
  23. chainable = true;
  24. for ( i in key ) {
  25. jQuery.access( elems, fn, i, key[i], true, emptyGet, raw );
  26. }
  27.  
  28. // Sets one value
  29. } else if ( value !== undefined ) {
  30. chainable = true;
  31.  
  32. if ( !jQuery.isFunction( value ) ) {
  33. raw = true;
  34. }
  35.  
  36. if ( bulk ) {
  37. // Bulk operations run against the entire set
  38. if ( raw ) {
  39. fn.call( elems, value );
  40. fn = null;
  41.  
  42. // ...except when executing function values
  43. } else {
  44. bulk = fn;
  45. fn = function( elem, key, value ) {
  46. return bulk.call( jQuery( elem ), value );
  47. };
  48. }
  49. }
  50.  
  51. if ( fn ) {
  52. for ( ; i < length; i++ ) {
  53. fn( elems[i], key, raw ? value : value.call( elems[i], i, fn( elems[i], key ) ) );
  54. }
  55. }
  56. }
  57. if( chainable ){
  58. return elems;
  59. }
  60.  
  61. else if( bulk ){
  62. return fn.call( elems );
  63. }
  64.  
  65. else if ( length ){
  66. return fn( elems[0], key );
  67. }
  68. else {
  69. return emptyGet;
  70. }
  71. }
  72.  
  73.  
Success #stdin #stdout 0.46s 382976KB
stdin
Standard input is empty
stdout
Standard output is empty