formtastic-jquery_inputmask 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (155) hide show
  1. checksums.yaml +4 -4
  2. data/.bowerrc +3 -0
  3. data/bower.json +19 -0
  4. data/lib/formtastic/jquery_inputmask/engine.rb +1 -1
  5. data/lib/formtastic/jquery_inputmask/version.rb +1 -1
  6. data/vendor/inputmask/.bower.json +59 -0
  7. data/vendor/inputmask/bower.json +40 -0
  8. data/vendor/inputmask/dist/inputmask/bindings/inputmask.binding.js +21 -0
  9. data/vendor/inputmask/dist/inputmask/dependencyLibs/inputmask.dependencyLib.jqlite.js +62 -0
  10. data/vendor/inputmask/dist/inputmask/dependencyLibs/inputmask.dependencyLib.jquery.js +13 -0
  11. data/vendor/inputmask/dist/inputmask/dependencyLibs/inputmask.dependencyLib.js +133 -0
  12. data/vendor/inputmask/dist/inputmask/global/document.js +11 -0
  13. data/vendor/inputmask/dist/inputmask/global/window.js +11 -0
  14. data/vendor/inputmask/dist/inputmask/inputmask.date.extensions.js +490 -0
  15. data/vendor/inputmask/dist/inputmask/inputmask.extensions.js +97 -0
  16. data/vendor/inputmask/dist/inputmask/inputmask.js +1643 -0
  17. data/vendor/inputmask/dist/inputmask/inputmask.numeric.extensions.js +347 -0
  18. data/vendor/inputmask/dist/inputmask/inputmask.phone.extensions.js +61 -0
  19. data/vendor/inputmask/dist/inputmask/inputmask.regex.extensions.js +115 -0
  20. data/vendor/inputmask/dist/inputmask/jquery.inputmask.js +62 -0
  21. data/vendor/inputmask/dist/inputmask/phone-codes/phone-be.js +244 -0
  22. data/vendor/inputmask/dist/inputmask/phone-codes/phone-nl.js +924 -0
  23. data/vendor/inputmask/dist/inputmask/phone-codes/phone-ru.js +19240 -0
  24. data/vendor/inputmask/dist/inputmask/phone-codes/phone-uk.js +1009 -0
  25. data/vendor/inputmask/dist/inputmask/phone-codes/phone.js +2111 -0
  26. data/vendor/inputmask/dist/jquery.inputmask.bundle.js +3085 -0
  27. data/vendor/inputmask/dist/min/inputmask/inputmask.date.extensions.min.js +9 -0
  28. data/vendor/inputmask/dist/min/inputmask/inputmask.extensions.min.js +9 -0
  29. data/vendor/inputmask/dist/min/inputmask/inputmask.min.js +10 -0
  30. data/vendor/inputmask/dist/min/inputmask/inputmask.numeric.extensions.min.js +9 -0
  31. data/vendor/inputmask/dist/min/inputmask/inputmask.phone.extensions.min.js +9 -0
  32. data/vendor/inputmask/dist/min/inputmask/inputmask.regex.extensions.min.js +9 -0
  33. data/vendor/inputmask/dist/min/inputmask/jquery.inputmask.min.js +9 -0
  34. data/vendor/inputmask/dist/min/jquery.inputmask.bundle.min.js +11 -0
  35. data/vendor/jquery/.bower.json +25 -0
  36. data/vendor/jquery/AUTHORS.txt +301 -0
  37. data/vendor/jquery/LICENSE.txt +36 -0
  38. data/vendor/jquery/README.md +67 -0
  39. data/vendor/jquery/bower.json +14 -0
  40. data/vendor/jquery/dist/core.js +476 -0
  41. data/vendor/jquery/dist/jquery.js +10253 -0
  42. data/vendor/jquery/dist/jquery.min.js +4 -0
  43. data/vendor/jquery/dist/jquery.min.map +1 -0
  44. data/vendor/jquery/dist/jquery.slim.js +8160 -0
  45. data/vendor/jquery/dist/jquery.slim.min.js +4 -0
  46. data/vendor/jquery/dist/jquery.slim.min.map +1 -0
  47. data/vendor/jquery/external/sizzle/LICENSE.txt +36 -0
  48. data/vendor/jquery/external/sizzle/dist/sizzle.js +2272 -0
  49. data/vendor/jquery/external/sizzle/dist/sizzle.min.js +3 -0
  50. data/vendor/jquery/external/sizzle/dist/sizzle.min.map +1 -0
  51. data/vendor/jquery/src/.eslintrc.json +5 -0
  52. data/vendor/jquery/src/ajax.js +855 -0
  53. data/vendor/jquery/src/ajax/jsonp.js +102 -0
  54. data/vendor/jquery/src/ajax/load.js +76 -0
  55. data/vendor/jquery/src/ajax/parseXML.js +30 -0
  56. data/vendor/jquery/src/ajax/script.js +77 -0
  57. data/vendor/jquery/src/ajax/var/location.js +5 -0
  58. data/vendor/jquery/src/ajax/var/nonce.js +7 -0
  59. data/vendor/jquery/src/ajax/var/rquery.js +5 -0
  60. data/vendor/jquery/src/ajax/xhr.js +169 -0
  61. data/vendor/jquery/src/attributes.js +13 -0
  62. data/vendor/jquery/src/attributes/attr.js +141 -0
  63. data/vendor/jquery/src/attributes/classes.js +174 -0
  64. data/vendor/jquery/src/attributes/prop.js +143 -0
  65. data/vendor/jquery/src/attributes/support.js +33 -0
  66. data/vendor/jquery/src/attributes/val.js +190 -0
  67. data/vendor/jquery/src/callbacks.js +234 -0
  68. data/vendor/jquery/src/core.js +476 -0
  69. data/vendor/jquery/src/core/DOMEval.js +16 -0
  70. data/vendor/jquery/src/core/access.js +70 -0
  71. data/vendor/jquery/src/core/init.js +128 -0
  72. data/vendor/jquery/src/core/nodeName.js +13 -0
  73. data/vendor/jquery/src/core/parseHTML.js +65 -0
  74. data/vendor/jquery/src/core/ready-no-deferred.js +96 -0
  75. data/vendor/jquery/src/core/ready.js +86 -0
  76. data/vendor/jquery/src/core/readyException.js +13 -0
  77. data/vendor/jquery/src/core/stripAndCollapse.js +14 -0
  78. data/vendor/jquery/src/core/support.js +20 -0
  79. data/vendor/jquery/src/core/var/rsingleTag.js +6 -0
  80. data/vendor/jquery/src/css.js +438 -0
  81. data/vendor/jquery/src/css/addGetHookIf.js +26 -0
  82. data/vendor/jquery/src/css/adjustCSS.js +71 -0
  83. data/vendor/jquery/src/css/curCSS.js +65 -0
  84. data/vendor/jquery/src/css/hiddenVisibleSelectors.js +15 -0
  85. data/vendor/jquery/src/css/showHide.js +105 -0
  86. data/vendor/jquery/src/css/support.js +89 -0
  87. data/vendor/jquery/src/css/var/cssExpand.js +5 -0
  88. data/vendor/jquery/src/css/var/getStyles.js +17 -0
  89. data/vendor/jquery/src/css/var/isHiddenWithinTree.js +34 -0
  90. data/vendor/jquery/src/css/var/rmargin.js +5 -0
  91. data/vendor/jquery/src/css/var/rnumnonpx.js +7 -0
  92. data/vendor/jquery/src/css/var/swap.js +26 -0
  93. data/vendor/jquery/src/data.js +179 -0
  94. data/vendor/jquery/src/data/Data.js +161 -0
  95. data/vendor/jquery/src/data/var/acceptData.js +19 -0
  96. data/vendor/jquery/src/data/var/dataPriv.js +7 -0
  97. data/vendor/jquery/src/data/var/dataUser.js +7 -0
  98. data/vendor/jquery/src/deferred.js +391 -0
  99. data/vendor/jquery/src/deferred/exceptionHook.js +21 -0
  100. data/vendor/jquery/src/deprecated.js +40 -0
  101. data/vendor/jquery/src/dimensions.js +56 -0
  102. data/vendor/jquery/src/effects.js +699 -0
  103. data/vendor/jquery/src/effects/Tween.js +123 -0
  104. data/vendor/jquery/src/effects/animatedSelector.js +15 -0
  105. data/vendor/jquery/src/event.js +746 -0
  106. data/vendor/jquery/src/event/ajax.js +22 -0
  107. data/vendor/jquery/src/event/alias.js +29 -0
  108. data/vendor/jquery/src/event/focusin.js +55 -0
  109. data/vendor/jquery/src/event/support.js +11 -0
  110. data/vendor/jquery/src/event/trigger.js +185 -0
  111. data/vendor/jquery/src/exports/amd.js +26 -0
  112. data/vendor/jquery/src/exports/global.js +34 -0
  113. data/vendor/jquery/src/jquery.js +41 -0
  114. data/vendor/jquery/src/manipulation.js +488 -0
  115. data/vendor/jquery/src/manipulation/_evalUrl.js +23 -0
  116. data/vendor/jquery/src/manipulation/buildFragment.js +104 -0
  117. data/vendor/jquery/src/manipulation/getAll.js +32 -0
  118. data/vendor/jquery/src/manipulation/setGlobalEval.js +22 -0
  119. data/vendor/jquery/src/manipulation/support.js +35 -0
  120. data/vendor/jquery/src/manipulation/var/rcheckableType.js +5 -0
  121. data/vendor/jquery/src/manipulation/var/rscriptType.js +5 -0
  122. data/vendor/jquery/src/manipulation/var/rtagName.js +5 -0
  123. data/vendor/jquery/src/manipulation/wrapMap.js +29 -0
  124. data/vendor/jquery/src/offset.js +229 -0
  125. data/vendor/jquery/src/queue.js +145 -0
  126. data/vendor/jquery/src/queue/delay.js +24 -0
  127. data/vendor/jquery/src/selector-native.js +237 -0
  128. data/vendor/jquery/src/selector-sizzle.js +19 -0
  129. data/vendor/jquery/src/selector.js +3 -0
  130. data/vendor/jquery/src/serialize.js +130 -0
  131. data/vendor/jquery/src/traversing.js +191 -0
  132. data/vendor/jquery/src/traversing/findFilter.js +106 -0
  133. data/vendor/jquery/src/traversing/var/dir.js +22 -0
  134. data/vendor/jquery/src/traversing/var/rneedsContext.js +8 -0
  135. data/vendor/jquery/src/traversing/var/siblings.js +17 -0
  136. data/vendor/jquery/src/var/ObjectFunctionString.js +7 -0
  137. data/vendor/jquery/src/var/arr.js +5 -0
  138. data/vendor/jquery/src/var/class2type.js +6 -0
  139. data/vendor/jquery/src/var/concat.js +7 -0
  140. data/vendor/jquery/src/var/document.js +5 -0
  141. data/vendor/jquery/src/var/documentElement.js +7 -0
  142. data/vendor/jquery/src/var/fnToString.js +7 -0
  143. data/vendor/jquery/src/var/getProto.js +5 -0
  144. data/vendor/jquery/src/var/hasOwn.js +7 -0
  145. data/vendor/jquery/src/var/indexOf.js +7 -0
  146. data/vendor/jquery/src/var/pnum.js +5 -0
  147. data/vendor/jquery/src/var/push.js +7 -0
  148. data/vendor/jquery/src/var/rcssNum.js +9 -0
  149. data/vendor/jquery/src/var/rnothtmlwhite.js +8 -0
  150. data/vendor/jquery/src/var/slice.js +7 -0
  151. data/vendor/jquery/src/var/support.js +6 -0
  152. data/vendor/jquery/src/var/toString.js +7 -0
  153. data/vendor/jquery/src/wrap.js +77 -0
  154. metadata +152 -3
  155. data/.gitmodules +0 -3
@@ -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,24 @@
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
+ // https://web.archive.org/web/20100324014747/http://blindsignals.com/index.php/2009/07/jquery-delay/
11
+ jQuery.fn.delay = function( time, type ) {
12
+ time = jQuery.fx ? jQuery.fx.speeds[ time ] || time : time;
13
+ type = type || "fx";
14
+
15
+ return this.queue( type, function( next, hooks ) {
16
+ var timeout = window.setTimeout( next, time );
17
+ hooks.stop = function() {
18
+ window.clearTimeout( timeout );
19
+ };
20
+ } );
21
+ };
22
+
23
+ return jQuery.fn.delay;
24
+ } );
@@ -0,0 +1,237 @@
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
+ sortStable = jQuery.expando.split( "" ).sort( sortOrder ).join( "" ) === jQuery.expando,
38
+ matches = documentElement.matches ||
39
+ documentElement.webkitMatchesSelector ||
40
+ documentElement.mozMatchesSelector ||
41
+ documentElement.oMatchesSelector ||
42
+ documentElement.msMatchesSelector,
43
+
44
+ // CSS string/identifier serialization
45
+ // https://drafts.csswg.org/cssom/#common-serializing-idioms
46
+ rcssescape = /([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g,
47
+ fcssescape = function( ch, asCodePoint ) {
48
+ if ( asCodePoint ) {
49
+
50
+ // U+0000 NULL becomes U+FFFD REPLACEMENT CHARACTER
51
+ if ( ch === "\0" ) {
52
+ return "\uFFFD";
53
+ }
54
+
55
+ // Control characters and (dependent upon position) numbers get escaped as code points
56
+ return ch.slice( 0, -1 ) + "\\" + ch.charCodeAt( ch.length - 1 ).toString( 16 ) + " ";
57
+ }
58
+
59
+ // Other potentially-special ASCII characters get backslash-escaped
60
+ return "\\" + ch;
61
+ };
62
+
63
+ function sortOrder( a, b ) {
64
+
65
+ // Flag for duplicate removal
66
+ if ( a === b ) {
67
+ hasDuplicate = true;
68
+ return 0;
69
+ }
70
+
71
+ // Sort on method existence if only one input has compareDocumentPosition
72
+ var compare = !a.compareDocumentPosition - !b.compareDocumentPosition;
73
+ if ( compare ) {
74
+ return compare;
75
+ }
76
+
77
+ // Calculate position if both inputs belong to the same document
78
+ compare = ( a.ownerDocument || a ) === ( b.ownerDocument || b ) ?
79
+ a.compareDocumentPosition( b ) :
80
+
81
+ // Otherwise we know they are disconnected
82
+ 1;
83
+
84
+ // Disconnected nodes
85
+ if ( compare & 1 ) {
86
+
87
+ // Choose the first element that is related to our preferred document
88
+ if ( a === document || a.ownerDocument === document &&
89
+ jQuery.contains( document, a ) ) {
90
+ return -1;
91
+ }
92
+ if ( b === document || b.ownerDocument === document &&
93
+ jQuery.contains( document, b ) ) {
94
+ return 1;
95
+ }
96
+
97
+ // Maintain original order
98
+ return sortInput ?
99
+ ( indexOf.call( sortInput, a ) - indexOf.call( sortInput, b ) ) :
100
+ 0;
101
+ }
102
+
103
+ return compare & 4 ? -1 : 1;
104
+ }
105
+
106
+ function uniqueSort( results ) {
107
+ var elem,
108
+ duplicates = [],
109
+ j = 0,
110
+ i = 0;
111
+
112
+ hasDuplicate = false;
113
+ sortInput = !sortStable && results.slice( 0 );
114
+ results.sort( sortOrder );
115
+
116
+ if ( hasDuplicate ) {
117
+ while ( ( elem = results[ i++ ] ) ) {
118
+ if ( elem === results[ i ] ) {
119
+ j = duplicates.push( i );
120
+ }
121
+ }
122
+ while ( j-- ) {
123
+ results.splice( duplicates[ j ], 1 );
124
+ }
125
+ }
126
+
127
+ // Clear input after sorting to release objects
128
+ // See https://github.com/jquery/sizzle/pull/225
129
+ sortInput = null;
130
+
131
+ return results;
132
+ }
133
+
134
+ function escape( sel ) {
135
+ return ( sel + "" ).replace( rcssescape, fcssescape );
136
+ }
137
+
138
+ jQuery.extend( {
139
+ uniqueSort: uniqueSort,
140
+ unique: uniqueSort,
141
+ escapeSelector: escape,
142
+ find: function( selector, context, results, seed ) {
143
+ var elem, nodeType,
144
+ i = 0;
145
+
146
+ results = results || [];
147
+ context = context || document;
148
+
149
+ // Same basic safeguard as Sizzle
150
+ if ( !selector || typeof selector !== "string" ) {
151
+ return results;
152
+ }
153
+
154
+ // Early return if context is not an element or document
155
+ if ( ( nodeType = context.nodeType ) !== 1 && nodeType !== 9 ) {
156
+ return [];
157
+ }
158
+
159
+ if ( seed ) {
160
+ while ( ( elem = seed[ i++ ] ) ) {
161
+ if ( jQuery.find.matchesSelector( elem, selector ) ) {
162
+ results.push( elem );
163
+ }
164
+ }
165
+ } else {
166
+ jQuery.merge( results, context.querySelectorAll( selector ) );
167
+ }
168
+
169
+ return results;
170
+ },
171
+ text: function( elem ) {
172
+ var node,
173
+ ret = "",
174
+ i = 0,
175
+ nodeType = elem.nodeType;
176
+
177
+ if ( !nodeType ) {
178
+
179
+ // If no nodeType, this is expected to be an array
180
+ while ( ( node = elem[ i++ ] ) ) {
181
+
182
+ // Do not traverse comment nodes
183
+ ret += jQuery.text( node );
184
+ }
185
+ } else if ( nodeType === 1 || nodeType === 9 || nodeType === 11 ) {
186
+
187
+ // Use textContent for elements
188
+ return elem.textContent;
189
+ } else if ( nodeType === 3 || nodeType === 4 ) {
190
+ return elem.nodeValue;
191
+ }
192
+
193
+ // Do not include comment or processing instruction nodes
194
+
195
+ return ret;
196
+ },
197
+ contains: function( a, b ) {
198
+ var adown = a.nodeType === 9 ? a.documentElement : a,
199
+ bup = b && b.parentNode;
200
+ return a === bup || !!( bup && bup.nodeType === 1 && adown.contains( bup ) );
201
+ },
202
+ isXMLDoc: function( elem ) {
203
+
204
+ // documentElement is verified for cases where it doesn't yet exist
205
+ // (such as loading iframes in IE - #4833)
206
+ var documentElement = elem && ( elem.ownerDocument || elem ).documentElement;
207
+ return documentElement ? documentElement.nodeName !== "HTML" : false;
208
+ },
209
+ expr: {
210
+ attrHandle: {},
211
+ match: {
212
+ bool: new RegExp( "^(?:checked|selected|async|autofocus|autoplay|controls|defer" +
213
+ "|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped)$", "i" ),
214
+ needsContext: /^[\x20\t\r\n\f]*[>+~]/
215
+ }
216
+ }
217
+ } );
218
+
219
+ jQuery.extend( jQuery.find, {
220
+ matches: function( expr, elements ) {
221
+ return jQuery.find( expr, null, null, elements );
222
+ },
223
+ matchesSelector: function( elem, expr ) {
224
+ return matches.call( elem, expr );
225
+ },
226
+ attr: function( elem, name ) {
227
+ var fn = jQuery.expr.attrHandle[ name.toLowerCase() ],
228
+
229
+ // Don't get fooled by Object.prototype properties (jQuery #13807)
230
+ value = fn && hasOwn.call( jQuery.expr.attrHandle, name.toLowerCase() ) ?
231
+ fn( elem, name, jQuery.isXMLDoc( elem ) ) :
232
+ undefined;
233
+ return value !== undefined ? value : elem.getAttribute( name );
234
+ }
235
+ } );
236
+
237
+ } );
@@ -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,130 @@
1
+ define( [
2
+ "./core",
3
+ "./manipulation/var/rcheckableType",
4
+ "./core/init",
5
+ "./traversing", // filter
6
+ "./attributes/prop"
7
+ ], function( jQuery, rcheckableType ) {
8
+
9
+ "use strict";
10
+
11
+ var
12
+ rbracket = /\[\]$/,
13
+ rCRLF = /\r?\n/g,
14
+ rsubmitterTypes = /^(?:submit|button|image|reset|file)$/i,
15
+ rsubmittable = /^(?:input|select|textarea|keygen)/i;
16
+
17
+ function buildParams( prefix, obj, traditional, add ) {
18
+ var name;
19
+
20
+ if ( Array.isArray( obj ) ) {
21
+
22
+ // Serialize array item.
23
+ jQuery.each( obj, function( i, v ) {
24
+ if ( traditional || rbracket.test( prefix ) ) {
25
+
26
+ // Treat each array item as a scalar.
27
+ add( prefix, v );
28
+
29
+ } else {
30
+
31
+ // Item is non-scalar (array or object), encode its numeric index.
32
+ buildParams(
33
+ prefix + "[" + ( typeof v === "object" && v != null ? i : "" ) + "]",
34
+ v,
35
+ traditional,
36
+ add
37
+ );
38
+ }
39
+ } );
40
+
41
+ } else if ( !traditional && jQuery.type( obj ) === "object" ) {
42
+
43
+ // Serialize object item.
44
+ for ( name in obj ) {
45
+ buildParams( prefix + "[" + name + "]", obj[ name ], traditional, add );
46
+ }
47
+
48
+ } else {
49
+
50
+ // Serialize scalar item.
51
+ add( prefix, obj );
52
+ }
53
+ }
54
+
55
+ // Serialize an array of form elements or a set of
56
+ // key/values into a query string
57
+ jQuery.param = function( a, traditional ) {
58
+ var prefix,
59
+ s = [],
60
+ add = function( key, valueOrFunction ) {
61
+
62
+ // If value is a function, invoke it and use its return value
63
+ var value = jQuery.isFunction( valueOrFunction ) ?
64
+ valueOrFunction() :
65
+ valueOrFunction;
66
+
67
+ s[ s.length ] = encodeURIComponent( key ) + "=" +
68
+ encodeURIComponent( value == null ? "" : value );
69
+ };
70
+
71
+ // If an array was passed in, assume that it is an array of form elements.
72
+ if ( Array.isArray( a ) || ( a.jquery && !jQuery.isPlainObject( a ) ) ) {
73
+
74
+ // Serialize the form elements
75
+ jQuery.each( a, function() {
76
+ add( this.name, this.value );
77
+ } );
78
+
79
+ } else {
80
+
81
+ // If traditional, encode the "old" way (the way 1.3.2 or older
82
+ // did it), otherwise encode params recursively.
83
+ for ( prefix in a ) {
84
+ buildParams( prefix, a[ prefix ], traditional, add );
85
+ }
86
+ }
87
+
88
+ // Return the resulting serialization
89
+ return s.join( "&" );
90
+ };
91
+
92
+ jQuery.fn.extend( {
93
+ serialize: function() {
94
+ return jQuery.param( this.serializeArray() );
95
+ },
96
+ serializeArray: function() {
97
+ return this.map( function() {
98
+
99
+ // Can add propHook for "elements" to filter or add form elements
100
+ var elements = jQuery.prop( this, "elements" );
101
+ return elements ? jQuery.makeArray( elements ) : this;
102
+ } )
103
+ .filter( function() {
104
+ var type = this.type;
105
+
106
+ // Use .is( ":disabled" ) so that fieldset[disabled] works
107
+ return this.name && !jQuery( this ).is( ":disabled" ) &&
108
+ rsubmittable.test( this.nodeName ) && !rsubmitterTypes.test( type ) &&
109
+ ( this.checked || !rcheckableType.test( type ) );
110
+ } )
111
+ .map( function( i, elem ) {
112
+ var val = jQuery( this ).val();
113
+
114
+ if ( val == null ) {
115
+ return null;
116
+ }
117
+
118
+ if ( Array.isArray( val ) ) {
119
+ return jQuery.map( val, function( val ) {
120
+ return { name: elem.name, value: val.replace( rCRLF, "\r\n" ) };
121
+ } );
122
+ }
123
+
124
+ return { name: elem.name, value: val.replace( rCRLF, "\r\n" ) };
125
+ } ).get();
126
+ }
127
+ } );
128
+
129
+ return jQuery;
130
+ } );