Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

ajax: post and get accept config object [issue #1986]#1995

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Closed
togakangaroo wants to merge4 commits intojquery:masterfromsurgeforward:master

Conversation

togakangaroo
Copy link
Contributor

Seethis issue for more discussion.

@dmethvin
Copy link
Member

I love it when someone delivers. 🌟

url: url,
type: method,
dataType: type,
data: data,
success: callback
});
}, (jQuery.isPlainObject(url) && url)));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Should be spaces inside the parens here per our style guide.

Copy link
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Trying to find it in the style guide...you mean it should be( jQuery.isPlainObject(url) && url )))?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Although this allows a mixed call like$.ajax({ options }, data) I think we'd only want to document a singleoptions object.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

( jQuery.isPlainObject( url ) && url ) ) )

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

The outer parens aren't needed tho, right?

Copy link
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

No I don't think they're needed, just make it clearer that its a single expression. I'll remove. Agree about only documenting a singleoptions object

@dmethvin
Copy link
Member

@togakangaroo Be sure that you've signed our CLA,https://contribute.jquery.org/CLA/

@togakangaroo
Copy link
ContributorAuthor

@dmethvin I signed it, thanks

@togakangaroo
Copy link
ContributorAuthor

I'm not super sure where/how to update the docs btw. Really mostly where

@@ -2034,6 +2034,25 @@ module( "ajax", {
});
});

asyncTest( "jQuery[get|post]( config ) - simple with xml", 2, function() {
jQuery.when.apply(jQuery,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

The same remark about spaces; there should be a space after(,[ and before),] etc.

@dmethvin
Copy link
Member

I createdjquery/api.jquery.com#620 , The docs are athttp://github.com/jquery/api.jquery.com/#readme, they're processed from XML so you'll want to go through the setup listed there or pull down the preconfigured VM so that you can be sure the markup looks good.

dmethvin pushed a commit that referenced this pull requestJan 12, 2015
markelog pushed a commit that referenced this pull requestNov 10, 2015
@locklockbot locked asresolvedand limited conversation to collaboratorsJan 19, 2019
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

3 participants
@togakangaroo@dmethvin@mgol

[8]ページ先頭

©2009-2025 Movatter.jp