diff --git a/externs/closure-compiler.js b/externs/closure-compiler.js index 9ee9e8ade7..763c409f16 100644 --- a/externs/closure-compiler.js +++ b/externs/closure-compiler.js @@ -7,35 +7,3 @@ * * @externs */ - -/** @type {number} */ -Touch.prototype.force; - - -/** @type {number} */ -Touch.prototype.radiusX; - - -/** @type {number} */ -Touch.prototype.radiusY; - - -/** @type {number} */ -Touch.prototype.webkitForce; - - -/** @type {number} */ -Touch.prototype.webkitRadiusX; - - -/** @type {number} */ -Touch.prototype.webkitRadiusY; - - -// see https://github.com/google/closure-compiler/pull/1139 - -/** - * @type {string} - * @see http://www.w3.org/TR/pointerevents/#the-touch-action-css-property - */ -CSSProperties.prototype.touchAction; diff --git a/externs/jquery-1.9.js b/externs/jquery-1.9.js index 38d21c0393..49975b1c46 100644 --- a/externs/jquery-1.9.js +++ b/externs/jquery-1.9.js @@ -15,7 +15,11 @@ */ /** - * @fileoverview Externs for jQuery 1.9.1 + * @fileoverview Externs for jQuery 1.9 - 1.11 & 2.0 - 2.1 + * + * The jQuery API is identical for the 1.9.x+ and 2.0+ branches. In addition, + * the API has not changed in releases since that date. These externs are valid + * for all jQuery releases since 1.9 and 2.0. * * Note that some functions use different return types depending on the number * of parameters passed in. In these cases, you may need to annotate the type @@ -28,32 +32,32 @@ */ /** - * @typedef {(Window|Document|Element|Array.|string|jQuery| + * @typedef {(Window|Document|Element|Array|string|jQuery| * NodeList)} */ var jQuerySelector; -/** @typedef {function(...)|Array.} */ +/** @typedef {function(...)|Array} */ var jQueryCallback; /** @typedef { { - accepts: (Object.|undefined), + accepts: (Object|undefined), async: (?boolean|undefined), - beforeSend: (function(jQuery.jqXHR, (jQueryAjaxSettings|Object.))|undefined), + beforeSend: (function(jQuery.jqXHR, (jQueryAjaxSettings|Object))|undefined), cache: (?boolean|undefined), complete: (function(jQuery.jqXHR, string)|undefined), - contents: (Object.|undefined), + contents: (Object|undefined), contentType: (?string|undefined), - context: (Object.|jQueryAjaxSettings|undefined), - converters: (Object.|undefined), + context: (Object|jQueryAjaxSettings|undefined), + converters: (Object|undefined), crossDomain: (?boolean|undefined), - data: (Object.|?string|Array.|undefined), - dataFilter: (function(string, string):Object.|undefined), + data: (Object|?string|Array|undefined), + dataFilter: (function(string, string):?|undefined), dataType: (?string|undefined), error: (function(jQuery.jqXHR, string, string)|undefined), global: (?boolean|undefined), - headers: (Object.|undefined), + headers: (Object|undefined), ifModified: (?boolean|undefined), isLocal: (?boolean|undefined), jsonp: (?string|undefined), @@ -62,7 +66,7 @@ var jQueryCallback; password: (?string|undefined), processData: (?boolean|undefined), scriptCharset: (?string|undefined), - statusCode: (Object.|undefined), + statusCode: (Object|undefined), success: (function(?, string, jQuery.jqXHR)|undefined), timeout: (?number|undefined), traditional: (?boolean|undefined), @@ -70,33 +74,27 @@ var jQueryCallback; url: (?string|undefined), username: (?string|undefined), xhr: (function():(ActiveXObject|XMLHttpRequest)|undefined), - xhrFields: (Object.|undefined) + xhrFields: (Object|undefined) }} */ var jQueryAjaxSettings; /** * @constructor - * @param {(jQuerySelector|Element|Object|Array.|jQuery|string| + * @param {(jQuerySelector|Element|Object|Array|jQuery|string| * function())=} arg1 * @param {(Element|jQuery|Document| - * Object.)=} arg2 + * Object)=} arg2 * @return {!jQuery} */ function jQuery(arg1, arg2) {} /** - * @constructor - * @extends {jQuery} - * @param {(jQuerySelector|Element|Object|Array.|jQuery|string| - * function())=} arg1 - * @param {(Element|jQuery|Document| - * Object.)=} arg2 - * @return {!jQuery} + * @const */ -function $(arg1, arg2) {} +var $ = jQuery; /** - * @param {(jQuerySelector|Array.|string|jQuery)} arg1 + * @param {(jQuerySelector|Array|string|jQuery)} arg1 * @param {Element=} context * @return {!jQuery} * @nosideeffects @@ -104,7 +102,7 @@ function $(arg1, arg2) {} jQuery.prototype.add = function(arg1, context) {}; /** - * @param {(jQuerySelector|Array.|string|jQuery)=} arg1 + * @param {(jQuerySelector|Array|string|jQuery)=} arg1 * @return {!jQuery} * @nosideeffects */ @@ -118,85 +116,57 @@ jQuery.prototype.addClass = function(arg1) {}; /** * @param {(string|Element|jQuery|function(number))} arg1 - * @param {(string|Element|Array.|jQuery)=} content + * @param {(string|Element|Array|jQuery)=} content * @return {!jQuery} */ jQuery.prototype.after = function(arg1, content) {}; /** - * @param {(string|jQueryAjaxSettings|Object.)} arg1 - * @param {(jQueryAjaxSettings|Object.)=} settings - * @return {jQuery.jqXHR} + * @param {(string|jQueryAjaxSettings|Object)} arg1 + * @param {(jQueryAjaxSettings|Object)=} settings + * @return {!jQuery.jqXHR} */ jQuery.ajax = function(arg1, settings) {}; /** - * @param {(string|jQueryAjaxSettings|Object.)} arg1 - * @param {(jQueryAjaxSettings|Object.)=} settings - * @return {jQuery.jqXHR} - */ -$.ajax = function(arg1, settings) {}; - -/** - * @param {function(!jQuery.event,XMLHttpRequest,(jQueryAjaxSettings|Object.))} handler + * @param {function(!jQuery.Event,XMLHttpRequest,(jQueryAjaxSettings|Object))} handler * @return {!jQuery} */ jQuery.prototype.ajaxComplete = function(handler) {}; /** - * @param {function(!jQuery.event,jQuery.jqXHR,(jQueryAjaxSettings|Object.),*)} handler + * @param {function(!jQuery.Event,jQuery.jqXHR,(jQueryAjaxSettings|Object),*)} handler * @return {!jQuery} */ jQuery.prototype.ajaxError = function(handler) {}; /** - * @param {(string|function((jQueryAjaxSettings|Object.),(jQueryAjaxSettings|Object.),jQuery.jqXHR))} dataTypes - * @param {function((jQueryAjaxSettings|Object.),(jQueryAjaxSettings|Object.),jQuery.jqXHR)=} handler + * @param {(string|function((jQueryAjaxSettings|Object),(jQueryAjaxSettings|Object),jQuery.jqXHR))} dataTypes + * @param {function((jQueryAjaxSettings|Object),(jQueryAjaxSettings|Object),jQuery.jqXHR)=} handler */ jQuery.ajaxPrefilter = function(dataTypes, handler) {}; /** - * @param {(string|function((jQueryAjaxSettings|Object.),(jQueryAjaxSettings|Object.),jQuery.jqXHR))} dataTypes - * @param {function((jQueryAjaxSettings|Object.),(jQueryAjaxSettings|Object.),jQuery.jqXHR)=} handler - */ -$.ajaxPrefilter = function(dataTypes, handler) {}; - -/** - * @param {function(!jQuery.event,jQuery.jqXHR,(jQueryAjaxSettings|Object.))} handler + * @param {function(!jQuery.Event,jQuery.jqXHR,(jQueryAjaxSettings|Object))} handler * @return {!jQuery} */ jQuery.prototype.ajaxSend = function(handler) {}; -/** @const {jQueryAjaxSettings|Object.} */ +/** @const {jQueryAjaxSettings|Object} */ jQuery.ajaxSettings; -/** @const {jQueryAjaxSettings|Object.} */ -$.ajaxSettings = {}; - -/** @type {Object.} */ +/** @type {Object} */ jQuery.ajaxSettings.flatOptions = {}; -/** @type {Object.} */ -$.ajaxSettings.flatOptions = {}; - /** @type {boolean} */ jQuery.ajaxSettings.processData; -/** @type {boolean} */ -$.ajaxSettings.processData; - -/** @type {Object.} */ +/** @type {Object} */ jQuery.ajaxSettings.responseFields = {}; -/** @type {Object.} */ -$.ajaxSettings.responseFields = {}; - -/** @param {jQueryAjaxSettings|Object.} options */ +/** @param {jQueryAjaxSettings|Object} options */ jQuery.ajaxSetup = function(options) {}; -/** @param {jQueryAjaxSettings|Object.} options */ -$.ajaxSetup = function(options) {}; - /** * @param {function()} handler * @return {!jQuery} @@ -210,7 +180,7 @@ jQuery.prototype.ajaxStart = function(handler) {}; jQuery.prototype.ajaxStop = function(handler) {}; /** - * @param {function(!jQuery.event,XMLHttpRequest,(jQueryAjaxSettings|Object.), ?)} handler + * @param {function(!jQuery.Event,XMLHttpRequest,(jQueryAjaxSettings|Object), ?)} handler * @return {!jQuery} */ jQuery.prototype.ajaxSuccess = function(handler) {}; @@ -223,8 +193,8 @@ jQuery.prototype.ajaxSuccess = function(handler) {}; jQuery.prototype.andSelf = function() {}; /** - * @param {Object.} properties - * @param {(string|number|function()|Object.)=} arg2 + * @param {Object} properties + * @param {(string|number|function()|Object)=} arg2 * @param {(string|function())=} easing * @param {function()=} complete * @return {!jQuery} @@ -232,8 +202,8 @@ jQuery.prototype.andSelf = function() {}; jQuery.prototype.animate = function(properties, arg2, easing, complete) {}; /** - * @param {(string|Element|Array.|jQuery|function(number,string))} arg1 - * @param {...(string|Element|Array.|jQuery)} content + * @param {(string|Element|Array|jQuery|function(number,string))} arg1 + * @param {...(string|Element|Array|jQuery)} content * @return {!jQuery} */ jQuery.prototype.append = function(arg1, content) {}; @@ -245,7 +215,7 @@ jQuery.prototype.append = function(arg1, content) {}; jQuery.prototype.appendTo = function(target) {}; /** - * @param {(string|Object.)} arg1 + * @param {(string|Object)} arg1 * @param {(string|number|boolean|function(number,string))=} arg2 * @return {(string|!jQuery)} */ @@ -253,22 +223,22 @@ jQuery.prototype.attr = function(arg1, arg2) {}; /** * @param {(string|Element|jQuery|function())} arg1 - * @param {(string|Element|Array.|jQuery)=} content + * @param {(string|Element|Array|jQuery)=} content * @return {!jQuery} */ jQuery.prototype.before = function(arg1, content) {}; /** - * @param {(string|Object.)} arg1 - * @param {(Object.|function(!jQuery.event=)|boolean)=} eventData - * @param {(function(!jQuery.event=)|boolean)=} arg3 + * @param {(string|Object)} arg1 + * @param {(Object|function(!jQuery.Event)|boolean)=} eventData + * @param {(function(!jQuery.Event)|boolean)=} arg3 * @return {!jQuery} */ jQuery.prototype.bind = function(arg1, eventData, arg3) {}; /** - * @param {(function(!jQuery.event=)|Object.)=} arg1 - * @param {function(!jQuery.event=)=} handler + * @param {(function(!jQuery.Event)|Object)=} arg1 + * @param {function(!jQuery.Event)=} handler * @return {!jQuery} */ jQuery.prototype.blur = function(arg1, handler) {}; @@ -281,7 +251,7 @@ jQuery.callbacks = function () {}; /** * @param {string=} flags - * @return {jQuery.callbacks} + * @return {!jQuery.callbacks} */ jQuery.Callbacks = function (flags) {}; @@ -320,8 +290,8 @@ jQuery.callbacks.prototype.locked = function() {}; jQuery.callbacks.prototype.remove = function(callbacks) {}; /** - * @param {(function(!jQuery.event=)|Object.)=} arg1 - * @param {function(!jQuery.event=)=} handler + * @param {(function(!jQuery.Event)|Object)=} arg1 + * @param {function(!jQuery.Event)=} handler * @return {!jQuery} */ jQuery.prototype.change = function(arg1, handler) {}; @@ -340,8 +310,8 @@ jQuery.prototype.children = function(selector) {}; jQuery.prototype.clearQueue = function(queueName) {}; /** - * @param {(function(!jQuery.event=)|Object.)=} arg1 - * @param {function(!jQuery.event=)=} handler + * @param {(function(!jQuery.Event)|Object)=} arg1 + * @param {function(!jQuery.Event)=} handler * @return {!jQuery} */ jQuery.prototype.click = function(arg1, handler) {}; @@ -350,7 +320,7 @@ jQuery.prototype.click = function(arg1, handler) {}; * @param {boolean=} withDataAndEvents * @param {boolean=} deepWithDataAndEvents * @return {!jQuery} - * @suppress {checkTypes} see issue 583 + * @suppress {checkTypes} see https://code.google.com/p/closure-compiler/issues/detail?id=583 */ jQuery.prototype.clone = function(withDataAndEvents, deepWithDataAndEvents) {}; @@ -369,13 +339,6 @@ jQuery.prototype.closest = function(arg1, context) {}; */ jQuery.contains = function(container, contained) {}; -/** - * @param {Element} container - * @param {Element} contained - * @return {boolean} - */ -$.contains = function(container, contained) {}; - /** * @return {!jQuery} * @nosideeffects @@ -386,18 +349,15 @@ jQuery.prototype.contents = function() {}; jQuery.prototype.context; /** - * @param {(string|Object.)} arg1 + * @param {(string|Object)} arg1 * @param {(string|number|function(number,*))=} arg2 * @return {(string|!jQuery)} */ jQuery.prototype.css = function(arg1, arg2) {}; -/** @type {Object.} */ +/** @type {Object} */ jQuery.cssHooks; -/** @type {Object.} */ -$.cssHooks; - /** * @param {Element} elem * @param {string=} key @@ -407,23 +367,15 @@ $.cssHooks; jQuery.data = function(elem, key, value) {}; /** - * @param {(string|Object.)=} arg1 + * @param {(string|Object)=} arg1 * @param {*=} value * @return {*} */ jQuery.prototype.data = function(arg1, value) {}; /** - * @param {Element} elem - * @param {string=} key - * @param {*=} value - * @return {*} - */ -$.data = function(elem, key, value) {}; - -/** - * @param {(function(!jQuery.event=)|Object.)=} arg1 - * @param {function(!jQuery.event=)=} handler + * @param {(function(!jQuery.Event)|Object)=} arg1 + * @param {function(!jQuery.Event)=} handler * @return {!jQuery} */ jQuery.prototype.dblclick = function(arg1, handler) {}; @@ -440,31 +392,15 @@ jQuery.deferred = function(opt_fn) {}; * @constructor * @extends {jQuery.deferred} * @param {function()=} opt_fn - * @return {jQuery.Deferred} + * @return {!jQuery.Deferred} */ jQuery.Deferred = function(opt_fn) {}; -/** - * @constructor - * @extends {jQuery.deferred} - * @param {function()=} opt_fn - * @see http://api.jquery.com/category/deferred-object/ - */ -$.deferred = function(opt_fn) {}; - -/** - * @constructor - * @extends {jQuery.deferred} - * @param {function()=} opt_fn - * @return {jQuery.deferred} - */ -$.Deferred = function(opt_fn) {}; - /** * @override * @param {jQueryCallback} alwaysCallbacks * @param {jQueryCallback=} alwaysCallbacks2 - * @return {jQuery.deferred} + * @return {!jQuery.deferred} */ jQuery.deferred.prototype.always = function(alwaysCallbacks, alwaysCallbacks2) {}; @@ -473,7 +409,7 @@ jQuery.deferred.prototype.always * @override * @param {jQueryCallback} doneCallbacks * @param {jQueryCallback=} doneCallbacks2 - * @return {jQuery.deferred} + * @return {!jQuery.deferred} */ jQuery.deferred.prototype.done = function(doneCallbacks, doneCallbacks2) {}; @@ -481,20 +417,20 @@ jQuery.deferred.prototype.done = function(doneCallbacks, doneCallbacks2) {}; * @override * @param {jQueryCallback} failCallbacks * @param {jQueryCallback=} failCallbacks2 - * @return {jQuery.deferred} + * @return {!jQuery.deferred} */ jQuery.deferred.prototype.fail = function(failCallbacks, failCallbacks2) {}; /** * @param {...*} var_args - * @return {jQuery.deferred} + * @return {!jQuery.deferred} */ jQuery.deferred.prototype.notify = function(var_args) {}; /** * @param {Object} context * @param {...*} var_args - * @return {jQuery.deferred} + * @return {!jQuery.deferred} */ jQuery.deferred.prototype.notifyWith = function(context, var_args) {}; @@ -504,46 +440,46 @@ jQuery.deferred.prototype.notifyWith = function(context, var_args) {}; * @param {function()=} doneFilter * @param {function()=} failFilter * @param {function()=} progressFilter - * @return {jQuery.Promise} + * @return {!jQuery.Promise} */ jQuery.deferred.prototype.pipe = function(doneFilter, failFilter, progressFilter) {}; /** * @param {jQueryCallback} progressCallbacks - * @return {jQuery.deferred} + * @return {!jQuery.deferred} */ jQuery.deferred.prototype.progress = function(progressCallbacks) {}; /** * @param {Object=} target - * @return {jQuery.Promise} + * @return {!jQuery.Promise} */ jQuery.deferred.prototype.promise = function(target) {}; /** * @param {...*} var_args - * @return {jQuery.deferred} + * @return {!jQuery.deferred} */ jQuery.deferred.prototype.reject = function(var_args) {}; /** * @param {Object} context - * @param {Array.<*>=} args - * @return {jQuery.deferred} + * @param {Array<*>=} args + * @return {!jQuery.deferred} */ jQuery.deferred.prototype.rejectWith = function(context, args) {}; /** * @param {...*} var_args - * @return {jQuery.deferred} + * @return {!jQuery.deferred} */ jQuery.deferred.prototype.resolve = function(var_args) {}; /** * @param {Object} context - * @param {Array.<*>=} args - * @return {jQuery.deferred} + * @param {Array<*>=} args + * @return {!jQuery.deferred} */ jQuery.deferred.prototype.resolveWith = function(context, args) {}; @@ -555,7 +491,7 @@ jQuery.deferred.prototype.state = function() {}; * @param {jQueryCallback} doneCallbacks * @param {jQueryCallback=} failCallbacks * @param {jQueryCallback=} progressCallbacks - * @return {jQuery.deferred} + * @return {!jQuery.deferred} */ jQuery.deferred.prototype.then = function(doneCallbacks, failCallbacks, progressCallbacks) {}; @@ -569,9 +505,9 @@ jQuery.prototype.delay = function(duration, queueName) {}; /** * @param {string} selector - * @param {(string|Object.)} arg2 - * @param {(function(!jQuery.event=)|Object.)=} arg3 - * @param {function(!jQuery.event=)=} handler + * @param {(string|Object)} arg2 + * @param {(function(!jQuery.Event)|Object)=} arg3 + * @param {function(!jQuery.Event)=} handler * @return {!jQuery} */ jQuery.prototype.delegate = function(selector, arg2, arg3, handler) {}; @@ -588,12 +524,6 @@ jQuery.dequeue = function(elem, queueName) {}; */ jQuery.prototype.dequeue = function(queueName) {}; -/** - * @param {Element} elem - * @param {string=} queueName - */ -$.dequeue = function(elem, queueName) {}; - /** * @param {jQuerySelector=} selector * @return {!jQuery} @@ -602,7 +532,7 @@ jQuery.prototype.detach = function(selector) {}; /** * @param {Object} collection - * @param {function(number,?)} callback + * @param {function((number|string),?)} callback * @return {Object} */ jQuery.each = function(collection, callback) {}; @@ -613,12 +543,6 @@ jQuery.each = function(collection, callback) {}; */ jQuery.prototype.each = function(fnc) {}; -/** - * @param {Object} collection - * @param {function(number,?)} callback - * @return {Object} - */ -$.each = function(collection, callback) {}; /** @return {!jQuery} */ jQuery.prototype.empty = function() {}; @@ -640,114 +564,151 @@ jQuery.error = function(message) {}; /** * @deprecated Please use .on( "error", handler ) instead. - * @param {(function(!jQuery.event=)|Object.)} arg1 - * @param {function(!jQuery.event=)=} handler + * @param {(function(!jQuery.Event)|Object)} arg1 + * @param {function(!jQuery.Event)=} handler * @return {!jQuery} */ jQuery.prototype.error = function(arg1, handler) {}; -/** @param {string} message */ -$.error = function(message) {}; +/** @const */ +jQuery.event = {}; + +/** @type {Array} */ +jQuery.event.props; + +/** @type {Object} */ +jQuery.event.special; /** * @constructor * @param {string} eventType - */ -jQuery.event = function(eventType) {}; - -/** - * @constructor - * @extends {jQuery.event} - * @param {string} eventType * @param {Object=} properties - * @return {jQuery.Event} + * @return {!jQuery.Event} */ jQuery.Event = function(eventType, properties) {}; -/** - * @constructor - * @extends {jQuery.event} - * @param {string} eventType - */ -$.event = function(eventType) {}; +/** @type {boolean} */ +jQuery.Event.prototype.altKey; -/** - * @constructor - * @extends {jQuery.event} - * @param {string} eventType - * @param {Object=} properties - * @return {$.Event} - */ -$.Event = function(eventType, properties) {}; +/** @type {boolean} */ +jQuery.Event.prototype.bubbles; -/** @type {Element} */ -jQuery.event.prototype.currentTarget; +/** @type {number} */ +jQuery.Event.prototype.button; -/** @type {Object.} */ -jQuery.event.prototype.data; - -/** @type {Element} */ -jQuery.event.prototype.delegateTarget; - -/** - * @return {boolean} - * @nosideeffects - */ -jQuery.event.prototype.isDefaultPrevented = function() {}; - -/** - * @return {boolean} - * @nosideeffects - */ -jQuery.event.prototype.isImmediatePropagationStopped = function() {}; - -/** - * @return {boolean} - * @nosideeffects - */ -jQuery.event.prototype.isPropagationStopped = function() {}; +/** @type {boolean} */ +jQuery.Event.prototype.cancelable; /** @type {string} */ -jQuery.event.prototype.namespace; +jQuery.Event.prototype.charChode; + +/** @type {number} */ +jQuery.Event.prototype.clientX; + +/** @type {number} */ +jQuery.Event.prototype.clientY; + +/** @type {boolean} */ +jQuery.Event.prototype.ctrlKey; + +/** @type {Element} */ +jQuery.Event.prototype.currentTarget; + +/** @type {Object} */ +jQuery.Event.prototype.data; + +/** @type {Element} */ +jQuery.Event.prototype.delegateTarget; + +/** @type {number} */ +jQuery.Event.prototype.detail; + +/** @type {number} */ +jQuery.Event.prototype.eventPhase; + +/** + * @return {boolean} + * @nosideeffects + */ +jQuery.Event.prototype.isDefaultPrevented = function() {}; + +/** + * @return {boolean} + * @nosideeffects + */ +jQuery.Event.prototype.isImmediatePropagationStopped = function() {}; + +/** + * @return {boolean} + * @nosideeffects + */ +jQuery.Event.prototype.isPropagationStopped = function() {}; + +/** @type {boolean} */ +jQuery.Event.prototype.metaKey; + +/** @type {string} */ +jQuery.Event.prototype.namespace; + +/** @type {number} */ +jQuery.Event.prototype.offsetX; + +/** @type {number} */ +jQuery.Event.prototype.offsetY; /** @type {Event} */ -jQuery.event.prototype.originalEvent; - -/** @type {number} */ -jQuery.event.prototype.pageX; - -/** @type {number} */ -jQuery.event.prototype.pageY; - -/** @return {undefined} */ -jQuery.event.prototype.preventDefault = function() {}; - -/** @type {Object.} */ -jQuery.event.prototype.props; +jQuery.Event.prototype.originalEvent; /** @type {Element} */ -jQuery.event.prototype.relatedTarget; +jQuery.Event.prototype.originalTarget; + +/** @type {number} */ +jQuery.Event.prototype.pageX; + +/** @type {number} */ +jQuery.Event.prototype.pageY; + +/** @return {undefined} */ +jQuery.Event.prototype.preventDefault = function() {}; + +/** @type {Object} */ +jQuery.Event.prototype.props; + +/** @type {Element} */ +jQuery.Event.prototype.relatedTarget; /** @type {*} */ -jQuery.event.prototype.result; +jQuery.Event.prototype.result; + +/** @type {number} */ +jQuery.Event.prototype.screenX; + +/** @type {number} */ +jQuery.Event.prototype.screenY; + +/** @type {boolean} */ +jQuery.Event.prototype.shiftKey; /** @return {undefined} */ -jQuery.event.prototype.stopImmediatePropagation = function() {}; +jQuery.Event.prototype.stopImmediatePropagation = function() {}; /** @return {undefined} */ -jQuery.event.prototype.stopPropagation = function() {}; +jQuery.Event.prototype.stopPropagation = function() {}; /** @type {Element} */ -jQuery.event.prototype.target; +jQuery.Event.prototype.target; /** @type {number} */ -jQuery.event.prototype.timeStamp; +jQuery.Event.prototype.timeStamp; /** @type {string} */ -jQuery.event.prototype.type; +jQuery.Event.prototype.type; + +/** @type {Window} */ +jQuery.Event.prototype.view; /** @type {number} */ -jQuery.event.prototype.which; +jQuery.Event.prototype.which; /** * @param {(Object|boolean)} arg1 @@ -763,13 +724,6 @@ jQuery.extend = function(arg1, var_args) {}; */ jQuery.prototype.extend = function(arg1, var_args) {}; -/** - * @param {(Object|boolean)} arg1 - * @param {...*} var_args - * @return {Object} - */ -$.extend = function(arg1, var_args) {}; - /** * @param {(string|number|function())=} duration * @param {(function()|string)=} arg2 @@ -823,26 +777,23 @@ jQuery.prototype.first = function() {}; /** @see http://docs.jquery.com/Plugins/Authoring */ jQuery.fn = jQuery.prototype; -/** @see http://docs.jquery.com/Plugins/Authoring */ -$.fn = $.prototype; - /** - * @param {(function(!jQuery.event=)|Object.)=} arg1 - * @param {function(!jQuery.event=)=} handler + * @param {(function(!jQuery.Event)|Object)=} arg1 + * @param {function(!jQuery.Event)=} handler * @return {!jQuery} */ jQuery.prototype.focus = function(arg1, handler) {}; /** - * @param {(function(!jQuery.event=)|Object.)} arg1 - * @param {function(!jQuery.event=)=} handler + * @param {(function(!jQuery.Event)|Object)} arg1 + * @param {function(!jQuery.Event)=} handler * @return {!jQuery} */ jQuery.prototype.focusin = function(arg1, handler) {}; /** - * @param {(function(!jQuery.event=)|Object.)} arg1 - * @param {function(!jQuery.event=)=} handler + * @param {(function(!jQuery.Event)|Object)} arg1 + * @param {function(!jQuery.Event)=} handler * @return {!jQuery} */ jQuery.prototype.focusout = function(arg1, handler) {}; @@ -850,104 +801,58 @@ jQuery.prototype.focusout = function(arg1, handler) {}; /** @const */ jQuery.fx = {}; -/** @const */ -$.fx = {}; - /** @type {number} */ jQuery.fx.interval; -/** @type {number} */ -$.fx.interval; - /** @type {boolean} */ jQuery.fx.off; -/** @type {boolean} */ -$.fx.off; - /** * @param {string} url - * @param {(Object.|string| + * @param {(Object|string| * function(string,string,jQuery.jqXHR))=} data * @param {(function(string,string,jQuery.jqXHR)|string)=} success * @param {string=} dataType - * @return {jQuery.jqXHR} + * @return {!jQuery.jqXHR} */ jQuery.get = function(url, data, success, dataType) {}; /** * @param {number=} index - * @return {(Element|Array.)} + * @return {(Element|Array)} * @nosideeffects */ jQuery.prototype.get = function(index) {}; /** * @param {string} url - * @param {(Object.|string| - * function(string,string,jQuery.jqXHR))=} data - * @param {(function(string,string,jQuery.jqXHR)|string)=} success - * @param {string=} dataType - * @return {jQuery.jqXHR} - */ -$.get = function(url, data, success, dataType) {}; - -/** - * @param {string} url - * @param {(Object.| - * function(Object.,string,jQuery.jqXHR))=} data - * @param {function(Object.,string,jQuery.jqXHR)=} success - * @return {jQuery.jqXHR} + * @param {(Object| + * function(Object,string,jQuery.jqXHR))=} data + * @param {function(Object,string,jQuery.jqXHR)=} success + * @return {!jQuery.jqXHR} * @see http://api.jquery.com/jquery.getjson/#jQuery-getJSON-url-data-success */ jQuery.getJSON = function(url, data, success) {}; -/** - * @param {string} url - * @param {(Object.| - * function(Object.,string,jQuery.jqXHR))=} data - * @param {function(Object.,string,jQuery.jqXHR)=} success - * @return {jQuery.jqXHR} - * @see http://api.jquery.com/jquery.getjson/#jQuery-getJSON-url-data-success - */ -$.getJSON = function(url, data, success) {}; - /** * @param {string} url * @param {function(Node,string,jQuery.jqXHR)=} success - * @return {jQuery.jqXHR} + * @return {!jQuery.jqXHR} */ jQuery.getScript = function(url, success) {}; -/** - * @param {string} url - * @param {function(Node,string,jQuery.jqXHR)=} success - * @return {jQuery.jqXHR} - */ -$.getScript = function(url, success) {}; - /** @param {string} code */ jQuery.globalEval = function(code) {}; -/** @param {string} code */ -$.globalEval = function(code) {}; - /** - * @param {Array.<*>} arr + * @template T + * @param {!Array} arr * @param {function(*,number)} fnc * @param {boolean=} invert - * @return {Array.<*>} + * @return {!Array} */ jQuery.grep = function(arr, fnc, invert) {}; -/** - * @param {Array.<*>} arr - * @param {function(*,number)} fnc - * @param {boolean=} invert - * @return {Array.<*>} - */ -$.grep = function(arr, fnc, invert) {}; - /** * @param {(string|Element)} arg1 * @return {!jQuery} @@ -963,19 +868,12 @@ jQuery.prototype.has = function(arg1) {}; jQuery.prototype.hasClass = function(className) {}; /** - * @param {Element} elem + * @param {!Element} elem * @return {boolean} * @nosideeffects */ jQuery.hasData = function(elem) {}; -/** - * @param {Element} elem - * @return {boolean} - * @nosideeffects - */ -$.hasData = function(elem) {}; - /** * @param {(string|number|function(number,number))=} arg1 * @return {(number|!jQuery)} @@ -993,12 +891,9 @@ jQuery.prototype.hide = function(duration, arg2, callback) {}; /** @param {boolean} hold */ jQuery.holdReady = function(hold) {}; -/** @param {boolean} hold */ -$.holdReady = function(hold) {}; - /** - * @param {function(!jQuery.event=)} arg1 - * @param {function(!jQuery.event=)=} handlerOut + * @param {function(!jQuery.Event)} arg1 + * @param {function(!jQuery.Event)=} handlerOut * @return {!jQuery} */ jQuery.prototype.hover = function(arg1, handlerOut) {}; @@ -1011,22 +906,13 @@ jQuery.prototype.html = function(arg1) {}; /** * @param {*} value - * @param {Array.<*>} arr + * @param {Array<*>} arr * @param {number=} fromIndex * @return {number} * @nosideeffects */ jQuery.inArray = function(value, arr, fromIndex) {}; -/** - * @param {*} value - * @param {Array.<*>} arr - * @param {number=} fromIndex - * @return {number} - * @nosideeffects - */ -$.inArray = function(value, arr, fromIndex) {}; - /** * @param {(jQuerySelector|Element|jQuery)=} arg1 * @return {number} @@ -1070,13 +956,6 @@ jQuery.prototype.is = function(arg1) {}; */ jQuery.isArray = function(obj) {}; -/** - * @param {*} obj - * @return {boolean} - * @nosideeffects - */ -$.isArray = function(obj) {}; - /** * @param {Object} obj * @return {boolean} @@ -1084,13 +963,6 @@ $.isArray = function(obj) {}; */ jQuery.isEmptyObject = function(obj) {}; -/** - * @param {Object} obj - * @return {boolean} - * @nosideeffects - */ -$.isEmptyObject = function(obj) {}; - /** * @param {*} obj * @return {boolean} @@ -1098,13 +970,6 @@ $.isEmptyObject = function(obj) {}; */ jQuery.isFunction = function(obj) {}; -/** - * @param {*} obj - * @return {boolean} - * @nosideeffects - */ -$.isFunction = function(obj) {}; - /** * @param {*} value * @return {boolean} @@ -1112,13 +977,6 @@ $.isFunction = function(obj) {}; */ jQuery.isNumeric = function(value) {}; -/** - * @param {*} value - * @return {boolean} - * @nosideeffects - */ -$.isNumeric = function(value) {}; - /** * @param {*} obj * @return {boolean} @@ -1126,13 +984,6 @@ $.isNumeric = function(value) {}; */ jQuery.isPlainObject = function(obj) {}; -/** - * @param {*} obj - * @return {boolean} - * @nosideeffects - */ -$.isPlainObject = function(obj) {}; - /** * @param {*} obj * @return {boolean} @@ -1140,13 +991,6 @@ $.isPlainObject = function(obj) {}; */ jQuery.isWindow = function(obj) {}; -/** - * @param {*} obj - * @return {boolean} - * @nosideeffects - */ -$.isWindow = function(obj) {}; - /** * @param {Element} node * @return {boolean} @@ -1154,13 +998,6 @@ $.isWindow = function(obj) {}; */ jQuery.isXMLDoc = function(node) {}; -/** - * @param {Element} node - * @return {boolean} - * @nosideeffects - */ -$.isXMLDoc = function(node) {}; - /** @type {string} */ jQuery.prototype.jquery; @@ -1177,7 +1014,7 @@ jQuery.jqXHR = function () {}; * @override * @param {jQueryCallback} alwaysCallbacks * @param {jQueryCallback=} alwaysCallbacks2 - * @return {jQuery.jqXHR} + * @return {!jQuery.jqXHR} */ jQuery.jqXHR.prototype.always = function(alwaysCallbacks, alwaysCallbacks2) {}; @@ -1185,28 +1022,28 @@ jQuery.jqXHR.prototype.always = /** * @deprecated * @param {function()} callback - * @return {jQuery.jqXHR} + * @return {!jQuery.jqXHR} */ jQuery.jqXHR.prototype.complete = function (callback) {}; /** * @override * @param {jQueryCallback} doneCallbacks - * @return {jQuery.jqXHR} + * @return {!jQuery.jqXHR} */ jQuery.jqXHR.prototype.done = function(doneCallbacks) {}; /** * @deprecated * @param {function()} callback - * @return {jQuery.jqXHR} + * @return {!jQuery.jqXHR} */ jQuery.jqXHR.prototype.error = function (callback) {}; /** * @override * @param {jQueryCallback} failCallbacks - * @return {jQuery.jqXHR} + * @return {!jQuery.jqXHR} */ jQuery.jqXHR.prototype.fail = function(failCallbacks) {}; @@ -1221,7 +1058,7 @@ jQuery.jqXHR.prototype.onreadystatechange = function (callback) {}; * @param {function()=} doneFilter * @param {function()=} failFilter * @param {function()=} progressFilter - * @return {jQuery.jqXHR} + * @return {!jQuery.jqXHR} */ jQuery.jqXHR.prototype.pipe = function(doneFilter, failFilter, progressFilter) {}; @@ -1229,7 +1066,7 @@ jQuery.jqXHR.prototype.pipe = /** * @deprecated * @param {function()} callback - * @return {jQuery.jqXHR} + * @return {!jQuery.jqXHR} */ jQuery.jqXHR.prototype.success = function (callback) {}; @@ -1238,28 +1075,28 @@ jQuery.jqXHR.prototype.success = function (callback) {}; * @param {jQueryCallback} doneCallbacks * @param {jQueryCallback=} failCallbacks * @param {jQueryCallback=} progressCallbacks - * @return {jQuery.jqXHR} + * @return {!jQuery.jqXHR} */ jQuery.jqXHR.prototype.then = function(doneCallbacks, failCallbacks, progressCallbacks) {}; /** - * @param {(function(!jQuery.event=)|Object.)=} arg1 - * @param {function(!jQuery.event=)=} handler + * @param {(function(!jQuery.Event)|Object)=} arg1 + * @param {function(!jQuery.Event)=} handler * @return {!jQuery} */ jQuery.prototype.keydown = function(arg1, handler) {}; /** - * @param {(function(!jQuery.event=)|Object.)=} arg1 - * @param {function(!jQuery.event=)=} handler + * @param {(function(!jQuery.Event)|Object)=} arg1 + * @param {function(!jQuery.Event)=} handler * @return {!jQuery} */ jQuery.prototype.keypress = function(arg1, handler) {}; /** - * @param {(function(!jQuery.event=)|Object.)=} arg1 - * @param {function(!jQuery.event=)=} handler + * @param {(function(!jQuery.Event)|Object)=} arg1 + * @param {function(!jQuery.Event)=} handler * @return {!jQuery} */ jQuery.prototype.keyup = function(arg1, handler) {}; @@ -1274,8 +1111,8 @@ jQuery.prototype.length; * @deprecated Please avoid the document loading Event invocation of * .load() and use .on( "load", handler ) instead. (The AJAX * module invocation signature is OK.) - * @param {(function(!jQuery.event=)|Object.|string)} arg1 - * @param {(function(!jQuery.event=)|Object.|string)=} arg2 + * @param {(function(!jQuery.Event)|Object|string)} arg1 + * @param {(function(!jQuery.Event)|Object|string)=} arg2 * @param {function(string,string,XMLHttpRequest)=} complete * @return {!jQuery} */ @@ -1283,20 +1120,14 @@ jQuery.prototype.load = function(arg1, arg2, complete) {}; /** * @param {*} obj - * @return {Array.<*>} + * @return {Array<*>} */ jQuery.makeArray = function(obj) {}; /** - * @param {*} obj - * @return {Array.<*>} - */ -$.makeArray = function(obj) {}; - -/** - * @param {(Array.<*>|Object.)} arg1 + * @param {(Array<*>|Object)} arg1 * @param {(function(*,number)|function(*,(string|number)))} callback - * @return {Array.<*>} + * @return {Array<*>} */ jQuery.map = function(arg1, callback) {}; @@ -1307,71 +1138,57 @@ jQuery.map = function(arg1, callback) {}; jQuery.prototype.map = function(callback) {}; /** - * @param {(Array.<*>|Object.)} arg1 - * @param {(function(*,number)|function(*,(string|number)))} callback - * @return {Array.<*>} - */ -$.map = function(arg1, callback) {}; - -/** - * @param {Array.<*>} first - * @param {Array.<*>} second - * @return {Array.<*>} + * @param {Array<*>} first + * @param {Array<*>} second + * @return {Array<*>} */ jQuery.merge = function(first, second) {}; /** - * @param {Array.<*>} first - * @param {Array.<*>} second - * @return {Array.<*>} - */ -$.merge = function(first, second) {}; - -/** - * @param {(function(!jQuery.event=)|Object.)=} arg1 - * @param {function(!jQuery.event=)=} handler + * @param {(function(!jQuery.Event)|Object)=} arg1 + * @param {function(!jQuery.Event)=} handler * @return {!jQuery} */ jQuery.prototype.mousedown = function(arg1, handler) {}; /** - * @param {(function(!jQuery.event=)|Object.)=} arg1 - * @param {function(!jQuery.event=)=} handler + * @param {(function(!jQuery.Event)|Object)=} arg1 + * @param {function(!jQuery.Event)=} handler * @return {!jQuery} */ jQuery.prototype.mouseenter = function(arg1, handler) {}; /** - * @param {(function(!jQuery.event=)|Object.)=} arg1 - * @param {function(!jQuery.event=)=} handler + * @param {(function(!jQuery.Event)|Object)=} arg1 + * @param {function(!jQuery.Event)=} handler * @return {!jQuery} */ jQuery.prototype.mouseleave = function(arg1, handler) {}; /** - * @param {(function(!jQuery.event=)|Object.)=} arg1 - * @param {function(!jQuery.event=)=} handler + * @param {(function(!jQuery.Event)|Object)=} arg1 + * @param {function(!jQuery.Event)=} handler * @return {!jQuery} */ jQuery.prototype.mousemove = function(arg1, handler) {}; /** - * @param {(function(!jQuery.event=)|Object.)=} arg1 - * @param {function(!jQuery.event=)=} handler + * @param {(function(!jQuery.Event)|Object)=} arg1 + * @param {function(!jQuery.Event)=} handler * @return {!jQuery} */ jQuery.prototype.mouseout = function(arg1, handler) {}; /** - * @param {(function(!jQuery.event=)|Object.)=} arg1 - * @param {function(!jQuery.event=)=} handler + * @param {(function(!jQuery.Event)|Object)=} arg1 + * @param {function(!jQuery.Event)=} handler * @return {!jQuery} */ jQuery.prototype.mouseover = function(arg1, handler) {}; /** - * @param {(function(!jQuery.event=)|Object.)=} arg1 - * @param {function(!jQuery.event=)=} handler + * @param {(function(!jQuery.Event)|Object)=} arg1 + * @param {function(!jQuery.Event)=} handler * @return {!jQuery} */ jQuery.prototype.mouseup = function(arg1, handler) {}; @@ -1404,12 +1221,6 @@ jQuery.prototype.nextUntil = function(arg1, filter) {}; */ jQuery.noConflict = function(removeAll) {}; -/** - * @param {boolean=} removeAll - * @return {Object} - */ -$.noConflict = function(removeAll) {}; - /** * @return {function()} * @nosideeffects @@ -1417,13 +1228,7 @@ $.noConflict = function(removeAll) {}; jQuery.noop = function() {}; /** - * @return {function()} - * @nosideeffects - */ -$.noop = function() {}; - -/** - * @param {(jQuerySelector|Array.|function(number)|jQuery)} arg1 + * @param {(jQuerySelector|Array|function(number)|jQuery)} arg1 * @return {!jQuery} */ jQuery.prototype.not = function(arg1) {}; @@ -1435,15 +1240,9 @@ jQuery.prototype.not = function(arg1) {}; jQuery.now = function() {}; /** - * @return {number} - * @nosideeffects - */ -$.now = function() {}; - -/** - * @param {(string|Object.)=} arg1 - * @param {(string|function(!jQuery.event=))=} selector - * @param {function(!jQuery.event=)=} handler + * @param {(string|Object)=} arg1 + * @param {(string|function(!jQuery.Event))=} selector + * @param {function(!jQuery.Event)=} handler * @return {!jQuery} */ jQuery.prototype.off = function(arg1, selector, handler) {}; @@ -1462,19 +1261,19 @@ jQuery.prototype.offset = function(arg1) {}; jQuery.prototype.offsetParent = function() {}; /** - * @param {(string|Object.)} arg1 + * @param {(string|Object)} arg1 * @param {*=} selector * @param {*=} data - * @param {function(!jQuery.event=)=} handler + * @param {function(!jQuery.Event)=} handler * @return {!jQuery} */ jQuery.prototype.on = function(arg1, selector, data, handler) {}; /** - * @param {(string|Object.)} arg1 + * @param {(string|Object)} arg1 * @param {*=} arg2 * @param {*=} arg3 - * @param {function(!jQuery.event=)=} handler + * @param {function(!jQuery.Event)=} handler * @return {!jQuery} */ jQuery.prototype.one = function(arg1, arg2, arg3, handler) {}; @@ -1494,19 +1293,12 @@ jQuery.prototype.outerHeight = function(includeMargin) {}; jQuery.prototype.outerWidth = function(includeMargin) {}; /** - * @param {(Object.|Array.>)} obj + * @param {(Object|Array>)} obj * @param {boolean=} traditional * @return {string} */ jQuery.param = function(obj, traditional) {}; -/** - * @param {(Object.|Array.>)} obj - * @param {boolean=} traditional - * @return {string} - */ -$.param = function(obj, traditional) {}; - /** * @param {jQuerySelector=} selector * @return {!jQuery} @@ -1533,42 +1325,22 @@ jQuery.prototype.parentsUntil = function(arg1, filter) {}; * @param {string} data * @param {(Element|boolean)=} context * @param {boolean=} keepScripts - * @return {Array.} + * @return {Array} */ jQuery.parseHTML = function(data, context, keepScripts) {}; -/** - * @param {string} data - * @param {(Element|boolean)=} context - * @param {boolean=} keepScripts - * @return {Array.} - */ -$.parseHTML = function(data, context, keepScripts) {}; - /** * @param {string} json - * @return {Object.} + * @return {string|number|Object|Array|boolean} */ jQuery.parseJSON = function(json) {}; -/** - * @param {string} json - * @return {Object.} - */ -$.parseJSON = function(json) {}; - /** * @param {string} data * @return {Document} */ jQuery.parseXML = function(data) {}; -/** - * @param {string} data - * @return {Document} - */ -$.parseXML = function(data) {}; - /** * @return {{left:number,top:number}} * @nosideeffects @@ -1577,24 +1349,13 @@ jQuery.prototype.position = function() {}; /** * @param {string} url - * @param {(Object.|string| + * @param {(Object|string| * function(string,string,jQuery.jqXHR))=} data - * @param {(function(string,string,jQuery.jqXHR)|string)=} success + * @param {(function(string,string,jQuery.jqXHR)|string|null)=} success * @param {string=} dataType - * @return {jQuery.jqXHR} + * @return {!jQuery.jqXHR} */ jQuery.post = function(url, data, success, dataType) {}; - -/** - * @param {string} url - * @param {(Object.|string| - * function(string,string,jQuery.jqXHR))=} data - * @param {(function(string,string,jQuery.jqXHR)|string)=} success - * @param {string=} dataType - * @return {jQuery.jqXHR} - */ -$.post = function(url, data, success, dataType) {}; - /** * @param {(string|Element|jQuery|function(number,string))} arg1 * @param {(string|Element|jQuery)=} content @@ -1633,7 +1394,7 @@ jQuery.prototype.prevUntil = function(arg1, filter) {}; /** * @param {(string|Object)=} type * @param {Object=} target - * @return {jQuery.Promise} + * @return {!jQuery.Promise} */ jQuery.prototype.promise = function(type, target) {}; @@ -1647,20 +1408,20 @@ jQuery.Promise = function () {}; /** * @param {jQueryCallback} alwaysCallbacks * @param {jQueryCallback=} alwaysCallbacks2 - * @return {jQuery.Promise} + * @return {!jQuery.Promise} */ jQuery.Promise.prototype.always = function(alwaysCallbacks, alwaysCallbacks2) {}; /** * @param {jQueryCallback} doneCallbacks - * @return {jQuery.Promise} + * @return {!jQuery.Promise} */ jQuery.Promise.prototype.done = function(doneCallbacks) {}; /** * @param {jQueryCallback} failCallbacks - * @return {jQuery.Promise} + * @return {!jQuery.Promise} */ jQuery.Promise.prototype.fail = function(failCallbacks) {}; @@ -1668,7 +1429,7 @@ jQuery.Promise.prototype.fail = function(failCallbacks) {}; * @param {function()=} doneFilter * @param {function()=} failFilter * @param {function()=} progressFilter - * @return {jQuery.Promise} + * @return {!jQuery.Promise} */ jQuery.Promise.prototype.pipe = function(doneFilter, failFilter, progressFilter) {}; @@ -1677,13 +1438,13 @@ jQuery.Promise.prototype.pipe = * @param {jQueryCallback} doneCallbacks * @param {jQueryCallback=} failCallbacks * @param {jQueryCallback=} progressCallbacks - * @return {jQuery.Promise} + * @return {!jQuery.Promise} */ jQuery.Promise.prototype.then = function(doneCallbacks, failCallbacks, progressCallbacks) {}; /** - * @param {(string|Object.)} arg1 + * @param {(string|Object)} arg1 * @param {(string|number|boolean|function(number,String))=} arg2 * @return {(string|boolean|!jQuery)} */ @@ -1696,42 +1457,28 @@ jQuery.prototype.prop = function(arg1, arg2) {}; jQuery.proxy = function(var_args) {}; /** - * @param {...*} var_args - * @return {function()} - */ -$.proxy = function(var_args) {}; - -/** - * @param {Array.} elements + * @param {Array} elements * @param {string=} name - * @param {Array.<*>=} args + * @param {Array<*>=} args * @return {!jQuery} */ jQuery.prototype.pushStack = function(elements, name, args) {}; /** - * @param {(string|Array.|function(function()))=} queueName - * @param {(Array.|function(function()))=} arg2 - * @return {(Array.|!jQuery)} + * @param {(string|Array|function(function()))=} queueName + * @param {(Array|function(function()))=} arg2 + * @return {(Array|!jQuery)} */ jQuery.prototype.queue = function(queueName, arg2) {}; /** * @param {Element} elem * @param {string=} queueName - * @param {(Array.|function())=} arg3 - * @return {(Array.|!jQuery)} + * @param {(Array|function())=} arg3 + * @return {(Array|!jQuery)} */ jQuery.queue = function(elem, queueName, arg3) {}; -/** - * @param {Element} elem - * @param {string=} queueName - * @param {(Array.|function())=} arg3 - * @return {(Array.|!jQuery)} - */ -$.queue = function(elem, queueName, arg3) {}; - /** * @param {function()} handler * @return {!jQuery} @@ -1757,7 +1504,7 @@ jQuery.prototype.removeAttr = function(attributeName) {}; jQuery.prototype.removeClass = function(arg1) {}; /** - * @param {(string|Array.)=} arg1 + * @param {(string|Array)=} arg1 * @return {!jQuery} */ jQuery.prototype.removeData = function(arg1) {}; @@ -1769,13 +1516,6 @@ jQuery.prototype.removeData = function(arg1) {}; */ jQuery.removeData = function(elem, name) {}; -/** - * @param {Element} elem - * @param {string=} name - * @return {!jQuery} - */ -$.removeData = function(elem, name) {}; - /** * @param {string} propertyName * @return {!jQuery} @@ -1795,15 +1535,15 @@ jQuery.prototype.replaceAll = function(target) {}; jQuery.prototype.replaceWith = function(arg1) {}; /** - * @param {(function(!jQuery.event=)|Object.)=} arg1 - * @param {function(!jQuery.event=)=} handler + * @param {(function(!jQuery.Event)|Object)=} arg1 + * @param {function(!jQuery.Event)=} handler * @return {!jQuery} */ jQuery.prototype.resize = function(arg1, handler) {}; /** - * @param {(function(!jQuery.event=)|Object.)=} arg1 - * @param {function(!jQuery.event=)=} handler + * @param {(function(!jQuery.Event)|Object)=} arg1 + * @param {function(!jQuery.Event)=} handler * @return {!jQuery} */ jQuery.prototype.scroll = function(arg1, handler) {}; @@ -1821,8 +1561,8 @@ jQuery.prototype.scrollLeft = function(value) {}; jQuery.prototype.scrollTop = function(value) {}; /** - * @param {(function(!jQuery.event=)|Object.)=} arg1 - * @param {function(!jQuery.event=)=} handler + * @param {(function(!jQuery.Event)|Object)=} arg1 + * @param {function(!jQuery.Event)=} handler * @return {!jQuery} */ jQuery.prototype.select = function(arg1, handler) {}; @@ -1834,7 +1574,7 @@ jQuery.prototype.select = function(arg1, handler) {}; jQuery.prototype.serialize = function() {}; /** - * @return {Array.>} + * @return {Array>} * @nosideeffects */ jQuery.prototype.serializeArray = function() {}; @@ -1869,7 +1609,7 @@ jQuery.prototype.size = function() {}; jQuery.prototype.slice = function(start, end) {}; /** - * @param {(Object.|string|number)=} optionsOrDuration + * @param {(Object|string|number)=} optionsOrDuration * @param {(function()|string)=} completeOrEasing * @param {function()=} complete * @return {!jQuery} @@ -1878,7 +1618,7 @@ jQuery.prototype.slideDown = function(optionsOrDuration, completeOrEasing, complete) {}; /** - * @param {(Object.|string|number)=} optionsOrDuration + * @param {(Object|string|number)=} optionsOrDuration * @param {(function()|string)=} completeOrEasing * @param {function()=} complete * @return {!jQuery} @@ -1887,7 +1627,7 @@ jQuery.prototype.slideToggle = function(optionsOrDuration, completeOrEasing, complete) {}; /** - * @param {(Object.|string|number)=} optionsOrDuration + * @param {(Object|string|number)=} optionsOrDuration * @param {(function()|string)=} completeOrEasing * @param {function()=} complete * @return {!jQuery} @@ -1904,104 +1644,64 @@ jQuery.prototype.slideUp = jQuery.prototype.stop = function(arg1, arg2, jumpToEnd) {}; /** - * @param {(function(!jQuery.event=)|Object.)=} arg1 - * @param {function(!jQuery.event=)=} handler + * @param {(function(!jQuery.Event)|Object)=} arg1 + * @param {function(!jQuery.Event)=} handler * @return {!jQuery} */ jQuery.prototype.submit = function(arg1, handler) {}; -/** @type {Object.} */ +/** @type {Object} + * @deprecated Please try to use feature detection instead. + */ jQuery.support; -/** @type {Object.} */ -$.support; - /** * @deprecated Please try to use feature detection instead. * @type {boolean} */ jQuery.support.boxModel; -/** - * @deprecated Please try to use feature detection instead. - * @type {boolean} - */ -$.support.boxModel; - /** @type {boolean} */ jQuery.support.changeBubbles; -/** @type {boolean} */ -$.support.changeBubbles; - /** @type {boolean} */ jQuery.support.cors; -/** @type {boolean} */ -$.support.cors; - /** @type {boolean} */ jQuery.support.cssFloat; -/** @type {boolean} */ -$.support.cssFloat; - /** @type {boolean} */ jQuery.support.hrefNormalized; -/** @type {boolean} */ -$.support.hrefNormalized; - /** @type {boolean} */ jQuery.support.htmlSerialize; -/** @type {boolean} */ -$.support.htmlSerialize; - /** @type {boolean} */ jQuery.support.leadingWhitespace; -/** @type {boolean} */ -$.support.leadingWhitespace; - /** @type {boolean} */ jQuery.support.noCloneEvent; -/** @type {boolean} */ -$.support.noCloneEvent; - /** @type {boolean} */ jQuery.support.opacity; -/** @type {boolean} */ -$.support.opacity; - /** @type {boolean} */ jQuery.support.style; -/** @type {boolean} */ -$.support.style; - /** @type {boolean} */ jQuery.support.submitBubbles; -/** @type {boolean} */ -$.support.submitBubbles; - /** @type {boolean} */ jQuery.support.tbody; -/** @type {boolean} */ -$.support.tbody; - /** - * @param {(string|function(number,string))=} arg1 + * @param {(string|number|boolean|function(number,string))=} arg1 * @return {(string|!jQuery)} */ jQuery.prototype.text = function(arg1) {}; /** - * @return {Array.} + * @return {Array} * @nosideeffects */ jQuery.prototype.toArray = function() {}; @@ -2009,7 +1709,7 @@ jQuery.prototype.toArray = function() {}; /** * Refers to the method from the Effects category. There used to be a toggle * method on the Events category which was removed starting version 1.9. - * @param {(number|string|Object.|boolean)=} arg1 + * @param {(number|string|Object|boolean)=} arg1 * @param {(function()|string)=} arg2 * @param {function()=} arg3 * @return {!jQuery} @@ -2024,15 +1724,15 @@ jQuery.prototype.toggle = function(arg1, arg2, arg3) {}; jQuery.prototype.toggleClass = function(arg1, flag) {}; /** - * @param {(string|jQuery.event)} arg1 + * @param {(string|jQuery.Event)} arg1 * @param {...*} var_args * @return {!jQuery} */ jQuery.prototype.trigger = function(arg1, var_args) {}; /** - * @param {string|jQuery.event} eventType - * @param {Array.<*>=} extraParameters + * @param {string|jQuery.Event} eventType + * @param {Array<*>=} extraParameters * @return {*} */ jQuery.prototype.triggerHandler = function(eventType, extraParameters) {}; @@ -2044,13 +1744,6 @@ jQuery.prototype.triggerHandler = function(eventType, extraParameters) {}; */ jQuery.trim = function(str) {}; -/** - * @param {string} str - * @return {string} - * @nosideeffects - */ -$.trim = function(str) {}; - /** * @param {*} obj * @return {string} @@ -2059,43 +1752,30 @@ $.trim = function(str) {}; jQuery.type = function(obj) {}; /** - * @param {*} obj - * @return {string} - * @nosideeffects - */ -$.type = function(obj) {}; - -/** - * @param {(string|function(!jQuery.event=)|jQuery.event)=} arg1 - * @param {(function(!jQuery.event=)|boolean)=} arg2 + * @param {(string|function(!jQuery.Event)|jQuery.Event)=} arg1 + * @param {(function(!jQuery.Event)|boolean)=} arg2 * @return {!jQuery} */ jQuery.prototype.unbind = function(arg1, arg2) {}; /** * @param {string=} arg1 - * @param {(string|Object.)=} arg2 - * @param {function(!jQuery.event=)=} handler + * @param {(string|Object)=} arg2 + * @param {function(!jQuery.Event)=} handler * @return {!jQuery} */ jQuery.prototype.undelegate = function(arg1, arg2, handler) {}; /** - * @param {Array.} arr - * @return {Array.} + * @param {Array} arr + * @return {Array} */ jQuery.unique = function(arr) {}; -/** - * @param {Array.} arr - * @return {Array.} - */ -$.unique = function(arr) {}; - /** * @deprecated Please use .on( "unload", handler ) instead. - * @param {(function(!jQuery.event=)|Object.)} arg1 - * @param {function(!jQuery.event=)=} handler + * @param {(function(!jQuery.Event)|Object)} arg1 + * @param {function(!jQuery.Event)=} handler * @return {!jQuery} */ jQuery.prototype.unload = function(arg1, handler) {}; @@ -2104,8 +1784,8 @@ jQuery.prototype.unload = function(arg1, handler) {}; jQuery.prototype.unwrap = function() {}; /** - * @param {(string|Array.|function(number,*))=} arg1 - * @return {(string|number|Array.|!jQuery)} + * @param {(string|Array|function(number,*))=} arg1 + * @return {(string|number|Array|!jQuery)} */ jQuery.prototype.val = function(arg1) {}; @@ -2119,18 +1799,10 @@ jQuery.prototype.val = function(arg1) {}; * into a promise. * @param {*} deferred * @param {...*} deferreds - * @return {jQuery.Promise} + * @return {!jQuery.Promise} */ jQuery.when = function(deferred, deferreds) {}; -/** - * Note: See jQuery.when(). - * @param {*} deferred - * @param {...*} deferreds - * @return {jQuery.Promise} - */ -$.when = function(deferred, deferreds) {}; - /** * @param {(string|number|function(number,number))=} arg1 * @return {(number|!jQuery)} @@ -2154,4 +1826,3 @@ jQuery.prototype.wrapAll = function(wrappingElement) {}; * @return {!jQuery} */ jQuery.prototype.wrapInner = function(arg1) {}; -