@bingads-webui-campaign/accounts-grid 0.0.1-security → 13.6.3

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of @bingads-webui-campaign/accounts-grid might be problematic. Click here for more details.

Files changed (126) hide show
  1. package/AUTHORS.txt +337 -0
  2. package/LICENSE.txt +20 -0
  3. package/README.md +58 -3
  4. package/bower.json +14 -0
  5. package/dist/jquery.js +10996 -0
  6. package/dist/jquery.min.js +2 -0
  7. package/dist/jquery.min.map +1 -0
  8. package/dist/jquery.slim.js +8894 -0
  9. package/dist/jquery.slim.min.js +2 -0
  10. package/dist/jquery.slim.min.map +1 -0
  11. package/external/sizzle/LICENSE.txt +36 -0
  12. package/external/sizzle/dist/sizzle.js +2542 -0
  13. package/external/sizzle/dist/sizzle.min.js +3 -0
  14. package/external/sizzle/dist/sizzle.min.map +1 -0
  15. package/package.json +139 -3
  16. package/src/ajax/jsonp.js +103 -0
  17. package/src/ajax/load.js +77 -0
  18. package/src/ajax/script.js +74 -0
  19. package/src/ajax/var/location.js +5 -0
  20. package/src/ajax/var/nonce.js +5 -0
  21. package/src/ajax/var/rquery.js +5 -0
  22. package/src/ajax/xhr.js +170 -0
  23. package/src/ajax.js +876 -0
  24. package/src/attributes/attr.js +141 -0
  25. package/src/attributes/classes.js +184 -0
  26. package/src/attributes/prop.js +142 -0
  27. package/src/attributes/support.js +33 -0
  28. package/src/attributes/val.js +191 -0
  29. package/src/attributes.js +13 -0
  30. package/src/callbacks.js +236 -0
  31. package/src/core/DOMEval.js +43 -0
  32. package/src/core/access.js +72 -0
  33. package/src/core/camelCase.js +23 -0
  34. package/src/core/init.js +129 -0
  35. package/src/core/isAttached.js +26 -0
  36. package/src/core/nodeName.js +13 -0
  37. package/src/core/parseHTML.js +65 -0
  38. package/src/core/parseXML.js +35 -0
  39. package/src/core/ready-no-deferred.js +97 -0
  40. package/src/core/ready.js +86 -0
  41. package/src/core/readyException.js +13 -0
  42. package/src/core/stripAndCollapse.js +14 -0
  43. package/src/core/support.js +20 -0
  44. package/src/core/toType.js +20 -0
  45. package/src/core/var/rsingleTag.js +7 -0
  46. package/src/core.js +400 -0
  47. package/src/css/addGetHookIf.js +26 -0
  48. package/src/css/adjustCSS.js +74 -0
  49. package/src/css/curCSS.js +100 -0
  50. package/src/css/finalPropName.js +42 -0
  51. package/src/css/hiddenVisibleSelectors.js +15 -0
  52. package/src/css/showHide.js +105 -0
  53. package/src/css/support.js +152 -0
  54. package/src/css/var/cssExpand.js +5 -0
  55. package/src/css/var/getStyles.js +17 -0
  56. package/src/css/var/isHiddenWithinTree.js +34 -0
  57. package/src/css/var/rboxStyle.js +7 -0
  58. package/src/css/var/rcustomProp.js +7 -0
  59. package/src/css/var/rnumnonpx.js +7 -0
  60. package/src/css/var/swap.js +26 -0
  61. package/src/css.js +495 -0
  62. package/src/data/Data.js +162 -0
  63. package/src/data/var/acceptData.js +19 -0
  64. package/src/data/var/dataPriv.js +7 -0
  65. package/src/data/var/dataUser.js +7 -0
  66. package/src/data.js +180 -0
  67. package/src/deferred/exceptionHook.js +21 -0
  68. package/src/deferred.js +399 -0
  69. package/src/deprecated/ajax-event-alias.js +22 -0
  70. package/src/deprecated/event.js +50 -0
  71. package/src/deprecated.js +89 -0
  72. package/src/dimensions.js +60 -0
  73. package/src/effects/Tween.js +125 -0
  74. package/src/effects/animatedSelector.js +15 -0
  75. package/src/effects.js +702 -0
  76. package/src/event/focusin.js +58 -0
  77. package/src/event/support.js +11 -0
  78. package/src/event/trigger.js +199 -0
  79. package/src/event.js +874 -0
  80. package/src/exports/amd.js +26 -0
  81. package/src/exports/global.js +34 -0
  82. package/src/jquery.js +41 -0
  83. package/src/manipulation/_evalUrl.js +32 -0
  84. package/src/manipulation/buildFragment.js +106 -0
  85. package/src/manipulation/getAll.js +32 -0
  86. package/src/manipulation/setGlobalEval.js +22 -0
  87. package/src/manipulation/support.js +41 -0
  88. package/src/manipulation/var/rscriptType.js +5 -0
  89. package/src/manipulation/var/rtagName.js +8 -0
  90. package/src/manipulation/wrapMap.js +30 -0
  91. package/src/manipulation.js +487 -0
  92. package/src/offset.js +232 -0
  93. package/src/queue/delay.js +23 -0
  94. package/src/queue.js +145 -0
  95. package/src/selector-native.js +240 -0
  96. package/src/selector-sizzle.js +19 -0
  97. package/src/selector.js +3 -0
  98. package/src/serialize.js +134 -0
  99. package/src/traversing/findFilter.js +97 -0
  100. package/src/traversing/var/dir.js +22 -0
  101. package/src/traversing/var/rneedsContext.js +8 -0
  102. package/src/traversing/var/siblings.js +17 -0
  103. package/src/traversing.js +198 -0
  104. package/src/var/ObjectFunctionString.js +7 -0
  105. package/src/var/arr.js +5 -0
  106. package/src/var/class2type.js +6 -0
  107. package/src/var/document.js +5 -0
  108. package/src/var/documentElement.js +7 -0
  109. package/src/var/flat.js +16 -0
  110. package/src/var/fnToString.js +7 -0
  111. package/src/var/getProto.js +5 -0
  112. package/src/var/hasOwn.js +7 -0
  113. package/src/var/indexOf.js +7 -0
  114. package/src/var/isFunction.js +17 -0
  115. package/src/var/isWindow.js +8 -0
  116. package/src/var/pnum.js +5 -0
  117. package/src/var/push.js +7 -0
  118. package/src/var/rcheckableType.js +5 -0
  119. package/src/var/rcssNum.js +9 -0
  120. package/src/var/rnothtmlwhite.js +8 -0
  121. package/src/var/rtrimCSS.js +12 -0
  122. package/src/var/slice.js +7 -0
  123. package/src/var/support.js +6 -0
  124. package/src/var/toString.js +7 -0
  125. package/src/var/whitespace.js +8 -0
  126. package/src/wrap.js +78 -0
@@ -0,0 +1,23 @@
1
+ define( [
2
+ "../core",
3
+ "../queue",
4
+ "../effects" // Delay is optional because of this dependency
5
+ ], function( jQuery ) {
6
+
7
+ "use strict";
8
+
9
+ // Based off of the plugin by Clint Helfers, with permission.
10
+ jQuery.fn.delay = function( time, type ) {
11
+ time = jQuery.fx ? jQuery.fx.speeds[ time ] || time : time;
12
+ type = type || "fx";
13
+
14
+ return this.queue( type, function( next, hooks ) {
15
+ var timeout = window.setTimeout( next, time );
16
+ hooks.stop = function() {
17
+ window.clearTimeout( timeout );
18
+ };
19
+ } );
20
+ };
21
+
22
+ return jQuery.fn.delay;
23
+ } );
package/src/queue.js ADDED
@@ -0,0 +1,145 @@
1
+ define( [
2
+ "./core",
3
+ "./data/var/dataPriv",
4
+ "./deferred",
5
+ "./callbacks"
6
+ ], function( jQuery, dataPriv ) {
7
+
8
+ "use strict";
9
+
10
+ jQuery.extend( {
11
+ queue: function( elem, type, data ) {
12
+ var queue;
13
+
14
+ if ( elem ) {
15
+ type = ( type || "fx" ) + "queue";
16
+ queue = dataPriv.get( elem, type );
17
+
18
+ // Speed up dequeue by getting out quickly if this is just a lookup
19
+ if ( data ) {
20
+ if ( !queue || Array.isArray( data ) ) {
21
+ queue = dataPriv.access( elem, type, jQuery.makeArray( data ) );
22
+ } else {
23
+ queue.push( data );
24
+ }
25
+ }
26
+ return queue || [];
27
+ }
28
+ },
29
+
30
+ dequeue: function( elem, type ) {
31
+ type = type || "fx";
32
+
33
+ var queue = jQuery.queue( elem, type ),
34
+ startLength = queue.length,
35
+ fn = queue.shift(),
36
+ hooks = jQuery._queueHooks( elem, type ),
37
+ next = function() {
38
+ jQuery.dequeue( elem, type );
39
+ };
40
+
41
+ // If the fx queue is dequeued, always remove the progress sentinel
42
+ if ( fn === "inprogress" ) {
43
+ fn = queue.shift();
44
+ startLength--;
45
+ }
46
+
47
+ if ( fn ) {
48
+
49
+ // Add a progress sentinel to prevent the fx queue from being
50
+ // automatically dequeued
51
+ if ( type === "fx" ) {
52
+ queue.unshift( "inprogress" );
53
+ }
54
+
55
+ // Clear up the last queue stop function
56
+ delete hooks.stop;
57
+ fn.call( elem, next, hooks );
58
+ }
59
+
60
+ if ( !startLength && hooks ) {
61
+ hooks.empty.fire();
62
+ }
63
+ },
64
+
65
+ // Not public - generate a queueHooks object, or return the current one
66
+ _queueHooks: function( elem, type ) {
67
+ var key = type + "queueHooks";
68
+ return dataPriv.get( elem, key ) || dataPriv.access( elem, key, {
69
+ empty: jQuery.Callbacks( "once memory" ).add( function() {
70
+ dataPriv.remove( elem, [ type + "queue", key ] );
71
+ } )
72
+ } );
73
+ }
74
+ } );
75
+
76
+ jQuery.fn.extend( {
77
+ queue: function( type, data ) {
78
+ var setter = 2;
79
+
80
+ if ( typeof type !== "string" ) {
81
+ data = type;
82
+ type = "fx";
83
+ setter--;
84
+ }
85
+
86
+ if ( arguments.length < setter ) {
87
+ return jQuery.queue( this[ 0 ], type );
88
+ }
89
+
90
+ return data === undefined ?
91
+ this :
92
+ this.each( function() {
93
+ var queue = jQuery.queue( this, type, data );
94
+
95
+ // Ensure a hooks for this queue
96
+ jQuery._queueHooks( this, type );
97
+
98
+ if ( type === "fx" && queue[ 0 ] !== "inprogress" ) {
99
+ jQuery.dequeue( this, type );
100
+ }
101
+ } );
102
+ },
103
+ dequeue: function( type ) {
104
+ return this.each( function() {
105
+ jQuery.dequeue( this, type );
106
+ } );
107
+ },
108
+ clearQueue: function( type ) {
109
+ return this.queue( type || "fx", [] );
110
+ },
111
+
112
+ // Get a promise resolved when queues of a certain type
113
+ // are emptied (fx is the type by default)
114
+ promise: function( type, obj ) {
115
+ var tmp,
116
+ count = 1,
117
+ defer = jQuery.Deferred(),
118
+ elements = this,
119
+ i = this.length,
120
+ resolve = function() {
121
+ if ( !( --count ) ) {
122
+ defer.resolveWith( elements, [ elements ] );
123
+ }
124
+ };
125
+
126
+ if ( typeof type !== "string" ) {
127
+ obj = type;
128
+ type = undefined;
129
+ }
130
+ type = type || "fx";
131
+
132
+ while ( i-- ) {
133
+ tmp = dataPriv.get( elements[ i ], type + "queueHooks" );
134
+ if ( tmp && tmp.empty ) {
135
+ count++;
136
+ tmp.empty.add( resolve );
137
+ }
138
+ }
139
+ resolve();
140
+ return defer.promise( obj );
141
+ }
142
+ } );
143
+
144
+ return jQuery;
145
+ } );
@@ -0,0 +1,240 @@
1
+ define( [
2
+ "./core",
3
+ "./var/document",
4
+ "./var/documentElement",
5
+ "./var/hasOwn",
6
+ "./var/indexOf"
7
+ ], function( jQuery, document, documentElement, hasOwn, indexOf ) {
8
+
9
+ "use strict";
10
+
11
+ /*
12
+ * Optional (non-Sizzle) selector module for custom builds.
13
+ *
14
+ * Note that this DOES NOT SUPPORT many documented jQuery
15
+ * features in exchange for its smaller size:
16
+ *
17
+ * Attribute not equal selector
18
+ * Positional selectors (:first; :eq(n); :odd; etc.)
19
+ * Type selectors (:input; :checkbox; :button; etc.)
20
+ * State-based selectors (:animated; :visible; :hidden; etc.)
21
+ * :has(selector)
22
+ * :not(complex selector)
23
+ * custom selectors via Sizzle extensions
24
+ * Leading combinators (e.g., $collection.find("> *"))
25
+ * Reliable functionality on XML fragments
26
+ * Requiring all parts of a selector to match elements under context
27
+ * (e.g., $div.find("div > *") now matches children of $div)
28
+ * Matching against non-elements
29
+ * Reliable sorting of disconnected nodes
30
+ * querySelectorAll bug fixes (e.g., unreliable :focus on WebKit)
31
+ *
32
+ * If any of these are unacceptable tradeoffs, either use Sizzle or
33
+ * customize this stub for the project's specific needs.
34
+ */
35
+
36
+ var hasDuplicate, sortInput,
37
+ rhtmlSuffix = /HTML$/i,
38
+ sortStable = jQuery.expando.split( "" ).sort( sortOrder ).join( "" ) === jQuery.expando,
39
+ matches = documentElement.matches ||
40
+ documentElement.webkitMatchesSelector ||
41
+ documentElement.mozMatchesSelector ||
42
+ documentElement.oMatchesSelector ||
43
+ documentElement.msMatchesSelector,
44
+
45
+ // CSS string/identifier serialization
46
+ // https://drafts.csswg.org/cssom/#common-serializing-idioms
47
+ rcssescape = /([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g,
48
+ fcssescape = function( ch, asCodePoint ) {
49
+ if ( asCodePoint ) {
50
+
51
+ // U+0000 NULL becomes U+FFFD REPLACEMENT CHARACTER
52
+ if ( ch === "\0" ) {
53
+ return "\uFFFD";
54
+ }
55
+
56
+ // Control characters and (dependent upon position) numbers get escaped as code points
57
+ return ch.slice( 0, -1 ) + "\\" + ch.charCodeAt( ch.length - 1 ).toString( 16 ) + " ";
58
+ }
59
+
60
+ // Other potentially-special ASCII characters get backslash-escaped
61
+ return "\\" + ch;
62
+ };
63
+
64
+ function sortOrder( a, b ) {
65
+
66
+ // Flag for duplicate removal
67
+ if ( a === b ) {
68
+ hasDuplicate = true;
69
+ return 0;
70
+ }
71
+
72
+ // Sort on method existence if only one input has compareDocumentPosition
73
+ var compare = !a.compareDocumentPosition - !b.compareDocumentPosition;
74
+ if ( compare ) {
75
+ return compare;
76
+ }
77
+
78
+ // Calculate position if both inputs belong to the same document
79
+ compare = ( a.ownerDocument || a ) === ( b.ownerDocument || b ) ?
80
+ a.compareDocumentPosition( b ) :
81
+
82
+ // Otherwise we know they are disconnected
83
+ 1;
84
+
85
+ // Disconnected nodes
86
+ if ( compare & 1 ) {
87
+
88
+ // Choose the first element that is related to our preferred document
89
+ if ( a === document || a.ownerDocument === document &&
90
+ jQuery.contains( document, a ) ) {
91
+ return -1;
92
+ }
93
+ if ( b === document || b.ownerDocument === document &&
94
+ jQuery.contains( document, b ) ) {
95
+ return 1;
96
+ }
97
+
98
+ // Maintain original order
99
+ return sortInput ?
100
+ ( indexOf.call( sortInput, a ) - indexOf.call( sortInput, b ) ) :
101
+ 0;
102
+ }
103
+
104
+ return compare & 4 ? -1 : 1;
105
+ }
106
+
107
+ function uniqueSort( results ) {
108
+ var elem,
109
+ duplicates = [],
110
+ j = 0,
111
+ i = 0;
112
+
113
+ hasDuplicate = false;
114
+ sortInput = !sortStable && results.slice( 0 );
115
+ results.sort( sortOrder );
116
+
117
+ if ( hasDuplicate ) {
118
+ while ( ( elem = results[ i++ ] ) ) {
119
+ if ( elem === results[ i ] ) {
120
+ j = duplicates.push( i );
121
+ }
122
+ }
123
+ while ( j-- ) {
124
+ results.splice( duplicates[ j ], 1 );
125
+ }
126
+ }
127
+
128
+ // Clear input after sorting to release objects
129
+ // See https://github.com/jquery/sizzle/pull/225
130
+ sortInput = null;
131
+
132
+ return results;
133
+ }
134
+
135
+ function escape( sel ) {
136
+ return ( sel + "" ).replace( rcssescape, fcssescape );
137
+ }
138
+
139
+ jQuery.extend( {
140
+ uniqueSort: uniqueSort,
141
+ unique: uniqueSort,
142
+ escapeSelector: escape,
143
+ find: function( selector, context, results, seed ) {
144
+ var elem, nodeType,
145
+ i = 0;
146
+
147
+ results = results || [];
148
+ context = context || document;
149
+
150
+ // Same basic safeguard as Sizzle
151
+ if ( !selector || typeof selector !== "string" ) {
152
+ return results;
153
+ }
154
+
155
+ // Early return if context is not an element or document
156
+ if ( ( nodeType = context.nodeType ) !== 1 && nodeType !== 9 ) {
157
+ return [];
158
+ }
159
+
160
+ if ( seed ) {
161
+ while ( ( elem = seed[ i++ ] ) ) {
162
+ if ( jQuery.find.matchesSelector( elem, selector ) ) {
163
+ results.push( elem );
164
+ }
165
+ }
166
+ } else {
167
+ jQuery.merge( results, context.querySelectorAll( selector ) );
168
+ }
169
+
170
+ return results;
171
+ },
172
+ text: function( elem ) {
173
+ var node,
174
+ ret = "",
175
+ i = 0,
176
+ nodeType = elem.nodeType;
177
+
178
+ if ( !nodeType ) {
179
+
180
+ // If no nodeType, this is expected to be an array
181
+ while ( ( node = elem[ i++ ] ) ) {
182
+
183
+ // Do not traverse comment nodes
184
+ ret += jQuery.text( node );
185
+ }
186
+ } else if ( nodeType === 1 || nodeType === 9 || nodeType === 11 ) {
187
+
188
+ // Use textContent for elements
189
+ return elem.textContent;
190
+ } else if ( nodeType === 3 || nodeType === 4 ) {
191
+ return elem.nodeValue;
192
+ }
193
+
194
+ // Do not include comment or processing instruction nodes
195
+
196
+ return ret;
197
+ },
198
+ contains: function( a, b ) {
199
+ var bup = b && b.parentNode;
200
+ return a === bup || !!( bup && bup.nodeType === 1 && a.contains( bup ) );
201
+ },
202
+ isXMLDoc: function( elem ) {
203
+ var namespace = elem.namespaceURI,
204
+ documentElement = ( elem.ownerDocument || elem ).documentElement;
205
+
206
+ // Assume HTML when documentElement doesn't yet exist, such as inside
207
+ // document fragments.
208
+ return !rhtmlSuffix.test( namespace ||
209
+ documentElement && documentElement.nodeName ||
210
+ "HTML" );
211
+ },
212
+ expr: {
213
+ attrHandle: {},
214
+ match: {
215
+ bool: new RegExp( "^(?:checked|selected|async|autofocus|autoplay|controls|defer" +
216
+ "|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped)$", "i" ),
217
+ needsContext: /^[\x20\t\r\n\f]*[>+~]/
218
+ }
219
+ }
220
+ } );
221
+
222
+ jQuery.extend( jQuery.find, {
223
+ matches: function( expr, elements ) {
224
+ return jQuery.find( expr, null, null, elements );
225
+ },
226
+ matchesSelector: function( elem, expr ) {
227
+ return matches.call( elem, expr );
228
+ },
229
+ attr: function( elem, name ) {
230
+ var fn = jQuery.expr.attrHandle[ name.toLowerCase() ],
231
+
232
+ // Don't get fooled by Object.prototype properties (jQuery trac-13807)
233
+ value = fn && hasOwn.call( jQuery.expr.attrHandle, name.toLowerCase() ) ?
234
+ fn( elem, name, jQuery.isXMLDoc( elem ) ) :
235
+ undefined;
236
+ return value !== undefined ? value : elem.getAttribute( name );
237
+ }
238
+ } );
239
+
240
+ } );
@@ -0,0 +1,19 @@
1
+ define( [
2
+ "./core",
3
+ "../external/sizzle/dist/sizzle"
4
+ ], function( jQuery, Sizzle ) {
5
+
6
+ "use strict";
7
+
8
+ jQuery.find = Sizzle;
9
+ jQuery.expr = Sizzle.selectors;
10
+
11
+ // Deprecated
12
+ jQuery.expr[ ":" ] = jQuery.expr.pseudos;
13
+ jQuery.uniqueSort = jQuery.unique = Sizzle.uniqueSort;
14
+ jQuery.text = Sizzle.getText;
15
+ jQuery.isXMLDoc = Sizzle.isXML;
16
+ jQuery.contains = Sizzle.contains;
17
+ jQuery.escapeSelector = Sizzle.escape;
18
+
19
+ } );
@@ -0,0 +1,3 @@
1
+ define( [ "./selector-sizzle" ], function() {
2
+ "use strict";
3
+ } );
@@ -0,0 +1,134 @@
1
+ define( [
2
+ "./core",
3
+ "./core/toType",
4
+ "./var/rcheckableType",
5
+ "./var/isFunction",
6
+ "./core/init",
7
+ "./traversing", // filter
8
+ "./attributes/prop"
9
+ ], function( jQuery, toType, rcheckableType, isFunction ) {
10
+
11
+ "use strict";
12
+
13
+ var
14
+ rbracket = /\[\]$/,
15
+ rCRLF = /\r?\n/g,
16
+ rsubmitterTypes = /^(?:submit|button|image|reset|file)$/i,
17
+ rsubmittable = /^(?:input|select|textarea|keygen)/i;
18
+
19
+ function buildParams( prefix, obj, traditional, add ) {
20
+ var name;
21
+
22
+ if ( Array.isArray( obj ) ) {
23
+
24
+ // Serialize array item.
25
+ jQuery.each( obj, function( i, v ) {
26
+ if ( traditional || rbracket.test( prefix ) ) {
27
+
28
+ // Treat each array item as a scalar.
29
+ add( prefix, v );
30
+
31
+ } else {
32
+
33
+ // Item is non-scalar (array or object), encode its numeric index.
34
+ buildParams(
35
+ prefix + "[" + ( typeof v === "object" && v != null ? i : "" ) + "]",
36
+ v,
37
+ traditional,
38
+ add
39
+ );
40
+ }
41
+ } );
42
+
43
+ } else if ( !traditional && toType( obj ) === "object" ) {
44
+
45
+ // Serialize object item.
46
+ for ( name in obj ) {
47
+ buildParams( prefix + "[" + name + "]", obj[ name ], traditional, add );
48
+ }
49
+
50
+ } else {
51
+
52
+ // Serialize scalar item.
53
+ add( prefix, obj );
54
+ }
55
+ }
56
+
57
+ // Serialize an array of form elements or a set of
58
+ // key/values into a query string
59
+ jQuery.param = function( a, traditional ) {
60
+ var prefix,
61
+ s = [],
62
+ add = function( key, valueOrFunction ) {
63
+
64
+ // If value is a function, invoke it and use its return value
65
+ var value = isFunction( valueOrFunction ) ?
66
+ valueOrFunction() :
67
+ valueOrFunction;
68
+
69
+ s[ s.length ] = encodeURIComponent( key ) + "=" +
70
+ encodeURIComponent( value == null ? "" : value );
71
+ };
72
+
73
+ if ( a == null ) {
74
+ return "";
75
+ }
76
+
77
+ // If an array was passed in, assume that it is an array of form elements.
78
+ if ( Array.isArray( a ) || ( a.jquery && !jQuery.isPlainObject( a ) ) ) {
79
+
80
+ // Serialize the form elements
81
+ jQuery.each( a, function() {
82
+ add( this.name, this.value );
83
+ } );
84
+
85
+ } else {
86
+
87
+ // If traditional, encode the "old" way (the way 1.3.2 or older
88
+ // did it), otherwise encode params recursively.
89
+ for ( prefix in a ) {
90
+ buildParams( prefix, a[ prefix ], traditional, add );
91
+ }
92
+ }
93
+
94
+ // Return the resulting serialization
95
+ return s.join( "&" );
96
+ };
97
+
98
+ jQuery.fn.extend( {
99
+ serialize: function() {
100
+ return jQuery.param( this.serializeArray() );
101
+ },
102
+ serializeArray: function() {
103
+ return this.map( function() {
104
+
105
+ // Can add propHook for "elements" to filter or add form elements
106
+ var elements = jQuery.prop( this, "elements" );
107
+ return elements ? jQuery.makeArray( elements ) : this;
108
+ } ).filter( function() {
109
+ var type = this.type;
110
+
111
+ // Use .is( ":disabled" ) so that fieldset[disabled] works
112
+ return this.name && !jQuery( this ).is( ":disabled" ) &&
113
+ rsubmittable.test( this.nodeName ) && !rsubmitterTypes.test( type ) &&
114
+ ( this.checked || !rcheckableType.test( type ) );
115
+ } ).map( function( _i, elem ) {
116
+ var val = jQuery( this ).val();
117
+
118
+ if ( val == null ) {
119
+ return null;
120
+ }
121
+
122
+ if ( Array.isArray( val ) ) {
123
+ return jQuery.map( val, function( val ) {
124
+ return { name: elem.name, value: val.replace( rCRLF, "\r\n" ) };
125
+ } );
126
+ }
127
+
128
+ return { name: elem.name, value: val.replace( rCRLF, "\r\n" ) };
129
+ } ).get();
130
+ }
131
+ } );
132
+
133
+ return jQuery;
134
+ } );
@@ -0,0 +1,97 @@
1
+ define( [
2
+ "../core",
3
+ "../var/indexOf",
4
+ "../var/isFunction",
5
+ "./var/rneedsContext",
6
+ "../selector"
7
+ ], function( jQuery, indexOf, isFunction, rneedsContext ) {
8
+
9
+ "use strict";
10
+
11
+ // Implement the identical functionality for filter and not
12
+ function winnow( elements, qualifier, not ) {
13
+ if ( isFunction( qualifier ) ) {
14
+ return jQuery.grep( elements, function( elem, i ) {
15
+ return !!qualifier.call( elem, i, elem ) !== not;
16
+ } );
17
+ }
18
+
19
+ // Single element
20
+ if ( qualifier.nodeType ) {
21
+ return jQuery.grep( elements, function( elem ) {
22
+ return ( elem === qualifier ) !== not;
23
+ } );
24
+ }
25
+
26
+ // Arraylike of elements (jQuery, arguments, Array)
27
+ if ( typeof qualifier !== "string" ) {
28
+ return jQuery.grep( elements, function( elem ) {
29
+ return ( indexOf.call( qualifier, elem ) > -1 ) !== not;
30
+ } );
31
+ }
32
+
33
+ // Filtered directly for both simple and complex selectors
34
+ return jQuery.filter( qualifier, elements, not );
35
+ }
36
+
37
+ jQuery.filter = function( expr, elems, not ) {
38
+ var elem = elems[ 0 ];
39
+
40
+ if ( not ) {
41
+ expr = ":not(" + expr + ")";
42
+ }
43
+
44
+ if ( elems.length === 1 && elem.nodeType === 1 ) {
45
+ return jQuery.find.matchesSelector( elem, expr ) ? [ elem ] : [];
46
+ }
47
+
48
+ return jQuery.find.matches( expr, jQuery.grep( elems, function( elem ) {
49
+ return elem.nodeType === 1;
50
+ } ) );
51
+ };
52
+
53
+ jQuery.fn.extend( {
54
+ find: function( selector ) {
55
+ var i, ret,
56
+ len = this.length,
57
+ self = this;
58
+
59
+ if ( typeof selector !== "string" ) {
60
+ return this.pushStack( jQuery( selector ).filter( function() {
61
+ for ( i = 0; i < len; i++ ) {
62
+ if ( jQuery.contains( self[ i ], this ) ) {
63
+ return true;
64
+ }
65
+ }
66
+ } ) );
67
+ }
68
+
69
+ ret = this.pushStack( [] );
70
+
71
+ for ( i = 0; i < len; i++ ) {
72
+ jQuery.find( selector, self[ i ], ret );
73
+ }
74
+
75
+ return len > 1 ? jQuery.uniqueSort( ret ) : ret;
76
+ },
77
+ filter: function( selector ) {
78
+ return this.pushStack( winnow( this, selector || [], false ) );
79
+ },
80
+ not: function( selector ) {
81
+ return this.pushStack( winnow( this, selector || [], true ) );
82
+ },
83
+ is: function( selector ) {
84
+ return !!winnow(
85
+ this,
86
+
87
+ // If this is a positional/relative selector, check membership in the returned set
88
+ // so $("p:first").is("p:last") won't return true for a doc with two "p".
89
+ typeof selector === "string" && rneedsContext.test( selector ) ?
90
+ jQuery( selector ) :
91
+ selector || [],
92
+ false
93
+ ).length;
94
+ }
95
+ } );
96
+
97
+ } );
@@ -0,0 +1,22 @@
1
+ define( [
2
+ "../../core"
3
+ ], function( jQuery ) {
4
+
5
+ "use strict";
6
+
7
+ return function( elem, dir, until ) {
8
+ var matched = [],
9
+ truncate = until !== undefined;
10
+
11
+ while ( ( elem = elem[ dir ] ) && elem.nodeType !== 9 ) {
12
+ if ( elem.nodeType === 1 ) {
13
+ if ( truncate && jQuery( elem ).is( until ) ) {
14
+ break;
15
+ }
16
+ matched.push( elem );
17
+ }
18
+ }
19
+ return matched;
20
+ };
21
+
22
+ } );
@@ -0,0 +1,8 @@
1
+ define( [
2
+ "../../core",
3
+ "../../selector"
4
+ ], function( jQuery ) {
5
+ "use strict";
6
+
7
+ return jQuery.expr.match.needsContext;
8
+ } );
@@ -0,0 +1,17 @@
1
+ define( function() {
2
+
3
+ "use strict";
4
+
5
+ return function( n, elem ) {
6
+ var matched = [];
7
+
8
+ for ( ; n; n = n.nextSibling ) {
9
+ if ( n.nodeType === 1 && n !== elem ) {
10
+ matched.push( n );
11
+ }
12
+ }
13
+
14
+ return matched;
15
+ };
16
+
17
+ } );