From 493172efeb889ddebc9cde5729dd04b1abe7ddbb Mon Sep 17 00:00:00 2001 From: Michael Aird Date: Tue, 9 Oct 2012 16:36:01 -0300 Subject: [PATCH 1/2] Adding some missing options --- .../jQuery/jQuery.Core/jQueryAjaxOptions.cs | 72 +++++++++++++++++++ 1 file changed, 72 insertions(+) diff --git a/src/Libraries/jQuery/jQuery.Core/jQueryAjaxOptions.cs b/src/Libraries/jQuery/jQuery.Core/jQueryAjaxOptions.cs index 15b92b106..b5397efdb 100644 --- a/src/Libraries/jQuery/jQuery.Core/jQueryAjaxOptions.cs +++ b/src/Libraries/jQuery/jQuery.Core/jQueryAjaxOptions.cs @@ -32,6 +32,18 @@ public sealed class jQueryAjaxOptions { public jQueryAjaxOptions(params object[] nameValuePairs) { } + /// + /// Gets or sets the content type sent in the request header that tells the server what kind of response it will accept in return. + /// + [IntrinsicProperty] + public Dictionary Accepts { + get { + return false; + } + set { + } + } + /// /// Gets or sets whether the request is async. /// @@ -81,6 +93,18 @@ public sealed class jQueryAjaxOptions { } } + /// + /// Gets or sets a map of string/regular-expression pairs that determine how jQuery will parse the response, given its content type. + /// + [IntrinsicProperty] + public Dictionary Contents { + get { + return false; + } + set { + } + } + /// /// Gets or sets the content type of the data sent to the server. /// @@ -105,6 +129,30 @@ public sealed class jQueryAjaxOptions { } } + /// + /// Gets or sets a map of dataType-to-dataType converters. + /// + [IntrinsicProperty] + public Dictionary Converters { + get { + return false; + } + set { + } + } + + /// + /// Gets or sets if you wish to force a crossDomain request (such as JSONP) on the same domain, set the value of crossDomain to true + /// + [IntrinsicProperty] + public bool CrossDomain { + get { + return false; + } + set { + } + } + /// /// Gets or sets the data to be sent to the server. /// @@ -153,6 +201,18 @@ public sealed class jQueryAjaxOptions { } } + /// + /// Gets or sets if a map of additional header key/value pairs to send along with the request. + /// + [IntrinsicProperty] + public Dictionary Headers { + get { + return false; + } + set { + } + } + /// /// Gets or sets whether the request is successful only if its been modified since /// the last request. @@ -251,6 +311,18 @@ public sealed class jQueryAjaxOptions { } } + /// + /// Gets or sets a map of numeric HTTP codes and functions to be called when the response has the corresponding code. + /// + [IntrinsicProperty] + public Dictionary StatusCode { + get { + return null; + } + set { + } + } + /// /// Gets or sets the function to invoke upon successful completion of the request. /// From c0f5f266d2ffb623ce0db481dbe55146452fa47d Mon Sep 17 00:00:00 2001 From: Michael Aird Date: Wed, 10 Oct 2012 14:25:10 -0300 Subject: [PATCH 2/2] Update src/Libraries/jQuery/jQuery.Core/jQueryAjaxOptions.cs --- .../jQuery/jQuery.Core/jQueryAjaxOptions.cs | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/Libraries/jQuery/jQuery.Core/jQueryAjaxOptions.cs b/src/Libraries/jQuery/jQuery.Core/jQueryAjaxOptions.cs index b5397efdb..3172cb33c 100644 --- a/src/Libraries/jQuery/jQuery.Core/jQueryAjaxOptions.cs +++ b/src/Libraries/jQuery/jQuery.Core/jQueryAjaxOptions.cs @@ -36,9 +36,9 @@ public sealed class jQueryAjaxOptions { /// Gets or sets the content type sent in the request header that tells the server what kind of response it will accept in return. /// [IntrinsicProperty] - public Dictionary Accepts { + public Dictionary Accepts { get { - return false; + return null; } set { } @@ -97,9 +97,9 @@ public sealed class jQueryAjaxOptions { /// Gets or sets a map of string/regular-expression pairs that determine how jQuery will parse the response, given its content type. /// [IntrinsicProperty] - public Dictionary Contents { + public Dictionary Contents { get { - return false; + return null; } set { } @@ -133,9 +133,9 @@ public sealed class jQueryAjaxOptions { /// Gets or sets a map of dataType-to-dataType converters. /// [IntrinsicProperty] - public Dictionary Converters { + public Dictionary> Converters { get { - return false; + return null; } set { } @@ -205,9 +205,9 @@ public sealed class jQueryAjaxOptions { /// Gets or sets if a map of additional header key/value pairs to send along with the request. /// [IntrinsicProperty] - public Dictionary Headers { + public Dictionary Headers { get { - return false; + return null; } set { } @@ -315,7 +315,7 @@ public sealed class jQueryAjaxOptions { /// Gets or sets a map of numeric HTTP codes and functions to be called when the response has the corresponding code. /// [IntrinsicProperty] - public Dictionary StatusCode { + public Dictionary StatusCode { get { return null; }