Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

loadUrl enhancements #134

Merged
merged 2 commits into from
Mar 6, 2018
Merged

loadUrl enhancements #134

merged 2 commits into from
Mar 6, 2018

Conversation

robinnorth
Copy link
Collaborator

  • Make options parameter optional
  • Allow partial overriding of instance options when calling loadUrl directly
  • Make requestOptions optional
  • Document loadUrl usage and provide examples

Closes #130

- Make `options` parameter optional
- Allow partial overriding of instance options when calling `loadUrl` directly
- Make `requestOptions` optional
- Document `loadUrl` usage and provide examples
README.md Outdated
```

When instantiating a `Pjax` object, you need to pass all options as an object:
#### `loadUrl(href, (options))`
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should (options) be [options] to signify it's optional?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

That's what the extra brackets are for, but will change to the JSDoc syntax.

@robinnorth robinnorth merged commit 05fa833 into master Mar 6, 2018
@BehindTheMath BehindTheMath deleted the feature/loadurl-enhancements branch March 6, 2018 18:44
@robinnorth robinnorth added this to the 0.2.6 milestone Mar 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants