Commit Graph

273 Commits

Author SHA1 Message Date
Erik Hesselink
1ba173f3bc jquery: add second signature for triggerHandler.
This one takes an event instead of an event type. See documentation
(http://api.jquery.com/triggerHandler/) and related documentation
ticket (https://github.com/jquery/api.jquery.com/issues/393).
2015-06-09 16:22:13 +02:00
Robert Dennis
dd393c9e0f Add tests for jQuery failsafe syntax 2015-04-23 10:12:44 -04:00
Robert Dennis
f7cfda9f1a Add optional jQueryAlias to $(callback) and $().ready(callback). 2015-04-20 13:59:13 -04:00
Bobdina
dc067ac82c Update jquery.d.ts
- deferred.fail() always returns the deferred object, ergo the failfilter can return anything
- taking in the value parameter for a donefilter is optional
- if a donefilter does not return anything, then the 'then' function continues with a void promise
2015-03-23 11:15:22 +01:00
falsandtru
90d3b93283 Revert JQueryGenericPromise to have only then method 2015-03-17 18:10:49 +09:00
falsandtru
3af6e3b8df Fix type definition 2015-03-07 17:00:45 +09:00
falsandtru
bb9b1b0761 Improve test codes 2015-03-07 16:10:07 +09:00
falsandtru
817bbaddc0 Fix trap suggestion 2015-03-07 15:42:38 +09:00
falsandtru
eba07e9941 Fix definition 2015-03-06 23:49:30 +09:00
falsandtru
d7dcca44c6 Fix generic type 2015-03-06 22:37:21 +09:00
falsandtru
4d20188700 Fix return type 2015-03-06 22:29:38 +09:00
falsandtru
ebcec4e3d9 Fix error 2015-03-06 22:26:12 +09:00
falsandtru
8d27cef4b0 Fix type mismatch 2015-03-06 01:48:09 +09:00
Horiuchi_H
685b996e7f Merge pull request #3617 from falsandtru/jquery-extend-branch/indent
Fix indent
2015-02-09 15:54:08 +09:00
falsandtru
f99a90aadd Fix indent 2015-02-07 22:55:07 +09:00
falsandtru
8b97c36adc Fix jquery type definitions 2015-02-07 19:17:21 +09:00
falsandtru
44cc583343 Fix jquery type definitions 2015-02-07 09:37:11 +09:00
Masahiro Wakame
9bd7fe69d9 Merge pull request #3495 from skeetmtp/master
Simplify JQueryPromise overloads thanks to Union types
2015-01-20 19:38:42 +09:00
Alban Lecocq
4e303153ef Simplify JQueryPromise & JQueryGenericPromise overloads thanks to Union types 2015-01-20 10:51:39 +01:00
John Reilly
56d494cccb jQuery: Overloads replaced with union types 2015-01-19 17:03:46 +00:00
John Reilly
9f719ecd26 jQuery: Overloads replaced with union types 2015-01-19 16:32:32 +00:00
johnnyreilly
aa19476b1c jQuery: Started replacing overloads with union types 2015-01-18 07:39:17 +00:00
vvakame
a1ed02f920 fix jquery/jquery-tests.ts compile error 2015-01-16 23:40:20 +09:00
Ilia Choly
9f64372a06 add target property to BaseJQueryEventObject 2014-12-24 10:37:56 -05:00
Hraban Luyat
a7afe03acb Specify structure $.fn.serializeArray() return val
$.fn.serializeArray returns an array of { name: string; value: string; }
elements. This patch declares that type explicitly, instead of Object[].
2014-11-21 17:46:05 +01:00
Igor Oleinikov
d00760ca0f Fixed jquery promises operators (fixes #2913). 2014-10-08 20:34:15 -07:00
Igor Oleinikov
8fa5f68d40 Added failing test case from #2913 2014-10-08 20:10:38 -07:00
Masahiro Wakame
6dec2f00bd Merge pull request #2753 from mzsm/fix-jquery
JQuery.one can omit `selector`
2014-09-05 18:41:11 +09:00
mzsm
e7c2d0b916 Add overload JQuery.one and jQuery.on 2014-09-05 11:58:03 +09:00
Mohamed Hegazy
2aaa293cb1 Remove quotes from response files 2014-09-02 14:53:39 -07:00
mzsm
6b7657b69d JQuery.one can omit selector. (like JQuery.on) 2014-09-02 03:54:34 +09:00
Dick van den Brink
62aebaa521 jQuery: Remove JQueryDeferred.state method
because it is already defined in JQueryPromise
2014-08-06 11:06:12 +02:00
basarat
e917a9c81e JQuery originalEvent should be of type Event
closes #2545
2014-07-22 21:00:50 +10:00
Tom Hasner
44ace5c660 added second argument "element" to $.filter 2014-07-17 18:04:10 -04:00
Ciel
9d7f8f967d Updated "then" within interface JQueryXHR
Updated "then" within the JQueryXHR interface - details are visible here: https://github.com/borisyankov/DefinitelyTyped/issues/2492

Sorry if this isn't the right way. This is my very first pull request.
2014-07-10 10:52:50 -05:00
Austin Brunkhorst
ddd01efbe9 Fix isImmediatePropagationStopped() typo.
isImmediatePropogationStopped -> isImmediatePropagationStopped
2014-07-08 13:48:05 -07:00
Basarat Ali Syed
14b38f5b21 Merge pull request #2400 from Nimrodxx/master
Update jquerymobile.d.ts and jquery.d.ts
2014-07-01 23:02:06 +10:00
basarat
593a1d571b expand the abort jsdoc 2014-06-28 23:08:51 +10:00
John Reilly
7a485a1c6c Merge pull request #2316 from lijunle/jquery-xhr-doc
Add JSDoc for JQueryXHR.abort method.
2014-06-27 18:08:43 +01:00
John Reilly
6f794717c7 Merge pull request #2348 from lijunle/bug-jquery-ajax
Write spec and fix for a jQuery.ajax bug
2014-06-27 11:20:10 +01:00
Nimrodxx
ebe628cec1 Update jquery.d.ts
Added the state method to the JQueryPromise<T> interface.
2014-06-24 10:27:12 +02:00
falsandtru
1fd63d49c6 jQuery: Add delegate method overload signature
Please support 'eventData' parameter.
http://api.jquery.com/delegate/
2014-06-23 14:11:52 +09:00
Bart van der Schoor
3d64ea7395 added missing urls to some authors
fixed node urls
2014-06-18 23:31:35 +02:00
Junle Li
cd8356008b Fix a asterisk bug. 2014-06-16 01:42:56 +08:00
Junle Li
3b741930bd Merge remote-tracking branch 'borisyankov/master' into bug-jquery-ajax
Conflicts:
	jquery/jquery.d.ts
2014-06-16 01:39:39 +08:00
John Reilly
8e59eadde1 Merge pull request #2324 from noxhoej/master
Add responseJSON attribute to JQueryXHR
2014-06-12 09:25:43 +01:00
Nicholas Oxh
73e8a6b08e Update jquery.d.ts
Make responseJSON optional, since it is only present on jqXHR if the Content-Type of the response is "application/json".
Since responseJSON is an "output" parameter on jqXHR, I don't think it makes any functional difference, if it is marked as optional or not, but logically it probably makes more sense...
2014-06-12 07:06:12 +02:00
Nicholas Oxh
1555e36253 Update jquery-tests.ts
Fix spelling...
2014-06-11 16:35:24 +02:00
noxhj
7643a269b2 Add responseJSON attribute to JQueryXHR 2014-06-11 13:01:26 +02:00
Junle Li
52678f3b87 Add specs for jqXHR object returned by $.ajax
The tests are corresponding to the syntax listed in its website:
http://api.jquery.com/jQuery.ajax/#jqXHR
2014-06-11 01:13:40 +08:00