Commit Graph
249 Commits
Author SHA1 Message Date
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
Junle Li fc628f15ad Write defition for JQueryXHR.then method.
Working on borisyankov/DefinitelyTyped#2314
2014-06-11 00:54:47 +08:00
Junle Li 96b258dd01 Add JSDoc for JQueryXHR.abort method.
Inspired the description from its source code:
https://github.com/jquery/jquery/blob/d41e81980ea89e56c04eb14d8c27f4692b367604/src/ajax.js#L487
2014-06-11 00:54:21 +08:00
Junle Li 459de60914 Remove tailing space from jquery-test file 2014-06-10 23:33:48 +08:00
Junle Li a6d7470f12 Add jQuery.ajax test to verify a bug.
The definition does not leverage the returned value of $.ajax()
method well. The official syntax is

```
jqXHR.then(function( data, textStatus, jqXHR ) {}, function( jqXHR, textStatus, errorThrown ) {});
```

(From: http://api.jquery.com/jQuery.ajax/)
2014-06-10 23:30:45 +08:00
Junle Li d12b83f8d0 Fix jQuery.parseHTML does not recognize document
Fix #2307.
2014-06-09 21:28:09 +08:00
Steven Salat 575a77c921 Added test for parseJSON 2014-05-15 14:23:05 -07:00
Steven 9af5cff974 $.parseJSON should return any instead of Object
Here is my test:
```js
var i = JSON.parse('1');
var a = JSON.parse('[1]');
var o = JSON.parse('{"foo":"bar"}');
var s = JSON.parse('"string"');
var n = JSON.parse('null');

i instanceof Object; // false
a instanceof Object; // true
o instanceof Object; // true
s instanceof Object; // false
n instanceof Object; // false
```

JSON.parse returns the `any` type so I think this method should do the same.

More of the discussion regarding this pull request can be found on the original commit 8c23d04a5b

https://github.com/borisyankov/DefinitelyTyped/commit/8c23d04a5b4a0505df042a82be90f95adff02d87
2014-05-14 18:00:49 -07:00
John Reilly c259dba094 jQuery: Add even more specific val setters 2014-04-29 13:52:47 +01:00
John Reilly 7c8a67a402 jQuery: Add more specific val setters 2014-04-29 13:48:00 +01:00
Joshua Strobl c5d912aca6 Fixed indentation in jquery.d.ts 2014-04-07 18:48:02 +03:00
Joshua Strobl f578b03fcf Added declaration that allows data to be based for on() without needing the optional selector. 2014-04-07 01:46:34 +03:00
John Reilly 1f368c4187 Merge pull request #1916 from DavidRogers/master
JQuery: Add support for optional event data.
2014-04-03 20:53:22 +02:00
John Reilly a4de992641 Merge pull request #1922 from MaceWindu/master
Deferred callback parameters fix
2014-04-03 06:25:39 +01:00
Christiaan Rakowski d89a73caaf misplace quote 2014-03-31 15:35:47 +02:00
MaceWindu 3f1c041150 Fix typo 2014-03-28 17:32:16 +01:00
MaceWindu d92f1822bd fix tests, add additional overrides to deferred methods 2014-03-26 21:03:19 +01:00
MaceWindu 9f9d58db21 Fix callback parameters type for $.Deffered methods 2014-03-26 17:20:55 +01:00
David Rogers 2e2fdad634 Add support for optional event data. 2014-03-25 11:41:14 -07:00
John Reilly a8890740fc jQuery: remove unused resolve 2014-03-24 12:59:48 +00:00
Brian Zengel 622cb22a69 First arg of resolve method should be optional.
This is because you may want to resolve a deferred without passing anything.
2014-03-21 13:57:19 -04:00
John Reilly 99fa7392f3 jQuery: Promises - made first arg optional 2014-03-19 09:55:21 +00:00
John Reilly ee580ff303 jQuery: As promised 2014-03-17 15:26:53 +00:00
John Reilly 23c057e243 jQuery: Promises promises 2014-03-17 15:00:39 +00:00
John Reilly b18a971c9a jQuery: are we there yet? 2014-03-17 14:39:08 +00:00