try_api 0.0.10 → 0.0.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/javascripts/try_api/application.js.coffee +0 -3
- data/app/assets/javascripts/try_api/bower_components/bootstrap/dist/fonts/glyphicons-halflings-regular.eot +0 -0
- data/app/assets/javascripts/try_api/bower_components/bootstrap/dist/fonts/glyphicons-halflings-regular.ttf +0 -0
- data/app/assets/javascripts/try_api/bower_components/bootstrap/dist/fonts/glyphicons-halflings-regular.woff +0 -0
- data/app/assets/javascripts/try_api/bower_components/bootstrap/dist/fonts/glyphicons-halflings-regular.woff2 +0 -0
- data/app/assets/javascripts/try_api/bower_components/bootstrap/fonts/glyphicons-halflings-regular.eot +0 -0
- data/app/assets/javascripts/try_api/bower_components/bootstrap/fonts/glyphicons-halflings-regular.ttf +0 -0
- data/app/assets/javascripts/try_api/bower_components/bootstrap/fonts/glyphicons-halflings-regular.woff +0 -0
- data/app/assets/javascripts/try_api/bower_components/bootstrap/fonts/glyphicons-halflings-regular.woff2 +0 -0
- data/app/assets/javascripts/try_api/bower_components/bootstrap/grunt/change-version.js +0 -0
- data/app/assets/javascripts/try_api/param.directive.js.coffee +9 -4
- data/app/models/try_api/menu_item.rb +0 -2
- data/app/models/try_api/method.rb +2 -2
- data/app/views/layouts/try_api/application.html.erb +4 -0
- data/app/views/try_api/pages/index.html +15 -10
- data/lib/try_api/version.rb +1 -1
- metadata +2 -138
- data/app/assets/javascripts/try_api/bower_components/jquery/AUTHORS.txt +0 -295
- data/app/assets/javascripts/try_api/bower_components/jquery/LICENSE.txt +0 -36
- data/app/assets/javascripts/try_api/bower_components/jquery/README.md +0 -65
- data/app/assets/javascripts/try_api/bower_components/jquery/bower.json +0 -14
- data/app/assets/javascripts/try_api/bower_components/jquery/dist/core.js +0 -481
- data/app/assets/javascripts/try_api/bower_components/jquery/dist/jquery.js +0 -10074
- data/app/assets/javascripts/try_api/bower_components/jquery/dist/jquery.min.js +0 -4
- data/app/assets/javascripts/try_api/bower_components/jquery/dist/jquery.slim.js +0 -7966
- data/app/assets/javascripts/try_api/bower_components/jquery/dist/jquery.slim.min.js +0 -4
- data/app/assets/javascripts/try_api/bower_components/jquery/external/sizzle/LICENSE.txt +0 -36
- data/app/assets/javascripts/try_api/bower_components/jquery/external/sizzle/dist/sizzle.js +0 -2217
- data/app/assets/javascripts/try_api/bower_components/jquery/external/sizzle/dist/sizzle.min.js +0 -3
- data/app/assets/javascripts/try_api/bower_components/jquery/external/sizzle/dist/sizzle.min.map +0 -1
- data/app/assets/javascripts/try_api/bower_components/jquery/src/ajax/jsonp.js +0 -102
- data/app/assets/javascripts/try_api/bower_components/jquery/src/ajax/load.js +0 -75
- data/app/assets/javascripts/try_api/bower_components/jquery/src/ajax/parseXML.js +0 -30
- data/app/assets/javascripts/try_api/bower_components/jquery/src/ajax/script.js +0 -77
- data/app/assets/javascripts/try_api/bower_components/jquery/src/ajax/var/location.js +0 -5
- data/app/assets/javascripts/try_api/bower_components/jquery/src/ajax/var/nonce.js +0 -7
- data/app/assets/javascripts/try_api/bower_components/jquery/src/ajax/var/rquery.js +0 -5
- data/app/assets/javascripts/try_api/bower_components/jquery/src/ajax/xhr.js +0 -169
- data/app/assets/javascripts/try_api/bower_components/jquery/src/ajax.js +0 -855
- data/app/assets/javascripts/try_api/bower_components/jquery/src/attributes/attr.js +0 -137
- data/app/assets/javascripts/try_api/bower_components/jquery/src/attributes/classes.js +0 -179
- data/app/assets/javascripts/try_api/bower_components/jquery/src/attributes/prop.js +0 -128
- data/app/assets/javascripts/try_api/bower_components/jquery/src/attributes/support.js +0 -33
- data/app/assets/javascripts/try_api/bower_components/jquery/src/attributes/val.js +0 -184
- data/app/assets/javascripts/try_api/bower_components/jquery/src/attributes.js +0 -13
- data/app/assets/javascripts/try_api/bower_components/jquery/src/callbacks.js +0 -234
- data/app/assets/javascripts/try_api/bower_components/jquery/src/core/DOMEval.js +0 -16
- data/app/assets/javascripts/try_api/bower_components/jquery/src/core/access.js +0 -67
- data/app/assets/javascripts/try_api/bower_components/jquery/src/core/init.js +0 -127
- data/app/assets/javascripts/try_api/bower_components/jquery/src/core/parseHTML.js +0 -65
- data/app/assets/javascripts/try_api/bower_components/jquery/src/core/ready-no-deferred.js +0 -111
- data/app/assets/javascripts/try_api/bower_components/jquery/src/core/ready.js +0 -95
- data/app/assets/javascripts/try_api/bower_components/jquery/src/core/readyException.js +0 -13
- data/app/assets/javascripts/try_api/bower_components/jquery/src/core/support.js +0 -20
- data/app/assets/javascripts/try_api/bower_components/jquery/src/core/var/rsingleTag.js +0 -6
- data/app/assets/javascripts/try_api/bower_components/jquery/src/core.js +0 -481
- data/app/assets/javascripts/try_api/bower_components/jquery/src/css/addGetHookIf.js +0 -26
- data/app/assets/javascripts/try_api/bower_components/jquery/src/css/adjustCSS.js +0 -71
- data/app/assets/javascripts/try_api/bower_components/jquery/src/css/curCSS.js +0 -59
- data/app/assets/javascripts/try_api/bower_components/jquery/src/css/hiddenVisibleSelectors.js +0 -15
- data/app/assets/javascripts/try_api/bower_components/jquery/src/css/showHide.js +0 -105
- data/app/assets/javascripts/try_api/bower_components/jquery/src/css/support.js +0 -89
- data/app/assets/javascripts/try_api/bower_components/jquery/src/css/var/cssExpand.js +0 -5
- data/app/assets/javascripts/try_api/bower_components/jquery/src/css/var/getStyles.js +0 -17
- data/app/assets/javascripts/try_api/bower_components/jquery/src/css/var/isHiddenWithinTree.js +0 -34
- data/app/assets/javascripts/try_api/bower_components/jquery/src/css/var/rmargin.js +0 -5
- data/app/assets/javascripts/try_api/bower_components/jquery/src/css/var/rnumnonpx.js +0 -7
- data/app/assets/javascripts/try_api/bower_components/jquery/src/css/var/swap.js +0 -26
- data/app/assets/javascripts/try_api/bower_components/jquery/src/css.js +0 -424
- data/app/assets/javascripts/try_api/bower_components/jquery/src/data/Data.js +0 -161
- data/app/assets/javascripts/try_api/bower_components/jquery/src/data/var/acceptData.js +0 -19
- data/app/assets/javascripts/try_api/bower_components/jquery/src/data/var/dataPriv.js +0 -7
- data/app/assets/javascripts/try_api/bower_components/jquery/src/data/var/dataUser.js +0 -7
- data/app/assets/javascripts/try_api/bower_components/jquery/src/data.js +0 -161
- data/app/assets/javascripts/try_api/bower_components/jquery/src/deferred/exceptionHook.js +0 -21
- data/app/assets/javascripts/try_api/bower_components/jquery/src/deferred.js +0 -389
- data/app/assets/javascripts/try_api/bower_components/jquery/src/deprecated.js +0 -30
- data/app/assets/javascripts/try_api/bower_components/jquery/src/dimensions.js +0 -56
- data/app/assets/javascripts/try_api/bower_components/jquery/src/effects/Tween.js +0 -123
- data/app/assets/javascripts/try_api/bower_components/jquery/src/effects/animatedSelector.js +0 -15
- data/app/assets/javascripts/try_api/bower_components/jquery/src/effects.js +0 -688
- data/app/assets/javascripts/try_api/bower_components/jquery/src/event/ajax.js +0 -22
- data/app/assets/javascripts/try_api/bower_components/jquery/src/event/alias.js +0 -29
- data/app/assets/javascripts/try_api/bower_components/jquery/src/event/focusin.js +0 -55
- data/app/assets/javascripts/try_api/bower_components/jquery/src/event/support.js +0 -11
- data/app/assets/javascripts/try_api/bower_components/jquery/src/event/trigger.js +0 -185
- data/app/assets/javascripts/try_api/bower_components/jquery/src/event.js +0 -726
- data/app/assets/javascripts/try_api/bower_components/jquery/src/exports/amd.js +0 -26
- data/app/assets/javascripts/try_api/bower_components/jquery/src/exports/global.js +0 -34
- data/app/assets/javascripts/try_api/bower_components/jquery/src/jquery.js +0 -40
- data/app/assets/javascripts/try_api/bower_components/jquery/src/manipulation/_evalUrl.js +0 -23
- data/app/assets/javascripts/try_api/bower_components/jquery/src/manipulation/buildFragment.js +0 -104
- data/app/assets/javascripts/try_api/bower_components/jquery/src/manipulation/getAll.js +0 -23
- data/app/assets/javascripts/try_api/bower_components/jquery/src/manipulation/setGlobalEval.js +0 -22
- data/app/assets/javascripts/try_api/bower_components/jquery/src/manipulation/support.js +0 -35
- data/app/assets/javascripts/try_api/bower_components/jquery/src/manipulation/var/rcheckableType.js +0 -5
- data/app/assets/javascripts/try_api/bower_components/jquery/src/manipulation/var/rscriptType.js +0 -5
- data/app/assets/javascripts/try_api/bower_components/jquery/src/manipulation/var/rtagName.js +0 -5
- data/app/assets/javascripts/try_api/bower_components/jquery/src/manipulation/wrapMap.js +0 -29
- data/app/assets/javascripts/try_api/bower_components/jquery/src/manipulation.js +0 -486
- data/app/assets/javascripts/try_api/bower_components/jquery/src/offset.js +0 -232
- data/app/assets/javascripts/try_api/bower_components/jquery/src/queue/delay.js +0 -24
- data/app/assets/javascripts/try_api/bower_components/jquery/src/queue.js +0 -145
- data/app/assets/javascripts/try_api/bower_components/jquery/src/selector-native.js +0 -237
- data/app/assets/javascripts/try_api/bower_components/jquery/src/selector-sizzle.js +0 -19
- data/app/assets/javascripts/try_api/bower_components/jquery/src/selector.js +0 -3
- data/app/assets/javascripts/try_api/bower_components/jquery/src/serialize.js +0 -126
- data/app/assets/javascripts/try_api/bower_components/jquery/src/traversing/findFilter.js +0 -99
- data/app/assets/javascripts/try_api/bower_components/jquery/src/traversing/var/dir.js +0 -22
- data/app/assets/javascripts/try_api/bower_components/jquery/src/traversing/var/rneedsContext.js +0 -8
- data/app/assets/javascripts/try_api/bower_components/jquery/src/traversing/var/siblings.js +0 -17
- data/app/assets/javascripts/try_api/bower_components/jquery/src/traversing.js +0 -178
- data/app/assets/javascripts/try_api/bower_components/jquery/src/var/ObjectFunctionString.js +0 -7
- data/app/assets/javascripts/try_api/bower_components/jquery/src/var/arr.js +0 -5
- data/app/assets/javascripts/try_api/bower_components/jquery/src/var/class2type.js +0 -6
- data/app/assets/javascripts/try_api/bower_components/jquery/src/var/concat.js +0 -7
- data/app/assets/javascripts/try_api/bower_components/jquery/src/var/document.js +0 -5
- data/app/assets/javascripts/try_api/bower_components/jquery/src/var/documentElement.js +0 -7
- data/app/assets/javascripts/try_api/bower_components/jquery/src/var/fnToString.js +0 -7
- data/app/assets/javascripts/try_api/bower_components/jquery/src/var/getProto.js +0 -5
- data/app/assets/javascripts/try_api/bower_components/jquery/src/var/hasOwn.js +0 -7
- data/app/assets/javascripts/try_api/bower_components/jquery/src/var/indexOf.js +0 -7
- data/app/assets/javascripts/try_api/bower_components/jquery/src/var/pnum.js +0 -5
- data/app/assets/javascripts/try_api/bower_components/jquery/src/var/push.js +0 -7
- data/app/assets/javascripts/try_api/bower_components/jquery/src/var/rcssNum.js +0 -9
- data/app/assets/javascripts/try_api/bower_components/jquery/src/var/rnotwhite.js +0 -5
- data/app/assets/javascripts/try_api/bower_components/jquery/src/var/slice.js +0 -7
- data/app/assets/javascripts/try_api/bower_components/jquery/src/var/support.js +0 -6
- data/app/assets/javascripts/try_api/bower_components/jquery/src/var/toString.js +0 -7
- data/app/assets/javascripts/try_api/bower_components/jquery/src/wrap.js +0 -77
- data/app/assets/javascripts/try_api/bower_components/jquery-slimscroll/README.md +0 -8
- data/app/assets/javascripts/try_api/bower_components/jquery-slimscroll/bower.json +0 -46
- data/app/assets/javascripts/try_api/bower_components/jquery-slimscroll/examples/allow-page-scroll.html +0 -94
- data/app/assets/javascripts/try_api/bower_components/jquery-slimscroll/examples/chaining.html +0 -80
- data/app/assets/javascripts/try_api/bower_components/jquery-slimscroll/examples/disable-fade-out.html +0 -94
- data/app/assets/javascripts/try_api/bower_components/jquery-slimscroll/examples/dynamic-content.html +0 -81
- data/app/assets/javascripts/try_api/bower_components/jquery-slimscroll/examples/height-width.html +0 -125
- data/app/assets/javascripts/try_api/bower_components/jquery-slimscroll/examples/index.html +0 -9
- data/app/assets/javascripts/try_api/bower_components/jquery-slimscroll/examples/libs/prettify/prettify.css +0 -52
- data/app/assets/javascripts/try_api/bower_components/jquery-slimscroll/examples/libs/prettify/prettify.js +0 -1477
- data/app/assets/javascripts/try_api/bower_components/jquery-slimscroll/examples/mouse-wheel.html +0 -99
- data/app/assets/javascripts/try_api/bower_components/jquery-slimscroll/examples/multiple-elements.html +0 -120
- data/app/assets/javascripts/try_api/bower_components/jquery-slimscroll/examples/navigation.html +0 -30
- data/app/assets/javascripts/try_api/bower_components/jquery-slimscroll/examples/nested.html +0 -82
- data/app/assets/javascripts/try_api/bower_components/jquery-slimscroll/examples/programmatic-scrolling.html +0 -138
- data/app/assets/javascripts/try_api/bower_components/jquery-slimscroll/examples/rail.html +0 -190
- data/app/assets/javascripts/try_api/bower_components/jquery-slimscroll/examples/scroll-events.html +0 -88
- data/app/assets/javascripts/try_api/bower_components/jquery-slimscroll/examples/scrollbar.html +0 -189
- data/app/assets/javascripts/try_api/bower_components/jquery-slimscroll/examples/start-position.html +0 -100
- data/app/assets/javascripts/try_api/bower_components/jquery-slimscroll/examples/style.css +0 -13
- data/app/assets/javascripts/try_api/bower_components/jquery-slimscroll/jquery.slimscroll.js +0 -474
- data/app/assets/javascripts/try_api/bower_components/jquery-slimscroll/jquery.slimscroll.min.js +0 -16
- data/app/assets/javascripts/try_api/bower_components/jquery-slimscroll/package.json +0 -32
@@ -1,234 +0,0 @@
|
|
1
|
-
define( [
|
2
|
-
"./core",
|
3
|
-
"./var/rnotwhite"
|
4
|
-
], function( jQuery, rnotwhite ) {
|
5
|
-
|
6
|
-
"use strict";
|
7
|
-
|
8
|
-
// Convert String-formatted options into Object-formatted ones
|
9
|
-
function createOptions( options ) {
|
10
|
-
var object = {};
|
11
|
-
jQuery.each( options.match( rnotwhite ) || [], function( _, flag ) {
|
12
|
-
object[ flag ] = true;
|
13
|
-
} );
|
14
|
-
return object;
|
15
|
-
}
|
16
|
-
|
17
|
-
/*
|
18
|
-
* Create a callback list using the following parameters:
|
19
|
-
*
|
20
|
-
* options: an optional list of space-separated options that will change how
|
21
|
-
* the callback list behaves or a more traditional option object
|
22
|
-
*
|
23
|
-
* By default a callback list will act like an event callback list and can be
|
24
|
-
* "fired" multiple times.
|
25
|
-
*
|
26
|
-
* Possible options:
|
27
|
-
*
|
28
|
-
* once: will ensure the callback list can only be fired once (like a Deferred)
|
29
|
-
*
|
30
|
-
* memory: will keep track of previous values and will call any callback added
|
31
|
-
* after the list has been fired right away with the latest "memorized"
|
32
|
-
* values (like a Deferred)
|
33
|
-
*
|
34
|
-
* unique: will ensure a callback can only be added once (no duplicate in the list)
|
35
|
-
*
|
36
|
-
* stopOnFalse: interrupt callings when a callback returns false
|
37
|
-
*
|
38
|
-
*/
|
39
|
-
jQuery.Callbacks = function( options ) {
|
40
|
-
|
41
|
-
// Convert options from String-formatted to Object-formatted if needed
|
42
|
-
// (we check in cache first)
|
43
|
-
options = typeof options === "string" ?
|
44
|
-
createOptions( options ) :
|
45
|
-
jQuery.extend( {}, options );
|
46
|
-
|
47
|
-
var // Flag to know if list is currently firing
|
48
|
-
firing,
|
49
|
-
|
50
|
-
// Last fire value for non-forgettable lists
|
51
|
-
memory,
|
52
|
-
|
53
|
-
// Flag to know if list was already fired
|
54
|
-
fired,
|
55
|
-
|
56
|
-
// Flag to prevent firing
|
57
|
-
locked,
|
58
|
-
|
59
|
-
// Actual callback list
|
60
|
-
list = [],
|
61
|
-
|
62
|
-
// Queue of execution data for repeatable lists
|
63
|
-
queue = [],
|
64
|
-
|
65
|
-
// Index of currently firing callback (modified by add/remove as needed)
|
66
|
-
firingIndex = -1,
|
67
|
-
|
68
|
-
// Fire callbacks
|
69
|
-
fire = function() {
|
70
|
-
|
71
|
-
// Enforce single-firing
|
72
|
-
locked = options.once;
|
73
|
-
|
74
|
-
// Execute callbacks for all pending executions,
|
75
|
-
// respecting firingIndex overrides and runtime changes
|
76
|
-
fired = firing = true;
|
77
|
-
for ( ; queue.length; firingIndex = -1 ) {
|
78
|
-
memory = queue.shift();
|
79
|
-
while ( ++firingIndex < list.length ) {
|
80
|
-
|
81
|
-
// Run callback and check for early termination
|
82
|
-
if ( list[ firingIndex ].apply( memory[ 0 ], memory[ 1 ] ) === false &&
|
83
|
-
options.stopOnFalse ) {
|
84
|
-
|
85
|
-
// Jump to end and forget the data so .add doesn't re-fire
|
86
|
-
firingIndex = list.length;
|
87
|
-
memory = false;
|
88
|
-
}
|
89
|
-
}
|
90
|
-
}
|
91
|
-
|
92
|
-
// Forget the data if we're done with it
|
93
|
-
if ( !options.memory ) {
|
94
|
-
memory = false;
|
95
|
-
}
|
96
|
-
|
97
|
-
firing = false;
|
98
|
-
|
99
|
-
// Clean up if we're done firing for good
|
100
|
-
if ( locked ) {
|
101
|
-
|
102
|
-
// Keep an empty list if we have data for future add calls
|
103
|
-
if ( memory ) {
|
104
|
-
list = [];
|
105
|
-
|
106
|
-
// Otherwise, this object is spent
|
107
|
-
} else {
|
108
|
-
list = "";
|
109
|
-
}
|
110
|
-
}
|
111
|
-
},
|
112
|
-
|
113
|
-
// Actual Callbacks object
|
114
|
-
self = {
|
115
|
-
|
116
|
-
// Add a callback or a collection of callbacks to the list
|
117
|
-
add: function() {
|
118
|
-
if ( list ) {
|
119
|
-
|
120
|
-
// If we have memory from a past run, we should fire after adding
|
121
|
-
if ( memory && !firing ) {
|
122
|
-
firingIndex = list.length - 1;
|
123
|
-
queue.push( memory );
|
124
|
-
}
|
125
|
-
|
126
|
-
( function add( args ) {
|
127
|
-
jQuery.each( args, function( _, arg ) {
|
128
|
-
if ( jQuery.isFunction( arg ) ) {
|
129
|
-
if ( !options.unique || !self.has( arg ) ) {
|
130
|
-
list.push( arg );
|
131
|
-
}
|
132
|
-
} else if ( arg && arg.length && jQuery.type( arg ) !== "string" ) {
|
133
|
-
|
134
|
-
// Inspect recursively
|
135
|
-
add( arg );
|
136
|
-
}
|
137
|
-
} );
|
138
|
-
} )( arguments );
|
139
|
-
|
140
|
-
if ( memory && !firing ) {
|
141
|
-
fire();
|
142
|
-
}
|
143
|
-
}
|
144
|
-
return this;
|
145
|
-
},
|
146
|
-
|
147
|
-
// Remove a callback from the list
|
148
|
-
remove: function() {
|
149
|
-
jQuery.each( arguments, function( _, arg ) {
|
150
|
-
var index;
|
151
|
-
while ( ( index = jQuery.inArray( arg, list, index ) ) > -1 ) {
|
152
|
-
list.splice( index, 1 );
|
153
|
-
|
154
|
-
// Handle firing indexes
|
155
|
-
if ( index <= firingIndex ) {
|
156
|
-
firingIndex--;
|
157
|
-
}
|
158
|
-
}
|
159
|
-
} );
|
160
|
-
return this;
|
161
|
-
},
|
162
|
-
|
163
|
-
// Check if a given callback is in the list.
|
164
|
-
// If no argument is given, return whether or not list has callbacks attached.
|
165
|
-
has: function( fn ) {
|
166
|
-
return fn ?
|
167
|
-
jQuery.inArray( fn, list ) > -1 :
|
168
|
-
list.length > 0;
|
169
|
-
},
|
170
|
-
|
171
|
-
// Remove all callbacks from the list
|
172
|
-
empty: function() {
|
173
|
-
if ( list ) {
|
174
|
-
list = [];
|
175
|
-
}
|
176
|
-
return this;
|
177
|
-
},
|
178
|
-
|
179
|
-
// Disable .fire and .add
|
180
|
-
// Abort any current/pending executions
|
181
|
-
// Clear all callbacks and values
|
182
|
-
disable: function() {
|
183
|
-
locked = queue = [];
|
184
|
-
list = memory = "";
|
185
|
-
return this;
|
186
|
-
},
|
187
|
-
disabled: function() {
|
188
|
-
return !list;
|
189
|
-
},
|
190
|
-
|
191
|
-
// Disable .fire
|
192
|
-
// Also disable .add unless we have memory (since it would have no effect)
|
193
|
-
// Abort any pending executions
|
194
|
-
lock: function() {
|
195
|
-
locked = queue = [];
|
196
|
-
if ( !memory && !firing ) {
|
197
|
-
list = memory = "";
|
198
|
-
}
|
199
|
-
return this;
|
200
|
-
},
|
201
|
-
locked: function() {
|
202
|
-
return !!locked;
|
203
|
-
},
|
204
|
-
|
205
|
-
// Call all callbacks with the given context and arguments
|
206
|
-
fireWith: function( context, args ) {
|
207
|
-
if ( !locked ) {
|
208
|
-
args = args || [];
|
209
|
-
args = [ context, args.slice ? args.slice() : args ];
|
210
|
-
queue.push( args );
|
211
|
-
if ( !firing ) {
|
212
|
-
fire();
|
213
|
-
}
|
214
|
-
}
|
215
|
-
return this;
|
216
|
-
},
|
217
|
-
|
218
|
-
// Call all the callbacks with the given arguments
|
219
|
-
fire: function() {
|
220
|
-
self.fireWith( this, arguments );
|
221
|
-
return this;
|
222
|
-
},
|
223
|
-
|
224
|
-
// To know if the callbacks have already been called at least once
|
225
|
-
fired: function() {
|
226
|
-
return !!fired;
|
227
|
-
}
|
228
|
-
};
|
229
|
-
|
230
|
-
return self;
|
231
|
-
};
|
232
|
-
|
233
|
-
return jQuery;
|
234
|
-
} );
|
@@ -1,16 +0,0 @@
|
|
1
|
-
define( [
|
2
|
-
"../var/document"
|
3
|
-
], function( document ) {
|
4
|
-
"use strict";
|
5
|
-
|
6
|
-
function DOMEval( code, doc ) {
|
7
|
-
doc = doc || document;
|
8
|
-
|
9
|
-
var script = doc.createElement( "script" );
|
10
|
-
|
11
|
-
script.text = code;
|
12
|
-
doc.head.appendChild( script ).parentNode.removeChild( script );
|
13
|
-
}
|
14
|
-
|
15
|
-
return DOMEval;
|
16
|
-
} );
|
@@ -1,67 +0,0 @@
|
|
1
|
-
define( [
|
2
|
-
"../core"
|
3
|
-
], function( jQuery ) {
|
4
|
-
|
5
|
-
"use strict";
|
6
|
-
|
7
|
-
// Multifunctional method to get and set values of a collection
|
8
|
-
// The value/s can optionally be executed if it's a function
|
9
|
-
var access = function( elems, fn, key, value, chainable, emptyGet, raw ) {
|
10
|
-
var i = 0,
|
11
|
-
len = elems.length,
|
12
|
-
bulk = key == null;
|
13
|
-
|
14
|
-
// Sets many values
|
15
|
-
if ( jQuery.type( key ) === "object" ) {
|
16
|
-
chainable = true;
|
17
|
-
for ( i in key ) {
|
18
|
-
access( elems, fn, i, key[ i ], true, emptyGet, raw );
|
19
|
-
}
|
20
|
-
|
21
|
-
// Sets one value
|
22
|
-
} else if ( value !== undefined ) {
|
23
|
-
chainable = true;
|
24
|
-
|
25
|
-
if ( !jQuery.isFunction( value ) ) {
|
26
|
-
raw = true;
|
27
|
-
}
|
28
|
-
|
29
|
-
if ( bulk ) {
|
30
|
-
|
31
|
-
// Bulk operations run against the entire set
|
32
|
-
if ( raw ) {
|
33
|
-
fn.call( elems, value );
|
34
|
-
fn = null;
|
35
|
-
|
36
|
-
// ...except when executing function values
|
37
|
-
} else {
|
38
|
-
bulk = fn;
|
39
|
-
fn = function( elem, key, value ) {
|
40
|
-
return bulk.call( jQuery( elem ), value );
|
41
|
-
};
|
42
|
-
}
|
43
|
-
}
|
44
|
-
|
45
|
-
if ( fn ) {
|
46
|
-
for ( ; i < len; i++ ) {
|
47
|
-
fn(
|
48
|
-
elems[ i ], key, raw ?
|
49
|
-
value :
|
50
|
-
value.call( elems[ i ], i, fn( elems[ i ], key ) )
|
51
|
-
);
|
52
|
-
}
|
53
|
-
}
|
54
|
-
}
|
55
|
-
|
56
|
-
return chainable ?
|
57
|
-
elems :
|
58
|
-
|
59
|
-
// Gets
|
60
|
-
bulk ?
|
61
|
-
fn.call( elems ) :
|
62
|
-
len ? fn( elems[ 0 ], key ) : emptyGet;
|
63
|
-
};
|
64
|
-
|
65
|
-
return access;
|
66
|
-
|
67
|
-
} );
|
@@ -1,127 +0,0 @@
|
|
1
|
-
// Initialize a jQuery object
|
2
|
-
define( [
|
3
|
-
"../core",
|
4
|
-
"../var/document",
|
5
|
-
"./var/rsingleTag",
|
6
|
-
"../traversing/findFilter"
|
7
|
-
], function( jQuery, document, rsingleTag ) {
|
8
|
-
|
9
|
-
"use strict";
|
10
|
-
|
11
|
-
// A central reference to the root jQuery(document)
|
12
|
-
var rootjQuery,
|
13
|
-
|
14
|
-
// A simple way to check for HTML strings
|
15
|
-
// Prioritize #id over <tag> to avoid XSS via location.hash (#9521)
|
16
|
-
// Strict HTML recognition (#11290: must start with <)
|
17
|
-
// Shortcut simple #id case for speed
|
18
|
-
rquickExpr = /^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,
|
19
|
-
|
20
|
-
init = jQuery.fn.init = function( selector, context, root ) {
|
21
|
-
var match, elem;
|
22
|
-
|
23
|
-
// HANDLE: $(""), $(null), $(undefined), $(false)
|
24
|
-
if ( !selector ) {
|
25
|
-
return this;
|
26
|
-
}
|
27
|
-
|
28
|
-
// Method init() accepts an alternate rootjQuery
|
29
|
-
// so migrate can support jQuery.sub (gh-2101)
|
30
|
-
root = root || rootjQuery;
|
31
|
-
|
32
|
-
// Handle HTML strings
|
33
|
-
if ( typeof selector === "string" ) {
|
34
|
-
if ( selector[ 0 ] === "<" &&
|
35
|
-
selector[ selector.length - 1 ] === ">" &&
|
36
|
-
selector.length >= 3 ) {
|
37
|
-
|
38
|
-
// Assume that strings that start and end with <> are HTML and skip the regex check
|
39
|
-
match = [ null, selector, null ];
|
40
|
-
|
41
|
-
} else {
|
42
|
-
match = rquickExpr.exec( selector );
|
43
|
-
}
|
44
|
-
|
45
|
-
// Match html or make sure no context is specified for #id
|
46
|
-
if ( match && ( match[ 1 ] || !context ) ) {
|
47
|
-
|
48
|
-
// HANDLE: $(html) -> $(array)
|
49
|
-
if ( match[ 1 ] ) {
|
50
|
-
context = context instanceof jQuery ? context[ 0 ] : context;
|
51
|
-
|
52
|
-
// Option to run scripts is true for back-compat
|
53
|
-
// Intentionally let the error be thrown if parseHTML is not present
|
54
|
-
jQuery.merge( this, jQuery.parseHTML(
|
55
|
-
match[ 1 ],
|
56
|
-
context && context.nodeType ? context.ownerDocument || context : document,
|
57
|
-
true
|
58
|
-
) );
|
59
|
-
|
60
|
-
// HANDLE: $(html, props)
|
61
|
-
if ( rsingleTag.test( match[ 1 ] ) && jQuery.isPlainObject( context ) ) {
|
62
|
-
for ( match in context ) {
|
63
|
-
|
64
|
-
// Properties of context are called as methods if possible
|
65
|
-
if ( jQuery.isFunction( this[ match ] ) ) {
|
66
|
-
this[ match ]( context[ match ] );
|
67
|
-
|
68
|
-
// ...and otherwise set as attributes
|
69
|
-
} else {
|
70
|
-
this.attr( match, context[ match ] );
|
71
|
-
}
|
72
|
-
}
|
73
|
-
}
|
74
|
-
|
75
|
-
return this;
|
76
|
-
|
77
|
-
// HANDLE: $(#id)
|
78
|
-
} else {
|
79
|
-
elem = document.getElementById( match[ 2 ] );
|
80
|
-
|
81
|
-
if ( elem ) {
|
82
|
-
|
83
|
-
// Inject the element directly into the jQuery object
|
84
|
-
this[ 0 ] = elem;
|
85
|
-
this.length = 1;
|
86
|
-
}
|
87
|
-
return this;
|
88
|
-
}
|
89
|
-
|
90
|
-
// HANDLE: $(expr, $(...))
|
91
|
-
} else if ( !context || context.jquery ) {
|
92
|
-
return ( context || root ).find( selector );
|
93
|
-
|
94
|
-
// HANDLE: $(expr, context)
|
95
|
-
// (which is just equivalent to: $(context).find(expr)
|
96
|
-
} else {
|
97
|
-
return this.constructor( context ).find( selector );
|
98
|
-
}
|
99
|
-
|
100
|
-
// HANDLE: $(DOMElement)
|
101
|
-
} else if ( selector.nodeType ) {
|
102
|
-
this[ 0 ] = selector;
|
103
|
-
this.length = 1;
|
104
|
-
return this;
|
105
|
-
|
106
|
-
// HANDLE: $(function)
|
107
|
-
// Shortcut for document ready
|
108
|
-
} else if ( jQuery.isFunction( selector ) ) {
|
109
|
-
return root.ready !== undefined ?
|
110
|
-
root.ready( selector ) :
|
111
|
-
|
112
|
-
// Execute immediately if ready is not present
|
113
|
-
selector( jQuery );
|
114
|
-
}
|
115
|
-
|
116
|
-
return jQuery.makeArray( selector, this );
|
117
|
-
};
|
118
|
-
|
119
|
-
// Give the init function the jQuery prototype for later instantiation
|
120
|
-
init.prototype = jQuery.fn;
|
121
|
-
|
122
|
-
// Initialize central reference
|
123
|
-
rootjQuery = jQuery( document );
|
124
|
-
|
125
|
-
return init;
|
126
|
-
|
127
|
-
} );
|
@@ -1,65 +0,0 @@
|
|
1
|
-
define( [
|
2
|
-
"../core",
|
3
|
-
"../var/document",
|
4
|
-
"./var/rsingleTag",
|
5
|
-
"../manipulation/buildFragment",
|
6
|
-
|
7
|
-
// This is the only module that needs core/support
|
8
|
-
"./support"
|
9
|
-
], function( jQuery, document, rsingleTag, buildFragment, support ) {
|
10
|
-
|
11
|
-
"use strict";
|
12
|
-
|
13
|
-
// Argument "data" should be string of html
|
14
|
-
// context (optional): If specified, the fragment will be created in this context,
|
15
|
-
// defaults to document
|
16
|
-
// keepScripts (optional): If true, will include scripts passed in the html string
|
17
|
-
jQuery.parseHTML = function( data, context, keepScripts ) {
|
18
|
-
if ( typeof data !== "string" ) {
|
19
|
-
return [];
|
20
|
-
}
|
21
|
-
if ( typeof context === "boolean" ) {
|
22
|
-
keepScripts = context;
|
23
|
-
context = false;
|
24
|
-
}
|
25
|
-
|
26
|
-
var base, parsed, scripts;
|
27
|
-
|
28
|
-
if ( !context ) {
|
29
|
-
|
30
|
-
// Stop scripts or inline event handlers from being executed immediately
|
31
|
-
// by using document.implementation
|
32
|
-
if ( support.createHTMLDocument ) {
|
33
|
-
context = document.implementation.createHTMLDocument( "" );
|
34
|
-
|
35
|
-
// Set the base href for the created document
|
36
|
-
// so any parsed elements with URLs
|
37
|
-
// are based on the document's URL (gh-2965)
|
38
|
-
base = context.createElement( "base" );
|
39
|
-
base.href = document.location.href;
|
40
|
-
context.head.appendChild( base );
|
41
|
-
} else {
|
42
|
-
context = document;
|
43
|
-
}
|
44
|
-
}
|
45
|
-
|
46
|
-
parsed = rsingleTag.exec( data );
|
47
|
-
scripts = !keepScripts && [];
|
48
|
-
|
49
|
-
// Single tag
|
50
|
-
if ( parsed ) {
|
51
|
-
return [ context.createElement( parsed[ 1 ] ) ];
|
52
|
-
}
|
53
|
-
|
54
|
-
parsed = buildFragment( [ data ], context, scripts );
|
55
|
-
|
56
|
-
if ( scripts && scripts.length ) {
|
57
|
-
jQuery( scripts ).remove();
|
58
|
-
}
|
59
|
-
|
60
|
-
return jQuery.merge( [], parsed.childNodes );
|
61
|
-
};
|
62
|
-
|
63
|
-
return jQuery.parseHTML;
|
64
|
-
|
65
|
-
} );
|
@@ -1,111 +0,0 @@
|
|
1
|
-
define( [
|
2
|
-
"../core",
|
3
|
-
"../var/document"
|
4
|
-
], function( jQuery, document ) {
|
5
|
-
|
6
|
-
"use strict";
|
7
|
-
|
8
|
-
var readyCallbacks = [],
|
9
|
-
readyFiring = false,
|
10
|
-
whenReady = function( fn ) {
|
11
|
-
readyCallbacks.push( fn );
|
12
|
-
},
|
13
|
-
executeReady = function( fn ) {
|
14
|
-
|
15
|
-
// Prevent errors from freezing future callback execution (gh-1823)
|
16
|
-
// Not backwards-compatible as this does not execute sync
|
17
|
-
window.setTimeout( function() {
|
18
|
-
fn.call( document, jQuery );
|
19
|
-
} );
|
20
|
-
};
|
21
|
-
|
22
|
-
jQuery.fn.ready = function( fn ) {
|
23
|
-
whenReady( fn );
|
24
|
-
return this;
|
25
|
-
};
|
26
|
-
|
27
|
-
jQuery.extend( {
|
28
|
-
|
29
|
-
// Is the DOM ready to be used? Set to true once it occurs.
|
30
|
-
isReady: false,
|
31
|
-
|
32
|
-
// A counter to track how many items to wait for before
|
33
|
-
// the ready event fires. See #6781
|
34
|
-
readyWait: 1,
|
35
|
-
|
36
|
-
// Hold (or release) the ready event
|
37
|
-
holdReady: function( hold ) {
|
38
|
-
if ( hold ) {
|
39
|
-
jQuery.readyWait++;
|
40
|
-
} else {
|
41
|
-
jQuery.ready( true );
|
42
|
-
}
|
43
|
-
},
|
44
|
-
|
45
|
-
ready: function( wait ) {
|
46
|
-
|
47
|
-
// Abort if there are pending holds or we're already ready
|
48
|
-
if ( wait === true ? --jQuery.readyWait : jQuery.isReady ) {
|
49
|
-
return;
|
50
|
-
}
|
51
|
-
|
52
|
-
// Remember that the DOM is ready
|
53
|
-
jQuery.isReady = true;
|
54
|
-
|
55
|
-
// If a normal DOM Ready event fired, decrement, and wait if need be
|
56
|
-
if ( wait !== true && --jQuery.readyWait > 0 ) {
|
57
|
-
return;
|
58
|
-
}
|
59
|
-
|
60
|
-
whenReady = function( fn ) {
|
61
|
-
readyCallbacks.push( fn );
|
62
|
-
|
63
|
-
if ( !readyFiring ) {
|
64
|
-
readyFiring = true;
|
65
|
-
|
66
|
-
while ( readyCallbacks.length ) {
|
67
|
-
fn = readyCallbacks.shift();
|
68
|
-
if ( jQuery.isFunction( fn ) ) {
|
69
|
-
executeReady( fn );
|
70
|
-
}
|
71
|
-
}
|
72
|
-
readyFiring = false;
|
73
|
-
}
|
74
|
-
};
|
75
|
-
|
76
|
-
whenReady();
|
77
|
-
}
|
78
|
-
} );
|
79
|
-
|
80
|
-
// Make jQuery.ready Promise consumable (gh-1778)
|
81
|
-
jQuery.ready.then = jQuery.fn.ready;
|
82
|
-
|
83
|
-
/**
|
84
|
-
* The ready event handler and self cleanup method
|
85
|
-
*/
|
86
|
-
function completed() {
|
87
|
-
document.removeEventListener( "DOMContentLoaded", completed );
|
88
|
-
window.removeEventListener( "load", completed );
|
89
|
-
jQuery.ready();
|
90
|
-
}
|
91
|
-
|
92
|
-
// Catch cases where $(document).ready() is called
|
93
|
-
// after the browser event has already occurred.
|
94
|
-
// Support: IE9-10 only
|
95
|
-
// Older IE sometimes signals "interactive" too soon
|
96
|
-
if ( document.readyState === "complete" ||
|
97
|
-
( document.readyState !== "loading" && !document.documentElement.doScroll ) ) {
|
98
|
-
|
99
|
-
// Handle it asynchronously to allow scripts the opportunity to delay ready
|
100
|
-
window.setTimeout( jQuery.ready );
|
101
|
-
|
102
|
-
} else {
|
103
|
-
|
104
|
-
// Use the handy event callback
|
105
|
-
document.addEventListener( "DOMContentLoaded", completed );
|
106
|
-
|
107
|
-
// A fallback to window.onload, that will always work
|
108
|
-
window.addEventListener( "load", completed );
|
109
|
-
}
|
110
|
-
|
111
|
-
} );
|
@@ -1,95 +0,0 @@
|
|
1
|
-
define( [
|
2
|
-
"../core",
|
3
|
-
"../var/document",
|
4
|
-
"../core/readyException",
|
5
|
-
"../deferred"
|
6
|
-
], function( jQuery, document ) {
|
7
|
-
|
8
|
-
"use strict";
|
9
|
-
|
10
|
-
// The deferred used on DOM ready
|
11
|
-
var readyList = jQuery.Deferred();
|
12
|
-
|
13
|
-
jQuery.fn.ready = function( fn ) {
|
14
|
-
|
15
|
-
readyList
|
16
|
-
.then( fn )
|
17
|
-
|
18
|
-
// Wrap jQuery.readyException in a function so that the lookup
|
19
|
-
// happens at the time of error handling instead of callback
|
20
|
-
// registration.
|
21
|
-
.catch( function( error ) {
|
22
|
-
jQuery.readyException( error );
|
23
|
-
} );
|
24
|
-
|
25
|
-
return this;
|
26
|
-
};
|
27
|
-
|
28
|
-
jQuery.extend( {
|
29
|
-
|
30
|
-
// Is the DOM ready to be used? Set to true once it occurs.
|
31
|
-
isReady: false,
|
32
|
-
|
33
|
-
// A counter to track how many items to wait for before
|
34
|
-
// the ready event fires. See #6781
|
35
|
-
readyWait: 1,
|
36
|
-
|
37
|
-
// Hold (or release) the ready event
|
38
|
-
holdReady: function( hold ) {
|
39
|
-
if ( hold ) {
|
40
|
-
jQuery.readyWait++;
|
41
|
-
} else {
|
42
|
-
jQuery.ready( true );
|
43
|
-
}
|
44
|
-
},
|
45
|
-
|
46
|
-
// Handle when the DOM is ready
|
47
|
-
ready: function( wait ) {
|
48
|
-
|
49
|
-
// Abort if there are pending holds or we're already ready
|
50
|
-
if ( wait === true ? --jQuery.readyWait : jQuery.isReady ) {
|
51
|
-
return;
|
52
|
-
}
|
53
|
-
|
54
|
-
// Remember that the DOM is ready
|
55
|
-
jQuery.isReady = true;
|
56
|
-
|
57
|
-
// If a normal DOM Ready event fired, decrement, and wait if need be
|
58
|
-
if ( wait !== true && --jQuery.readyWait > 0 ) {
|
59
|
-
return;
|
60
|
-
}
|
61
|
-
|
62
|
-
// If there are functions bound, to execute
|
63
|
-
readyList.resolveWith( document, [ jQuery ] );
|
64
|
-
}
|
65
|
-
} );
|
66
|
-
|
67
|
-
jQuery.ready.then = readyList.then;
|
68
|
-
|
69
|
-
// The ready event handler and self cleanup method
|
70
|
-
function completed() {
|
71
|
-
document.removeEventListener( "DOMContentLoaded", completed );
|
72
|
-
window.removeEventListener( "load", completed );
|
73
|
-
jQuery.ready();
|
74
|
-
}
|
75
|
-
|
76
|
-
// Catch cases where $(document).ready() is called
|
77
|
-
// after the browser event has already occurred.
|
78
|
-
// Support: IE <=9 - 10 only
|
79
|
-
// Older IE sometimes signals "interactive" too soon
|
80
|
-
if ( document.readyState === "complete" ||
|
81
|
-
( document.readyState !== "loading" && !document.documentElement.doScroll ) ) {
|
82
|
-
|
83
|
-
// Handle it asynchronously to allow scripts the opportunity to delay ready
|
84
|
-
window.setTimeout( jQuery.ready );
|
85
|
-
|
86
|
-
} else {
|
87
|
-
|
88
|
-
// Use the handy event callback
|
89
|
-
document.addEventListener( "DOMContentLoaded", completed );
|
90
|
-
|
91
|
-
// A fallback to window.onload, that will always work
|
92
|
-
window.addEventListener( "load", completed );
|
93
|
-
}
|
94
|
-
|
95
|
-
} );
|