Commit Graph

239 Commits

Author SHA1 Message Date
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:
d41e81980e/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

8c23d04a5b
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
John Reilly
f48f188c6c jQuery: coming on 2014-03-17 14:25:38 +00:00
John Reilly
09e0ce15f4 jQuery: JSDoc get's closer 2014-03-17 14:16:29 +00:00
John Reilly
c5865f9043 jQuery:Lets see if we can be JSDoc complete by v1 2014-03-17 14:08:37 +00:00
John Reilly
3fd61644e2 jQuery: added overload 2014-03-14 17:26:43 +00:00
John Reilly
436d236995 jQuery: closest 2014-03-14 17:20:17 +00:00
John Reilly
002e1bf169 jQuery: Put back in what I accidentally removed 2014-03-14 11:02:11 +00:00
John Reilly
246e0785b8 jQuery: JSDoc completeness within reach
well nearly
2014-03-14 10:16:19 +00:00
John Reilly
7a0963cf69 Merge pull request #1835 from johnnyreilly/master
jQuery: continuing JSDoc
2014-03-13 15:18:21 +00:00
John Reilly
64f7f2b630 jQuery: expanded text to cover number and boolean
following input from @dmethvin
2014-03-13 14:02:36 +00:00
John Reilly
f1cd2ccc32 jQuery: continuing JSDoc
Introducing missing test suites / tightening up typings along the way
2014-03-13 10:37:17 +00:00