Projekt

Obecné

Profil

Stáhnout (44.3 KB) Statistiky
| Větev: | Revize:
1
/*
2
 * Copyright 2011 The Closure Compiler Authors.
3
 *
4
 * Licensed under the Apache License, Version 2.0 (the "License");
5
 * you may not use this file except in compliance with the License.
6
 * You may obtain a copy of the License at
7
 *
8
 *     http://www.apache.org/licenses/LICENSE-2.0
9
 *
10
 * Unless required by applicable law or agreed to in writing, software
11
 * distributed under the License is distributed on an "AS IS" BASIS,
12
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
 * See the License for the specific language governing permissions and
14
 * limitations under the License.
15
 */
16

    
17
/**
18
 * @fileoverview Externs for jQuery 1.9 - 1.11 & 2.0 - 2.1
19
 *
20
 * The jQuery API is identical for the 1.9.x+ and 2.0+ branches. In addition,
21
 * the API has not changed in releases since that date. These externs are valid
22
 * for all jQuery releases since 1.9 and 2.0.
23
 *
24
 * Note that some functions use different return types depending on the number
25
 * of parameters passed in. In these cases, you may need to annotate the type
26
 * of the result in your code, so the JSCompiler understands which type you're
27
 * expecting. For example:
28
 *    <code>var elt = /** @type {Element} * / (foo.get(0));</code>
29
 *
30
 * @see http://api.jquery.com/
31
 * @externs
32
 */
33

    
34
/**
35
 * @typedef {(Window|Document|Element|Array<Element>|string|jQuery|
36
 *     NodeList)}
37
 */
38
var jQuerySelector;
39

    
40
/** @typedef {function(...)|Array<function(...)>} */
41
var jQueryCallback;
42

    
43
/**
44
 * @record
45
 */
46
function jQueryAjaxSettings() {};
47

    
48
/** @type {(Object<string, string>|undefined)} */
49
jQueryAjaxSettings.prototype.accepts;
50

    
51
/** @type {(?boolean|undefined)} */
52
jQueryAjaxSettings.prototype.async;
53

    
54
/** @type {(function(jQuery.jqXHR, (jQueryAjaxSettings|Object<string, *>))|undefined)} */
55
jQueryAjaxSettings.prototype.beforeSend;
56

    
57
/** @type {(?boolean|undefined)} */
58
jQueryAjaxSettings.prototype.cache;
59

    
60
/** @type {(function(jQuery.jqXHR, string)|undefined)} */
61
jQueryAjaxSettings.prototype.complete;
62

    
63
/** @type {(Object<string, RegExp>|undefined)} */
64
jQueryAjaxSettings.prototype.contents;
65

    
66
/** @type {(?string|boolean|undefined)} */
67
jQueryAjaxSettings.prototype.contentType;
68

    
69
/** @type {(Object<?, ?>|jQueryAjaxSettings|undefined)} */
70
jQueryAjaxSettings.prototype.context;
71

    
72
/** @type {(Object<string, Function>|undefined)} */
73
jQueryAjaxSettings.prototype.converters;
74

    
75
/** @type {(?boolean|undefined)} */
76
jQueryAjaxSettings.prototype.crossDomain;
77

    
78
/** @type {(Object<?, ?>|?string|Array<?>|undefined)} */
79
jQueryAjaxSettings.prototype.data;
80

    
81
/** @type {(function(string, string):?|undefined)} */
82
jQueryAjaxSettings.prototype.dataFilter;
83

    
84
/** @type {(?string|undefined)} */
85
jQueryAjaxSettings.prototype.dataType;
86

    
87
/** @type {(function(jQuery.jqXHR, string, string)|undefined)} */
88
jQueryAjaxSettings.prototype.error;
89

    
90
/** @type {(?boolean|undefined)} */
91
jQueryAjaxSettings.prototype.global;
92

    
93
/** @type {(Object<?, ?>|undefined)} */
94
jQueryAjaxSettings.prototype.headers;
95

    
96
/** @type {(?boolean|undefined)} */
97
jQueryAjaxSettings.prototype.ifModified;
98

    
99
/** @type {(?boolean|undefined)} */
100
jQueryAjaxSettings.prototype.isLocal;
101

    
102
/** @type {(?string|undefined)} */
103
jQueryAjaxSettings.prototype.jsonp;
104

    
105
/** @type {(?string|function()|undefined)} */
106
jQueryAjaxSettings.prototype.jsonpCallback;
107

    
108
/** @type {(?string|undefined)} */
109
jQueryAjaxSettings.prototype.mimeType;
110

    
111
/** @type {(?string|undefined)} */
112
jQueryAjaxSettings.prototype.password;
113

    
114
/** @type {(?boolean|undefined)} */
115
jQueryAjaxSettings.prototype.processData;
116

    
117
/** @type {(?string|undefined)} */
118
jQueryAjaxSettings.prototype.scriptCharset;
119

    
120
/** @type {(Object<number, function()>|undefined)} */
121
jQueryAjaxSettings.prototype.statusCode;
122

    
123
/** @type {(function(?, string, jQuery.jqXHR)|undefined)} */
124
jQueryAjaxSettings.prototype.success;
125

    
126
/** @type {(?number|undefined)} */
127
jQueryAjaxSettings.prototype.timeout;
128

    
129
/** @type {(?boolean|undefined)} */
130
jQueryAjaxSettings.prototype.traditional;
131

    
132
/** @type {(?string|undefined)} */
133
jQueryAjaxSettings.prototype.type;
134

    
135
/** @type {(?string|undefined)} */
136
jQueryAjaxSettings.prototype.url;
137

    
138
/** @type {(?string|undefined)} */
139
jQueryAjaxSettings.prototype.username;
140

    
141
/** @type {(function():(ActiveXObject|XMLHttpRequest)|undefined)} */
142
jQueryAjaxSettings.prototype.xhr;
143

    
144
/** @type {(Object<?, ?>|undefined)} */
145
jQueryAjaxSettings.prototype.xhrFields;
146

    
147
/**
148
 * @constructor
149
 * @param {(jQuerySelector|Element|Object|Array<Element>|jQuery|string|
150
 *     function())=} arg1
151
 * @param {(Element|jQuery|Document|
152
 *     Object<string, (string|function(!jQuery.Event))>)=} arg2
153
 * @return {!jQuery}
154
 */
155
function jQuery(arg1, arg2) {}
156

    
157
/**
158
 * @const
159
 */
160
var $ = jQuery;
161

    
162
/**
163
 * @param {(jQuerySelector|Array<Element>|string|jQuery)} arg1
164
 * @param {Element=} context
165
 * @return {!jQuery}
166
 * @nosideeffects
167
 */
168
jQuery.prototype.add = function(arg1, context) {};
169

    
170
/**
171
 * @param {(jQuerySelector|Array<Element>|string|jQuery)=} arg1
172
 * @return {!jQuery}
173
 * @nosideeffects
174
 */
175
jQuery.prototype.addBack = function(arg1) {};
176

    
177
/**
178
 * @param {(string|function(number,String))} arg1
179
 * @return {!jQuery}
180
 */
181
jQuery.prototype.addClass = function(arg1) {};
182

    
183
/**
184
 * @param {(string|Element|jQuery|function(number))} arg1
185
 * @param {(string|Element|Array<Element>|jQuery)=} content
186
 * @return {!jQuery}
187
 */
188
jQuery.prototype.after = function(arg1, content) {};
189

    
190
/**
191
 * @param {(string|jQueryAjaxSettings|Object<string,*>)} arg1
192
 * @param {(jQueryAjaxSettings|Object<string, *>)=} settings
193
 * @return {!jQuery.jqXHR}
194
 */
195
jQuery.ajax = function(arg1, settings) {};
196

    
197
/**
198
 * @param {function(!jQuery.Event,XMLHttpRequest,(jQueryAjaxSettings|Object<string, *>))} handler
199
 * @return {!jQuery}
200
 */
201
jQuery.prototype.ajaxComplete = function(handler) {};
202

    
203
/**
204
 * @param {function(!jQuery.Event,jQuery.jqXHR,(jQueryAjaxSettings|Object<string, *>),*)} handler
205
 * @return {!jQuery}
206
 */
207
jQuery.prototype.ajaxError = function(handler) {};
208

    
209
/**
210
 * @param {(string|function((jQueryAjaxSettings|Object<string, *>),(jQueryAjaxSettings|Object<string, *>),jQuery.jqXHR))} dataTypes
211
 * @param {function((jQueryAjaxSettings|Object<string, *>),(jQueryAjaxSettings|Object<string, *>),jQuery.jqXHR)=} handler
212
 */
213
jQuery.ajaxPrefilter = function(dataTypes, handler) {};
214

    
215
/**
216
 * @param {function(!jQuery.Event,jQuery.jqXHR,(jQueryAjaxSettings|Object<string, *>))} handler
217
 * @return {!jQuery}
218
 */
219
jQuery.prototype.ajaxSend = function(handler) {};
220

    
221
/**
222
 * @record
223
 * @extends {jQueryAjaxSettings}
224
 */
225
function jQueryAjaxSettingsExtra() {};
226

    
227

    
228
/** @type {Object<string, boolean>} */
229
jQueryAjaxSettingsExtra.prototype.flatOptions;
230

    
231
/** @type {boolean} */
232
jQueryAjaxSettingsExtra.prototype.processData;
233

    
234
/** @type {Object<string, string>} */
235
jQueryAjaxSettingsExtra.prototype.responseFields;
236

    
237
/** @const {jQueryAjaxSettingsExtra|Object<string, *>} */
238
jQuery.ajaxSettings;
239

    
240

    
241
/** @param {jQueryAjaxSettings|Object<string, *>} options */
242
jQuery.ajaxSetup = function(options) {};
243

    
244
/**
245
 * @param {function()} handler
246
 * @return {!jQuery}
247
 */
248
jQuery.prototype.ajaxStart = function(handler) {};
249

    
250
/**
251
 * @param {function()} handler
252
 * @return {!jQuery}
253
 */
254
jQuery.prototype.ajaxStop = function(handler) {};
255

    
256
/**
257
 * @param {function(!jQuery.Event,XMLHttpRequest,(jQueryAjaxSettings|Object<string, *>), ?)} handler
258
 * @return {!jQuery}
259
 */
260
jQuery.prototype.ajaxSuccess = function(handler) {};
261

    
262
/**
263
 * @deprecated Please use .addBack(selector) instead.
264
 * @return {!jQuery}
265
 * @nosideeffects
266
 */
267
jQuery.prototype.andSelf = function() {};
268

    
269
/**
270
 * @param {Object<string,*>} properties
271
 * @param {(string|number|function()|Object<string,*>)=} arg2
272
 * @param {(string|function())=} easing
273
 * @param {function()=} complete
274
 * @return {!jQuery}
275
 */
276
jQuery.prototype.animate = function(properties, arg2, easing, complete) {};
277

    
278
/**
279
 * @param {(string|Element|Array<Element>|jQuery|function(number,string))} arg1
280
 * @param {...(string|Element|Array<Element>|jQuery)} content
281
 * @return {!jQuery}
282
 */
283
jQuery.prototype.append = function(arg1, content) {};
284

    
285
/**
286
 * @param {(jQuerySelector|Element|jQuery)} target
287
 * @return {!jQuery}
288
 */
289
jQuery.prototype.appendTo = function(target) {};
290

    
291
/**
292
 * @param {(string|Object<string,*>)} arg1
293
 * @param {(string|number|boolean|function(number,string))=} arg2
294
 * @return {(string|!jQuery)}
295
 */
296
jQuery.prototype.attr = function(arg1, arg2) {};
297

    
298
/**
299
 * @param {(string|Element|jQuery|function())} arg1
300
 * @param {(string|Element|Array<Element>|jQuery)=} content
301
 * @return {!jQuery}
302
 */
303
jQuery.prototype.before = function(arg1, content) {};
304

    
305
/**
306
 * @param {(string|Object<string, function(!jQuery.Event)>)} arg1
307
 * @param {(Object<string, *>|function(!jQuery.Event)|boolean)=} eventData
308
 * @param {(function(!jQuery.Event)|boolean)=} arg3
309
 * @return {!jQuery}
310
 */
311
jQuery.prototype.bind = function(arg1, eventData, arg3) {};
312

    
313
/**
314
 * @param {(function(!jQuery.Event)|Object<string, *>)=} arg1
315
 * @param {function(!jQuery.Event)=} handler
316
 * @return {!jQuery}
317
 */
318
jQuery.prototype.blur = function(arg1, handler) {};
319

    
320
/**
321
 * @constructor
322
 * @private
323
 */
324
jQuery.callbacks = function () {};
325

    
326
/**
327
 * @param {string=} flags
328
 * @return {!jQuery.callbacks}
329
 */
330
jQuery.Callbacks = function (flags) {};
331

    
332
/** @param {function()} callbacks */
333
jQuery.callbacks.prototype.add = function(callbacks) {};
334

    
335
/** @return {undefined} */
336
jQuery.callbacks.prototype.disable = function() {};
337

    
338
/** @return {undefined} */
339
jQuery.callbacks.prototype.empty = function() {};
340

    
341
/** @param {...*} var_args */
342
jQuery.callbacks.prototype.fire = function(var_args) {};
343

    
344
/**
345
 * @return {boolean}
346
 * @nosideeffects
347
 */
348
jQuery.callbacks.prototype.fired = function() {};
349

    
350
/** @param {...*} var_args */
351
jQuery.callbacks.prototype.fireWith = function(var_args) {};
352

    
353
/**
354
 * @param {function()} callback
355
 * @return {boolean}
356
 * @nosideeffects
357
 */
358
jQuery.callbacks.prototype.has = function(callback) {};
359

    
360
/** @return {undefined} */
361
jQuery.callbacks.prototype.lock = function() {};
362

    
363
/**
364
 * @return {boolean}
365
 * @nosideeffects
366
 */
367
jQuery.callbacks.prototype.locked = function() {};
368

    
369
/** @param {function()} callbacks */
370
jQuery.callbacks.prototype.remove = function(callbacks) {};
371

    
372
/**
373
 * @param {(function(!jQuery.Event)|Object<string, *>)=} arg1
374
 * @param {function(!jQuery.Event)=} handler
375
 * @return {!jQuery}
376
 */
377
jQuery.prototype.change = function(arg1, handler) {};
378

    
379
/**
380
 * @param {jQuerySelector=} selector
381
 * @return {!jQuery}
382
 * @nosideeffects
383
 */
384
jQuery.prototype.children = function(selector) {};
385

    
386
/**
387
 * @param {string=} queueName
388
 * @return {!jQuery}
389
 */
390
jQuery.prototype.clearQueue = function(queueName) {};
391

    
392
/**
393
 * @param {(function(!jQuery.Event)|Object<string, *>)=} arg1
394
 * @param {function(!jQuery.Event)=} handler
395
 * @return {!jQuery}
396
 */
397
jQuery.prototype.click = function(arg1, handler) {};
398

    
399
/**
400
 * @param {boolean=} withDataAndEvents
401
 * @param {boolean=} deepWithDataAndEvents
402
 * @return {!jQuery}
403
 * @suppress {checkTypes} see https://code.google.com/p/closure-compiler/issues/detail?id=583
404
 */
405
jQuery.prototype.clone = function(withDataAndEvents, deepWithDataAndEvents) {};
406

    
407
/**
408
 * @param {(jQuerySelector|jQuery|Element|string)} arg1
409
 * @param {Element=} context
410
 * @return {!jQuery}
411
 * @nosideeffects
412
 */
413
jQuery.prototype.closest = function(arg1, context) {};
414

    
415
/**
416
 * @param {Element} container
417
 * @param {Element} contained
418
 * @return {boolean}
419
 * @nosideeffects
420
 */
421
jQuery.contains = function(container, contained) {};
422

    
423
/**
424
 * @return {!jQuery}
425
 * @nosideeffects
426
 */
427
jQuery.prototype.contents = function() {};
428

    
429
/** @type {Element|Document} */
430
jQuery.prototype.context;
431

    
432
/**
433
 * @param {(string|Object<string,*>)} arg1
434
 * @param {(string|number|function(number,*))=} arg2
435
 * @return {(string|!jQuery)}
436
 */
437
jQuery.prototype.css = function(arg1, arg2) {};
438

    
439
/** @type {Object<string, *>} */
440
jQuery.cssHooks;
441

    
442
/**
443
 * @param {Element} elem
444
 * @param {string=} key
445
 * @param {*=} value
446
 * @return {*}
447
 */
448
jQuery.data = function(elem, key, value) {};
449

    
450
/**
451
 * @param {(string|Object<string, *>)=} arg1
452
 * @param {*=} value
453
 * @return {*}
454
 */
455
jQuery.prototype.data = function(arg1, value) {};
456

    
457
/**
458
 * @param {(function(!jQuery.Event)|Object<string, *>)=} arg1
459
 * @param {function(!jQuery.Event)=} handler
460
 * @return {!jQuery}
461
 */
462
jQuery.prototype.dblclick = function(arg1, handler) {};
463

    
464
/**
465
 * @constructor
466
 * @implements {jQuery.Promise}
467
 * @param {function()=} opt_fn
468
 * @see http://api.jquery.com/category/deferred-object/
469
 */
470
jQuery.deferred = function(opt_fn) {};
471

    
472
/**
473
 * @constructor
474
 * @extends {jQuery.deferred}
475
 * @param {function()=} opt_fn
476
 * @return {!jQuery.Deferred}
477
 */
478
jQuery.Deferred = function(opt_fn) {};
479

    
480
/**
481
 * @override
482
 * @param {jQueryCallback} alwaysCallbacks
483
 * @param {jQueryCallback=} alwaysCallbacks2
484
 * @return {!jQuery.deferred}
485
 */
486
jQuery.deferred.prototype.always
487
    = function(alwaysCallbacks, alwaysCallbacks2) {};
488

    
489
/**
490
 * @override
491
 * @param {jQueryCallback} doneCallbacks
492
 * @param {jQueryCallback=} doneCallbacks2
493
 * @return {!jQuery.deferred}
494
 */
495
jQuery.deferred.prototype.done = function(doneCallbacks, doneCallbacks2) {};
496

    
497
/**
498
 * @override
499
 * @param {jQueryCallback} failCallbacks
500
 * @param {jQueryCallback=} failCallbacks2
501
 * @return {!jQuery.deferred}
502
 */
503
jQuery.deferred.prototype.fail = function(failCallbacks, failCallbacks2) {};
504

    
505
/**
506
 * @param {...*} var_args
507
 * @return {!jQuery.deferred}
508
 */
509
jQuery.deferred.prototype.notify = function(var_args) {};
510

    
511
/**
512
 * @param {Object} context
513
 * @param {...*} var_args
514
 * @return {!jQuery.deferred}
515
 */
516
jQuery.deferred.prototype.notifyWith = function(context, var_args) {};
517

    
518
/**
519
 * @deprecated Please use deferred.then() instead.
520
 * @override
521
 * @param {function()=} doneFilter
522
 * @param {function()=} failFilter
523
 * @param {function()=} progressFilter
524
 * @return {!jQuery.Promise}
525
 */
526
jQuery.deferred.prototype.pipe =
527
    function(doneFilter, failFilter, progressFilter) {};
528

    
529
/**
530
 * @param {jQueryCallback} progressCallbacks
531
 * @return {!jQuery.deferred}
532
 */
533
jQuery.deferred.prototype.progress = function(progressCallbacks) {};
534

    
535
/**
536
 * @param {Object=} target
537
 * @return {!jQuery.Promise}
538
 */
539
jQuery.deferred.prototype.promise = function(target) {};
540

    
541
/**
542
 * @param {...*} var_args
543
 * @return {!jQuery.deferred}
544
 */
545
jQuery.deferred.prototype.reject = function(var_args) {};
546

    
547
/**
548
 * @param {Object} context
549
 * @param {Array<*>=} args
550
 * @return {!jQuery.deferred}
551
 */
552
jQuery.deferred.prototype.rejectWith = function(context, args) {};
553

    
554
/**
555
 * @param {...*} var_args
556
 * @return {!jQuery.deferred}
557
 */
558
jQuery.deferred.prototype.resolve = function(var_args) {};
559

    
560
/**
561
 * @param {Object} context
562
 * @param {Array<*>=} args
563
 * @return {!jQuery.deferred}
564
 */
565
jQuery.deferred.prototype.resolveWith = function(context, args) {};
566

    
567
/** @return {string} */
568
jQuery.deferred.prototype.state = function() {};
569

    
570
/**
571
 * @override
572
 * @param {jQueryCallback} doneCallbacks
573
 * @param {jQueryCallback=} failCallbacks
574
 * @param {jQueryCallback=} progressCallbacks
575
 * @return {!jQuery.deferred}
576
 */
577
jQuery.deferred.prototype.then
578
    = function(doneCallbacks, failCallbacks, progressCallbacks) {};
579

    
580
/**
581
 * @param {number} duration
582
 * @param {string=} queueName
583
 * @return {!jQuery}
584
 */
585
jQuery.prototype.delay = function(duration, queueName) {};
586

    
587
/**
588
 * @param {string} selector
589
 * @param {(string|Object<string,*>)} arg2
590
 * @param {(function(!jQuery.Event)|Object<string, *>)=} arg3
591
 * @param {function(!jQuery.Event)=} handler
592
 * @return {!jQuery}
593
 */
594
jQuery.prototype.delegate = function(selector, arg2, arg3, handler) {};
595

    
596
/**
597
 * @param {Element} elem
598
 * @param {string=} queueName
599
 */
600
jQuery.dequeue = function(elem, queueName) {};
601

    
602
/**
603
 * @param {string=} queueName
604
 * @return {!jQuery}
605
 */
606
jQuery.prototype.dequeue = function(queueName) {};
607

    
608
/**
609
 * @param {jQuerySelector=} selector
610
 * @return {!jQuery}
611
 */
612
jQuery.prototype.detach = function(selector) {};
613

    
614
/**
615
 * @param {Object} collection
616
 * @param {function((number|string),?)} callback
617
 * @return {Object}
618
 */
619
jQuery.each = function(collection, callback) {};
620

    
621
/**
622
 * @param {function(number,Element)} fnc
623
 * @return {!jQuery}
624
 */
625
jQuery.prototype.each = function(fnc) {};
626

    
627

    
628
/** @return {!jQuery} */
629
jQuery.prototype.empty = function() {};
630

    
631
/**
632
 * @return {!jQuery}
633
 * @nosideeffects
634
 */
635
jQuery.prototype.end = function() {};
636

    
637
/**
638
 * @param {number} arg1
639
 * @return {!jQuery}
640
 * @nosideeffects
641
 */
642
jQuery.prototype.eq = function(arg1) {};
643

    
644
/**
645
 * @param {string} message
646
 * @throws {Error}
647
 */
648
jQuery.error = function(message) {};
649

    
650
/**
651
 * @deprecated Please use .on( "error", handler ) instead.
652
 * @param {(function(!jQuery.Event)|Object<string, *>)} arg1
653
 * @param {function(!jQuery.Event)=} handler
654
 * @return {!jQuery}
655
 */
656
jQuery.prototype.error = function(arg1, handler) {};
657

    
658
/** @const */
659
jQuery.event = {};
660

    
661
/** @type {Array<string>} */
662
jQuery.event.props;
663

    
664
/** @type {Object<string, Object>} */
665
jQuery.event.special;
666

    
667
/**
668
 * @constructor
669
 * @param {string} eventType
670
 * @param {Object=} properties
671
 * @return {!jQuery.Event}
672
 */
673
jQuery.Event = function(eventType, properties) {};
674

    
675
/** @type {boolean} */
676
jQuery.Event.prototype.altKey;
677

    
678
/** @type {boolean} */
679
jQuery.Event.prototype.bubbles;
680

    
681
/** @type {number} */
682
jQuery.Event.prototype.button;
683

    
684
/** @type {number} */
685
jQuery.Event.prototype.buttons;
686

    
687
/** @type {boolean} */
688
jQuery.Event.prototype.cancelable;
689

    
690
/** @type {number} */
691
jQuery.Event.prototype.charCode;
692

    
693
/** @type {number} */
694
jQuery.Event.prototype.clientX;
695

    
696
/** @type {number} */
697
jQuery.Event.prototype.clientY;
698

    
699
/** @type {boolean} */
700
jQuery.Event.prototype.ctrlKey;
701

    
702
/** @type {Element} */
703
jQuery.Event.prototype.currentTarget;
704

    
705
/** @type {Object<string, *>} */
706
jQuery.Event.prototype.data;
707

    
708
/** @type {Element} */
709
jQuery.Event.prototype.delegateTarget;
710

    
711
/** @type {number} */
712
jQuery.Event.prototype.detail;
713

    
714
/** @type {number} */
715
jQuery.Event.prototype.eventPhase;
716

    
717
/**
718
 * @return {boolean}
719
 * @nosideeffects
720
 */
721
jQuery.Event.prototype.isDefaultPrevented = function() {};
722

    
723
/**
724
 * @return {boolean}
725
 * @nosideeffects
726
 */
727
jQuery.Event.prototype.isImmediatePropagationStopped = function() {};
728

    
729
/**
730
 * @return {boolean}
731
 * @nosideeffects
732
 */
733
jQuery.Event.prototype.isPropagationStopped = function() {};
734

    
735
/** @type {number} */
736
jQuery.Event.prototype.keyCode;
737

    
738
/** @type {boolean} */
739
jQuery.Event.prototype.metaKey;
740

    
741
/** @type {string} */
742
jQuery.Event.prototype.namespace;
743

    
744
/** @type {number} */
745
jQuery.Event.prototype.offsetX;
746

    
747
/** @type {number} */
748
jQuery.Event.prototype.offsetY;
749

    
750
/** @type {Event} */
751
jQuery.Event.prototype.originalEvent;
752

    
753
/** @type {Element} */
754
jQuery.Event.prototype.originalTarget;
755

    
756
/** @type {number} */
757
jQuery.Event.prototype.pageX;
758

    
759
/** @type {number} */
760
jQuery.Event.prototype.pageY;
761

    
762
/** @return {undefined} */
763
jQuery.Event.prototype.preventDefault = function() {};
764

    
765
/** @type {Object<string, *>} */
766
jQuery.Event.prototype.props;
767

    
768
/** @type {Element} */
769
jQuery.Event.prototype.relatedTarget;
770

    
771
/** @type {*} */
772
jQuery.Event.prototype.result;
773

    
774
/** @type {number} */
775
jQuery.Event.prototype.screenX;
776

    
777
/** @type {number} */
778
jQuery.Event.prototype.screenY;
779

    
780
/** @type {boolean} */
781
jQuery.Event.prototype.shiftKey;
782

    
783
/** @return {undefined} */
784
jQuery.Event.prototype.stopImmediatePropagation = function() {};
785

    
786
/** @return {undefined} */
787
jQuery.Event.prototype.stopPropagation = function() {};
788

    
789
/** @type {Element} */
790
jQuery.Event.prototype.target;
791

    
792
/** @type {number} */
793
jQuery.Event.prototype.timeStamp;
794

    
795
/** @type {Element} */
796
jQuery.Event.prototype.toElement;
797

    
798
/** @type {string} */
799
jQuery.Event.prototype.type;
800

    
801
/** @type {Window} */
802
jQuery.Event.prototype.view;
803

    
804
/** @type {number} */
805
jQuery.Event.prototype.which;
806

    
807
/**
808
 * @param {(Object|boolean)} arg1
809
 * @param {...*} var_args
810
 * @return {Object}
811
 */
812
jQuery.extend = function(arg1, var_args) {};
813

    
814
/**
815
 * @param {(Object|boolean)} arg1
816
 * @param {...*} var_args
817
 * @return {Object}
818
 */
819
jQuery.prototype.extend = function(arg1, var_args) {};
820

    
821
/**
822
 * @param {(string|number|function())=} duration
823
 * @param {(function()|string)=} arg2
824
 * @param {function()=} callback
825
 * @return {!jQuery}
826
 */
827
jQuery.prototype.fadeIn = function(duration, arg2, callback) {};
828

    
829
/**
830
 * @param {(string|number|function())=} duration
831
 * @param {(function()|string)=} arg2
832
 * @param {function()=} callback
833
 * @return {!jQuery}
834
 */
835
jQuery.prototype.fadeOut = function(duration, arg2, callback) {};
836

    
837
/**
838
 * @param {(string|number)} duration
839
 * @param {number} opacity
840
 * @param {(function()|string)=} arg3
841
 * @param {function()=} callback
842
 * @return {!jQuery}
843
 */
844
jQuery.prototype.fadeTo = function(duration, opacity, arg3, callback) {};
845

    
846
/**
847
 * @param {(string|number|function())=} duration
848
 * @param {(string|function())=} easing
849
 * @param {function()=} callback
850
 * @return {!jQuery}
851
 */
852
jQuery.prototype.fadeToggle = function(duration, easing, callback) {};
853

    
854
/**
855
 * @param {(jQuerySelector|function(number,Element)|Element|jQuery)} arg1
856
 * @return {!jQuery}
857
 * @see http://api.jquery.com/filter/
858
 */
859
jQuery.prototype.filter = function(arg1) {};
860

    
861
/**
862
 * @param {(jQuerySelector|jQuery|Element)} arg1
863
 * @return {!jQuery}
864
 * @nosideeffects
865
 */
866
jQuery.prototype.find = function(arg1) {};
867

    
868
/**
869
 * @return {!jQuery}
870
 * @nosideeffects
871
 */
872
jQuery.prototype.first = function() {};
873

    
874
/** @see http://docs.jquery.com/Plugins/Authoring */
875
jQuery.fn = jQuery.prototype;
876

    
877
/**
878
 * @param {(function(!jQuery.Event)|Object<string, *>)=} arg1
879
 * @param {function(!jQuery.Event)=} handler
880
 * @return {!jQuery}
881
 */
882
jQuery.prototype.focus = function(arg1, handler) {};
883

    
884
/**
885
 * @param {(function(!jQuery.Event)|Object<string, *>)} arg1
886
 * @param {function(!jQuery.Event)=} handler
887
 * @return {!jQuery}
888
 */
889
jQuery.prototype.focusin = function(arg1, handler) {};
890

    
891
/**
892
 * @param {(function(!jQuery.Event)|Object<string, *>)} arg1
893
 * @param {function(!jQuery.Event)=} handler
894
 * @return {!jQuery}
895
 */
896
jQuery.prototype.focusout = function(arg1, handler) {};
897

    
898
/** @const */
899
jQuery.fx = {};
900

    
901
/** @type {number} */
902
jQuery.fx.interval;
903

    
904
/** @type {boolean} */
905
jQuery.fx.off;
906

    
907
/**
908
 * @param {string} url
909
 * @param {(Object<string,*>|string|
910
 *     function(string,string,jQuery.jqXHR))=} data
911
 * @param {(function(string,string,jQuery.jqXHR)|string)=} success
912
 * @param {string=} dataType
913
 * @return {!jQuery.jqXHR}
914
 */
915
jQuery.get = function(url, data, success, dataType) {};
916

    
917
/**
918
 * @param {number=} index
919
 * @return {(Element|Array<Element>)}
920
 * @nosideeffects
921
 */
922
jQuery.prototype.get = function(index) {};
923

    
924
/**
925
 * @param {string} url
926
 * @param {(Object<string,*>|
927
 *     function(Object<string,*>,string,jQuery.jqXHR))=} data
928
 * @param {function(Object<string,*>,string,jQuery.jqXHR)=} success
929
 * @return {!jQuery.jqXHR}
930
 * @see http://api.jquery.com/jquery.getjson/#jQuery-getJSON-url-data-success
931
 */
932
jQuery.getJSON = function(url, data, success) {};
933

    
934
/**
935
 * @param {string} url
936
 * @param {function(Node,string,jQuery.jqXHR)=} success
937
 * @return {!jQuery.jqXHR}
938
 */
939
jQuery.getScript = function(url, success) {};
940

    
941
/** @param {string} code */
942
jQuery.globalEval = function(code) {};
943

    
944
/**
945
 * @template T
946
 * @param {!Array<T>} arr
947
 * @param {function(*,number)} fnc
948
 * @param {boolean=} invert
949
 * @return {!Array<T>}
950
 */
951
jQuery.grep = function(arr, fnc, invert) {};
952

    
953
/**
954
 * @param {(string|Element)} arg1
955
 * @return {!jQuery}
956
 * @nosideeffects
957
 */
958
jQuery.prototype.has = function(arg1) {};
959

    
960
/**
961
 * @param {string} className
962
 * @return {boolean}
963
 * @nosideeffects
964
 */
965
jQuery.prototype.hasClass = function(className) {};
966

    
967
/**
968
 * @param {!Element} elem
969
 * @return {boolean}
970
 * @nosideeffects
971
 */
972
jQuery.hasData = function(elem) {};
973

    
974
/**
975
 * @param {(string|number|function(number,number))=} arg1
976
 * @return {(number|!jQuery)}
977
 */
978
jQuery.prototype.height = function(arg1) {};
979

    
980
/**
981
 * @param {(string|number|function())=} duration
982
 * @param {(function()|string)=} arg2
983
 * @param {function()=} callback
984
 * @return {!jQuery}
985
 */
986
jQuery.prototype.hide = function(duration, arg2, callback) {};
987

    
988
/** @param {boolean} hold */
989
jQuery.holdReady = function(hold) {};
990

    
991
/**
992
 * @param {function(!jQuery.Event)} arg1
993
 * @param {function(!jQuery.Event)=} handlerOut
994
 * @return {!jQuery}
995
 */
996
jQuery.prototype.hover = function(arg1, handlerOut) {};
997

    
998
/**
999
 * @param {(string|function(number,string))=} arg1
1000
 * @return {(string|!jQuery)}
1001
 */
1002
jQuery.prototype.html = function(arg1) {};
1003

    
1004
/**
1005
 * @param {*} value
1006
 * @param {Array<*>} arr
1007
 * @param {number=} fromIndex
1008
 * @return {number}
1009
 * @nosideeffects
1010
 */
1011
jQuery.inArray = function(value, arr, fromIndex) {};
1012

    
1013
/**
1014
 * @param {(jQuerySelector|Element|jQuery)=} arg1
1015
 * @return {number}
1016
 * @nosideeffects
1017
 */
1018
jQuery.prototype.index = function(arg1) {};
1019

    
1020
/**
1021
 * @return {number}
1022
 * @nosideeffects
1023
 */
1024
jQuery.prototype.innerHeight = function() {};
1025

    
1026
/**
1027
 * @return {number}
1028
 * @nosideeffects
1029
 */
1030
jQuery.prototype.innerWidth = function() {};
1031

    
1032
/**
1033
 * @param {(jQuerySelector|Element|jQuery)} target
1034
 * @return {!jQuery}
1035
 */
1036
jQuery.prototype.insertAfter = function(target) {};
1037

    
1038
/**
1039
 * @param {(jQuerySelector|Element|jQuery)} target
1040
 * @return {!jQuery}
1041
 */
1042
jQuery.prototype.insertBefore = function(target) {};
1043

    
1044
/**
1045
 * @param {(jQuerySelector|function(number)|jQuery|Element)} arg1
1046
 * @return {boolean}
1047
 */
1048
jQuery.prototype.is = function(arg1) {};
1049

    
1050
/**
1051
 * @param {*} obj
1052
 * @return {boolean}
1053
 * @nosideeffects
1054
 */
1055
jQuery.isArray = function(obj) {};
1056

    
1057
/**
1058
 * @param {Object} obj
1059
 * @return {boolean}
1060
 * @nosideeffects
1061
 */
1062
jQuery.isEmptyObject = function(obj) {};
1063

    
1064
/**
1065
 * @param {*} obj
1066
 * @return {boolean}
1067
 * @nosideeffects
1068
 */
1069
jQuery.isFunction = function(obj) {};
1070

    
1071
/**
1072
 * @param {*} value
1073
 * @return {boolean}
1074
 * @nosideeffects
1075
 */
1076
jQuery.isNumeric = function(value) {};
1077

    
1078
/**
1079
 * @param {*} obj
1080
 * @return {boolean}
1081
 * @nosideeffects
1082
 */
1083
jQuery.isPlainObject = function(obj) {};
1084

    
1085
/**
1086
 * @param {*} obj
1087
 * @return {boolean}
1088
 * @nosideeffects
1089
 */
1090
jQuery.isWindow = function(obj) {};
1091

    
1092
/**
1093
 * @param {Element} node
1094
 * @return {boolean}
1095
 * @nosideeffects
1096
 */
1097
jQuery.isXMLDoc = function(node) {};
1098

    
1099
/** @type {string} */
1100
jQuery.prototype.jquery;
1101

    
1102
/**
1103
 * @constructor
1104
 * @extends {XMLHttpRequest}
1105
 * @implements {jQuery.Promise}
1106
 * @private
1107
 * @see http://api.jquery.com/jQuery.ajax/#jqXHR
1108
 */
1109
jQuery.jqXHR = function () {};
1110

    
1111
/**
1112
 * @override
1113
 * @param {jQueryCallback} alwaysCallbacks
1114
 * @param {jQueryCallback=} alwaysCallbacks2
1115
 * @return {!jQuery.jqXHR}
1116
 */
1117
jQuery.jqXHR.prototype.always =
1118
    function(alwaysCallbacks, alwaysCallbacks2) {};
1119

    
1120
/**
1121
 * @deprecated
1122
 * @param {function()} callback
1123
 * @return {!jQuery.jqXHR}
1124
*/
1125
jQuery.jqXHR.prototype.complete = function (callback) {};
1126

    
1127
/**
1128
 * @override
1129
 * @param {jQueryCallback} doneCallbacks
1130
 * @return {!jQuery.jqXHR}
1131
 */
1132
jQuery.jqXHR.prototype.done = function(doneCallbacks) {};
1133

    
1134
/**
1135
 * @deprecated
1136
 * @param {function()} callback
1137
 * @return {!jQuery.jqXHR}
1138
*/
1139
jQuery.jqXHR.prototype.error = function (callback) {};
1140

    
1141
/**
1142
 * @override
1143
 * @param {jQueryCallback} failCallbacks
1144
 * @return {!jQuery.jqXHR}
1145
 */
1146
jQuery.jqXHR.prototype.fail = function(failCallbacks) {};
1147

    
1148
/**
1149
 * @deprecated
1150
 * @override
1151
 */
1152
jQuery.jqXHR.prototype.onreadystatechange = function (callback) {};
1153

    
1154
/**
1155
 * @override
1156
 * @param {function()=} doneFilter
1157
 * @param {function()=} failFilter
1158
 * @param {function()=} progressFilter
1159
 * @return {!jQuery.jqXHR}
1160
 */
1161
jQuery.jqXHR.prototype.pipe =
1162
    function(doneFilter, failFilter, progressFilter) {};
1163

    
1164
/**
1165
 * @deprecated
1166
 * @param {function()} callback
1167
 * @return {!jQuery.jqXHR}
1168
*/
1169
jQuery.jqXHR.prototype.success = function (callback) {};
1170

    
1171
/**
1172
 * @override
1173
 * @param {jQueryCallback} doneCallbacks
1174
 * @param {jQueryCallback=} failCallbacks
1175
 * @param {jQueryCallback=} progressCallbacks
1176
 * @return {!jQuery.jqXHR}
1177
 */
1178
jQuery.jqXHR.prototype.then =
1179
    function(doneCallbacks, failCallbacks, progressCallbacks) {};
1180

    
1181
/**
1182
 * @param {(function(!jQuery.Event)|Object<string, *>)=} arg1
1183
 * @param {function(!jQuery.Event)=} handler
1184
 * @return {!jQuery}
1185
 */
1186
jQuery.prototype.keydown = function(arg1, handler) {};
1187

    
1188
/**
1189
 * @param {(function(!jQuery.Event)|Object<string, *>)=} arg1
1190
 * @param {function(!jQuery.Event)=} handler
1191
 * @return {!jQuery}
1192
 */
1193
jQuery.prototype.keypress = function(arg1, handler) {};
1194

    
1195
/**
1196
 * @param {(function(!jQuery.Event)|Object<string, *>)=} arg1
1197
 * @param {function(!jQuery.Event)=} handler
1198
 * @return {!jQuery}
1199
 */
1200
jQuery.prototype.keyup = function(arg1, handler) {};
1201

    
1202
/**
1203
 * @return {!jQuery}
1204
 * @nosideeffects
1205
 */
1206
jQuery.prototype.last = function() {};
1207

    
1208
/** @type {number} */
1209
jQuery.prototype.length;
1210

    
1211
/**
1212
 * @deprecated Please avoid the document loading Event invocation of
1213
 *     .load() and use .on( "load", handler ) instead. (The AJAX
1214
 *     module invocation signature is OK.)
1215
 * @param {(function(!jQuery.Event)|Object<string, *>|string)} arg1
1216
 * @param {(function(!jQuery.Event)|Object<string,*>|string)=} arg2
1217
 * @param {function(string,string,XMLHttpRequest)=} complete
1218
 * @return {!jQuery}
1219
 */
1220
jQuery.prototype.load = function(arg1, arg2, complete) {};
1221

    
1222
/**
1223
 * @param {*} obj
1224
 * @return {Array<*>}
1225
 * @nosideeffects
1226
 */
1227
jQuery.makeArray = function(obj) {};
1228

    
1229
/**
1230
 * @param {(Array<*>|Object<string, *>)} arg1
1231
 * @param {(function(*,number)|function(*,(string|number)))} callback
1232
 * @return {Array<*>}
1233
 */
1234
jQuery.map = function(arg1, callback) {};
1235

    
1236
/**
1237
 * @param {function(number,Element)} callback
1238
 * @return {!jQuery}
1239
 */
1240
jQuery.prototype.map = function(callback) {};
1241

    
1242
/**
1243
 * @param {Array<*>} first
1244
 * @param {Array<*>} second
1245
 * @return {Array<*>}
1246
 */
1247
jQuery.merge = function(first, second) {};
1248

    
1249
/**
1250
 * @param {(function(!jQuery.Event)|Object<string, *>)=} arg1
1251
 * @param {function(!jQuery.Event)=} handler
1252
 * @return {!jQuery}
1253
 */
1254
jQuery.prototype.mousedown = function(arg1, handler) {};
1255

    
1256
/**
1257
 * @param {(function(!jQuery.Event)|Object<string, *>)=} arg1
1258
 * @param {function(!jQuery.Event)=} handler
1259
 * @return {!jQuery}
1260
 */
1261
jQuery.prototype.mouseenter = function(arg1, handler) {};
1262

    
1263
/**
1264
 * @param {(function(!jQuery.Event)|Object<string, *>)=} arg1
1265
 * @param {function(!jQuery.Event)=} handler
1266
 * @return {!jQuery}
1267
 */
1268
jQuery.prototype.mouseleave = function(arg1, handler) {};
1269

    
1270
/**
1271
 * @param {(function(!jQuery.Event)|Object<string, *>)=} arg1
1272
 * @param {function(!jQuery.Event)=} handler
1273
 * @return {!jQuery}
1274
 */
1275
jQuery.prototype.mousemove = function(arg1, handler) {};
1276

    
1277
/**
1278
 * @param {(function(!jQuery.Event)|Object<string, *>)=} arg1
1279
 * @param {function(!jQuery.Event)=} handler
1280
 * @return {!jQuery}
1281
 */
1282
jQuery.prototype.mouseout = function(arg1, handler) {};
1283

    
1284
/**
1285
 * @param {(function(!jQuery.Event)|Object<string, *>)=} arg1
1286
 * @param {function(!jQuery.Event)=} handler
1287
 * @return {!jQuery}
1288
 */
1289
jQuery.prototype.mouseover = function(arg1, handler) {};
1290

    
1291
/**
1292
 * @param {(function(!jQuery.Event)|Object<string, *>)=} arg1
1293
 * @param {function(!jQuery.Event)=} handler
1294
 * @return {!jQuery}
1295
 */
1296
jQuery.prototype.mouseup = function(arg1, handler) {};
1297

    
1298
/**
1299
 * @param {jQuerySelector=} selector
1300
 * @return {!jQuery}
1301
 * @nosideeffects
1302
 */
1303
jQuery.prototype.next = function(selector) {};
1304

    
1305
/**
1306
 * @param {string=} selector
1307
 * @return {!jQuery}
1308
 * @nosideeffects
1309
 */
1310
jQuery.prototype.nextAll = function(selector) {};
1311

    
1312
/**
1313
 * @param {(jQuerySelector|Element)=} arg1
1314
 * @param {jQuerySelector=} filter
1315
 * @return {!jQuery}
1316
 * @nosideeffects
1317
 */
1318
jQuery.prototype.nextUntil = function(arg1, filter) {};
1319

    
1320
/**
1321
 * @param {boolean=} removeAll
1322
 * @return {Object}
1323
 */
1324
jQuery.noConflict = function(removeAll) {};
1325

    
1326
/**
1327
 * @return {undefined}
1328
 * @nosideeffects
1329
 */
1330
jQuery.noop = function() {};
1331

    
1332
/**
1333
 * @param {(jQuerySelector|Array<Element>|function(this:Element,number,Element=):boolean|jQuery)} arg1
1334
 * @return {!jQuery}
1335
 */
1336
jQuery.prototype.not = function(arg1) {};
1337

    
1338
/**
1339
 * @return {number}
1340
 * @nosideeffects
1341
 */
1342
jQuery.now = function() {};
1343

    
1344
/**
1345
 * @param {(string|Object<string,*>)=} arg1
1346
 * @param {(string|function(!jQuery.Event))=} selector
1347
 * @param {function(!jQuery.Event)=} handler
1348
 * @return {!jQuery}
1349
 */
1350
jQuery.prototype.off = function(arg1, selector, handler) {};
1351

    
1352
/**
1353
 * @param {({left:number,top:number}|
1354
 *     function(number,{top:number,left:number}))=} arg1
1355
 * @return {({left:number,top:number}|!jQuery)}
1356
 */
1357
jQuery.prototype.offset = function(arg1) {};
1358

    
1359
/**
1360
 * @return {!jQuery}
1361
 * @nosideeffects
1362
 */
1363
jQuery.prototype.offsetParent = function() {};
1364

    
1365
/**
1366
 * @param {(string|Object<string,*>)} arg1
1367
 * @param {*=} selector
1368
 * @param {*=} data
1369
 * @param {function(!jQuery.Event)=} handler
1370
 * @return {!jQuery}
1371
 */
1372
jQuery.prototype.on = function(arg1, selector, data, handler) {};
1373

    
1374
/**
1375
 * @param {(string|Object<string,*>)} arg1
1376
 * @param {*=} arg2
1377
 * @param {*=} arg3
1378
 * @param {function(!jQuery.Event)=} handler
1379
 * @return {!jQuery}
1380
 */
1381
jQuery.prototype.one = function(arg1, arg2, arg3, handler) {};
1382

    
1383
/**
1384
 * @param {boolean=} includeMargin
1385
 * @return {number}
1386
 * @nosideeffects
1387
 */
1388
jQuery.prototype.outerHeight = function(includeMargin) {};
1389

    
1390
/**
1391
 * @param {boolean=} includeMargin
1392
 * @return {number}
1393
 * @nosideeffects
1394
 */
1395
jQuery.prototype.outerWidth = function(includeMargin) {};
1396

    
1397
/**
1398
 * @param {(Object<string, *>|Array<Object<string, *>>)} obj
1399
 * @param {boolean=} traditional
1400
 * @return {string}
1401
 */
1402
jQuery.param = function(obj, traditional) {};
1403

    
1404
/**
1405
 * @param {jQuerySelector=} selector
1406
 * @return {!jQuery}
1407
 * @nosideeffects
1408
 */
1409
jQuery.prototype.parent = function(selector) {};
1410

    
1411
/**
1412
 * @param {jQuerySelector=} selector
1413
 * @return {!jQuery}
1414
 * @nosideeffects
1415
 */
1416
jQuery.prototype.parents = function(selector) {};
1417

    
1418
/**
1419
 * @param {(jQuerySelector|Element)=} arg1
1420
 * @param {jQuerySelector=} filter
1421
 * @return {!jQuery}
1422
 * @nosideeffects
1423
 */
1424
jQuery.prototype.parentsUntil = function(arg1, filter) {};
1425

    
1426
/**
1427
 * @param {string} data
1428
 * @param {(Element|boolean)=} context
1429
 * @param {boolean=} keepScripts
1430
 * @return {Array<Element>}
1431
 */
1432
jQuery.parseHTML = function(data, context, keepScripts) {};
1433

    
1434
/**
1435
 * @param {string} json
1436
 * @return {string|number|Object<string, *>|Array<?>|boolean}
1437
 */
1438
jQuery.parseJSON = function(json) {};
1439

    
1440
/**
1441
 * @param {string} data
1442
 * @return {Document}
1443
 */
1444
jQuery.parseXML = function(data) {};
1445

    
1446
/**
1447
 * @return {{left:number,top:number}}
1448
 * @nosideeffects
1449
 */
1450
jQuery.prototype.position = function() {};
1451

    
1452
/**
1453
 * @param {string} url
1454
 * @param {(Object<string,*>|string|
1455
 *     function(string,string,jQuery.jqXHR))=} data
1456
 * @param {(function(string,string,jQuery.jqXHR)|string|null)=} success
1457
 * @param {string=} dataType
1458
 * @return {!jQuery.jqXHR}
1459
 */
1460
jQuery.post = function(url, data, success, dataType) {};
1461
/**
1462
 * @param {(string|Element|jQuery|function(number,string))} arg1
1463
 * @param {(string|Element|jQuery)=} content
1464
 * @return {!jQuery}
1465
 */
1466
jQuery.prototype.prepend = function(arg1, content) {};
1467

    
1468
/**
1469
 * @param {(jQuerySelector|Element|jQuery)} target
1470
 * @return {!jQuery}
1471
 */
1472
jQuery.prototype.prependTo = function(target) {};
1473

    
1474
/**
1475
 * @param {jQuerySelector=} selector
1476
 * @return {!jQuery}
1477
 * @nosideeffects
1478
 */
1479
jQuery.prototype.prev = function(selector) {};
1480

    
1481
/**
1482
 * @param {jQuerySelector=} selector
1483
 * @return {!jQuery}
1484
 * @nosideeffects
1485
 */
1486
jQuery.prototype.prevAll = function(selector) {};
1487

    
1488
/**
1489
 * @param {(jQuerySelector|Element)=} arg1
1490
 * @param {jQuerySelector=} filter
1491
 * @return {!jQuery}
1492
 * @nosideeffects
1493
 */
1494
jQuery.prototype.prevUntil = function(arg1, filter) {};
1495

    
1496
/**
1497
 * @param {(string|Object)=} type
1498
 * @param {Object=} target
1499
 * @return {!jQuery.Promise}
1500
 */
1501
jQuery.prototype.promise = function(type, target) {};
1502

    
1503
/**
1504
 * @interface
1505
 * @private
1506
 * @see http://api.jquery.com/Types/#Promise
1507
 */
1508
jQuery.Promise = function () {};
1509

    
1510
/**
1511
 * @param {jQueryCallback} alwaysCallbacks
1512
 * @param {jQueryCallback=} alwaysCallbacks2
1513
 * @return {!jQuery.Promise}
1514
 */
1515
jQuery.Promise.prototype.always =
1516
    function(alwaysCallbacks, alwaysCallbacks2) {};
1517

    
1518
/**
1519
 * @param {jQueryCallback} doneCallbacks
1520
 * @return {!jQuery.Promise}
1521
 */
1522
jQuery.Promise.prototype.done = function(doneCallbacks) {};
1523

    
1524
/**
1525
 * @param {jQueryCallback} failCallbacks
1526
 * @return {!jQuery.Promise}
1527
 */
1528
jQuery.Promise.prototype.fail = function(failCallbacks) {};
1529

    
1530
/**
1531
 * @param {function()=} doneFilter
1532
 * @param {function()=} failFilter
1533
 * @param {function()=} progressFilter
1534
 * @return {!jQuery.Promise}
1535
 */
1536
jQuery.Promise.prototype.pipe =
1537
    function(doneFilter, failFilter, progressFilter) {};
1538

    
1539
/**
1540
 * @param {jQueryCallback} doneCallbacks
1541
 * @param {jQueryCallback=} failCallbacks
1542
 * @param {jQueryCallback=} progressCallbacks
1543
 * @return {!jQuery.Promise}
1544
 */
1545
jQuery.Promise.prototype.then =
1546
    function(doneCallbacks, failCallbacks, progressCallbacks) {};
1547

    
1548
/**
1549
 * @param {(string|Object<string,*>)} arg1
1550
 * @param {(string|number|boolean|function(number,String))=} arg2
1551
 * @return {(string|boolean|!jQuery)}
1552
 */
1553
jQuery.prototype.prop = function(arg1, arg2) {};
1554

    
1555
/**
1556
 * @param {...*} var_args
1557
 * @return {function()}
1558
 */
1559
jQuery.proxy = function(var_args) {};
1560

    
1561
/**
1562
 * @param {Array<Element>} elements
1563
 * @param {string=} name
1564
 * @param {Array<*>=} args
1565
 * @return {!jQuery}
1566
 */
1567
jQuery.prototype.pushStack = function(elements, name, args) {};
1568

    
1569
/**
1570
 * @param {(string|Array<function()>|function(function()))=} queueName
1571
 * @param {(Array<function()>|function(function()))=} arg2
1572
 * @return {(Array<Element>|!jQuery)}
1573
 */
1574
jQuery.prototype.queue = function(queueName, arg2) {};
1575

    
1576
/**
1577
 * @param {Element} elem
1578
 * @param {string=} queueName
1579
 * @param {(Array<function()>|function())=} arg3
1580
 * @return {(Array<Element>|!jQuery)}
1581
 */
1582
jQuery.queue = function(elem, queueName, arg3) {};
1583

    
1584
/**
1585
 * @param {function()} handler
1586
 * @return {!jQuery}
1587
 */
1588
jQuery.prototype.ready = function(handler) {};
1589

    
1590
/**
1591
 * @param {string=} selector
1592
 * @return {!jQuery}
1593
 */
1594
jQuery.prototype.remove = function(selector) {};
1595

    
1596
/**
1597
 * @param {string} attributeName
1598
 * @return {!jQuery}
1599
 */
1600
jQuery.prototype.removeAttr = function(attributeName) {};
1601

    
1602
/**
1603
 * @param {(string|function(number,string))=} arg1
1604
 * @return {!jQuery}
1605
 */
1606
jQuery.prototype.removeClass = function(arg1) {};
1607

    
1608
/**
1609
 * @param {(string|Array<string>)=} arg1
1610
 * @return {!jQuery}
1611
 */
1612
jQuery.prototype.removeData = function(arg1) {};
1613

    
1614
/**
1615
 * @param {Element} elem
1616
 * @param {string=} name
1617
 * @return {!jQuery}
1618
 */
1619
jQuery.removeData = function(elem, name) {};
1620

    
1621
/**
1622
 * @param {string} propertyName
1623
 * @return {!jQuery}
1624
 */
1625
jQuery.prototype.removeProp = function(propertyName) {};
1626

    
1627
/**
1628
 * @param {jQuerySelector} target
1629
 * @return {!jQuery}
1630
 */
1631
jQuery.prototype.replaceAll = function(target) {};
1632

    
1633
/**
1634
 * @param {(string|Element|jQuery|function())} arg1
1635
 * @return {!jQuery}
1636
 */
1637
jQuery.prototype.replaceWith = function(arg1) {};
1638

    
1639
/**
1640
 * @param {(function(!jQuery.Event)|Object<string, *>)=} arg1
1641
 * @param {function(!jQuery.Event)=} handler
1642
 * @return {!jQuery}
1643
 */
1644
jQuery.prototype.resize = function(arg1, handler) {};
1645

    
1646
/**
1647
 * @param {(function(!jQuery.Event)|Object<string, *>)=} arg1
1648
 * @param {function(!jQuery.Event)=} handler
1649
 * @return {!jQuery}
1650
 */
1651
jQuery.prototype.scroll = function(arg1, handler) {};
1652

    
1653
/**
1654
 * @param {number=} value
1655
 * @return {(number|!jQuery)}
1656
 */
1657
jQuery.prototype.scrollLeft = function(value) {};
1658

    
1659
/**
1660
 * @param {number=} value
1661
 * @return {(number|!jQuery)}
1662
 */
1663
jQuery.prototype.scrollTop = function(value) {};
1664

    
1665
/**
1666
 * @param {(function(!jQuery.Event)|Object<string, *>)=} arg1
1667
 * @param {function(!jQuery.Event)=} handler
1668
 * @return {!jQuery}
1669
 */
1670
jQuery.prototype.select = function(arg1, handler) {};
1671

    
1672
/**
1673
 * @return {string}
1674
 * @nosideeffects
1675
 */
1676
jQuery.prototype.serialize = function() {};
1677

    
1678
/**
1679
 * @return {Array<Object<string, *>>}
1680
 * @nosideeffects
1681
 */
1682
jQuery.prototype.serializeArray = function() {};
1683

    
1684
/**
1685
 * @param {(string|number|function())=} duration
1686
 * @param {(function()|string)=} arg2
1687
 * @param {function()=} callback
1688
 * @return {!jQuery}
1689
 */
1690
jQuery.prototype.show = function(duration, arg2, callback) {};
1691

    
1692
/**
1693
 * @param {jQuerySelector=} selector
1694
 * @return {!jQuery}
1695
 * @nosideeffects
1696
 */
1697
jQuery.prototype.siblings = function(selector) {};
1698

    
1699
/**
1700
 * @deprecated Please use the .length property instead.
1701
 * @return {number}
1702
 * @nosideeffects
1703
 */
1704
jQuery.prototype.size = function() {};
1705

    
1706
/**
1707
 * @param {number} start
1708
 * @param {number=} end
1709
 * @return {!jQuery}
1710
 * @nosideeffects
1711
 */
1712
jQuery.prototype.slice = function(start, end) {};
1713

    
1714
/**
1715
 * @param {(Object<string,*>|string|number)=} optionsOrDuration
1716
 * @param {(function()|string)=} completeOrEasing
1717
 * @param {function()=} complete
1718
 * @return {!jQuery}
1719
 */
1720
jQuery.prototype.slideDown =
1721
    function(optionsOrDuration, completeOrEasing, complete) {};
1722

    
1723
/**
1724
 * @param {(Object<string,*>|string|number)=} optionsOrDuration
1725
 * @param {(function()|string)=} completeOrEasing
1726
 * @param {function()=} complete
1727
 * @return {!jQuery}
1728
 */
1729
jQuery.prototype.slideToggle =
1730
    function(optionsOrDuration, completeOrEasing, complete) {};
1731

    
1732
/**
1733
 * @param {(Object<string,*>|string|number)=} optionsOrDuration
1734
 * @param {(function()|string)=} completeOrEasing
1735
 * @param {function()=} complete
1736
 * @return {!jQuery}
1737
 */
1738
jQuery.prototype.slideUp =
1739
    function(optionsOrDuration, completeOrEasing, complete) {};
1740

    
1741
/**
1742
 * @param {(boolean|string)=} arg1
1743
 * @param {boolean=} arg2
1744
 * @param {boolean=} jumpToEnd
1745
 * @return {!jQuery}
1746
 */
1747
jQuery.prototype.stop = function(arg1, arg2, jumpToEnd) {};
1748

    
1749
/**
1750
 * @param {(function(!jQuery.Event)|Object<string, *>)=} arg1
1751
 * @param {function(!jQuery.Event)=} handler
1752
 * @return {!jQuery}
1753
 */
1754
jQuery.prototype.submit = function(arg1, handler) {};
1755

    
1756
/**
1757
 * @type {jQuerySupport|Object<string, *>}
1758
 * @deprecated Please try to use feature detection instead.
1759
 */
1760
jQuery.support;
1761

    
1762
/** @record */
1763
function jQuerySupport() {};
1764

    
1765
/**
1766
 * @deprecated Please try to use feature detection instead.
1767
 * @type {boolean}
1768
 */
1769
jQuerySupport.prototype.boxModel;
1770

    
1771
/** @type {boolean} */
1772
jQuerySupport.prototype.changeBubbles;
1773

    
1774
/** @type {boolean} */
1775
jQuerySupport.prototype.cors;
1776

    
1777
/** @type {boolean} */
1778
jQuerySupport.prototype.cssFloat;
1779

    
1780
/** @type {boolean} */
1781
jQuerySupport.prototype.hrefNormalized;
1782

    
1783
/** @type {boolean} */
1784
jQuerySupport.prototype.htmlSerialize;
1785

    
1786
/** @type {boolean} */
1787
jQuerySupport.prototype.leadingWhitespace;
1788

    
1789
/** @type {boolean} */
1790
jQuerySupport.prototype.noCloneEvent;
1791

    
1792
/** @type {boolean} */
1793
jQuerySupport.prototype.opacity;
1794

    
1795
/** @type {boolean} */
1796
jQuerySupport.prototype.style;
1797

    
1798
/** @type {boolean} */
1799
jQuerySupport.prototype.submitBubbles;
1800

    
1801
/** @type {boolean} */
1802
jQuerySupport.prototype.tbody;
1803

    
1804
/**
1805
 * @param {(string|number|boolean|function(number,string))=} arg1
1806
 * @return {(string|!jQuery)}
1807
 */
1808
jQuery.prototype.text = function(arg1) {};
1809

    
1810
/**
1811
 * @return {Array<Element>}
1812
 * @nosideeffects
1813
 */
1814
jQuery.prototype.toArray = function() {};
1815

    
1816
/**
1817
 * Refers to the method from the Effects category. There used to be a toggle
1818
 * method on the Events category which was removed starting version 1.9.
1819
 * @param {(number|string|Object<string,*>|boolean)=} arg1
1820
 * @param {(function()|string)=} arg2
1821
 * @param {function()=} arg3
1822
 * @return {!jQuery}
1823
 */
1824
jQuery.prototype.toggle = function(arg1, arg2, arg3) {};
1825

    
1826
/**
1827
 * @param {(string|boolean|function(number,string,boolean))=} arg1
1828
 * @param {boolean=} flag
1829
 * @return {!jQuery}
1830
 */
1831
jQuery.prototype.toggleClass = function(arg1, flag) {};
1832

    
1833
/**
1834
 * @param {(string|jQuery.Event)} arg1
1835
 * @param {...*} var_args
1836
 * @return {!jQuery}
1837
 */
1838
jQuery.prototype.trigger = function(arg1, var_args) {};
1839

    
1840
/**
1841
 * @param {string|jQuery.Event} eventType
1842
 * @param {Array<*>=} extraParameters
1843
 * @return {*}
1844
 */
1845
jQuery.prototype.triggerHandler = function(eventType, extraParameters) {};
1846

    
1847
/**
1848
 * @param {string} str
1849
 * @return {string}
1850
 * @nosideeffects
1851
 */
1852
jQuery.trim = function(str) {};
1853

    
1854
/**
1855
 * @param {*} obj
1856
 * @return {string}
1857
 * @nosideeffects
1858
 */
1859
jQuery.type = function(obj) {};
1860

    
1861
/**
1862
 * @param {(string|function(!jQuery.Event)|jQuery.Event)=} arg1
1863
 * @param {(function(!jQuery.Event)|boolean)=} arg2
1864
 * @return {!jQuery}
1865
 */
1866
jQuery.prototype.unbind = function(arg1, arg2) {};
1867

    
1868
/**
1869
 * @param {string=} arg1
1870
 * @param {(string|Object<string,*>)=} arg2
1871
 * @param {function(!jQuery.Event)=} handler
1872
 * @return {!jQuery}
1873
 */
1874
jQuery.prototype.undelegate = function(arg1, arg2, handler) {};
1875

    
1876
/**
1877
 * @param {Array<Element>} arr
1878
 * @return {Array<Element>}
1879
 */
1880
jQuery.unique = function(arr) {};
1881

    
1882
/**
1883
 * @deprecated Please use .on( "unload", handler ) instead.
1884
 * @param {(function(!jQuery.Event)|Object<string, *>)} arg1
1885
 * @param {function(!jQuery.Event)=} handler
1886
 * @return {!jQuery}
1887
 */
1888
jQuery.prototype.unload = function(arg1, handler) {};
1889

    
1890
/** @return {!jQuery} */
1891
jQuery.prototype.unwrap = function() {};
1892

    
1893
/**
1894
 * @param {(string|Array<string>|function(number,*))=} arg1
1895
 * @return {(string|number|Array<string>|!jQuery)}
1896
 */
1897
jQuery.prototype.val = function(arg1) {};
1898

    
1899
/**
1900
 * Note: The official documentation (https://api.jquery.com/jQuery.when/) says
1901
 * jQuery.when accepts deferreds, but it actually accepts any type, e.g.:
1902
 *
1903
 * jQuery.when(jQuery.ready, jQuery.ajax(''), jQuery('#my-element'), 1)
1904
 *
1905
 * If an argument is not an "observable" (a promise-like object) it is wrapped
1906
 * into a promise.
1907
 * @param {*} deferred
1908
 * @param {...*} deferreds
1909
 * @return {!jQuery.Promise}
1910
 */
1911
jQuery.when = function(deferred, deferreds) {};
1912

    
1913
/**
1914
 * @param {(string|number|function(number,number))=} arg1
1915
 * @return {(number|!jQuery)}
1916
 */
1917
jQuery.prototype.width = function(arg1) {};
1918

    
1919
/**
1920
 * @param {(string|jQuerySelector|Element|jQuery|function(number))} arg1
1921
 * @return {!jQuery}
1922
 */
1923
jQuery.prototype.wrap = function(arg1) {};
1924

    
1925
/**
1926
 * @param {(string|jQuerySelector|Element|jQuery)} wrappingElement
1927
 * @return {!jQuery}
1928
 */
1929
jQuery.prototype.wrapAll = function(wrappingElement) {};
1930

    
1931
/**
1932
 * @param {(string|jQuerySelector|Element|jQuery|function(number))} arg1
1933
 * @return {!jQuery}
1934
 */
1935
jQuery.prototype.wrapInner = function(arg1) {};
    (1-1/1)