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

Add object only api #10

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Conversation

thorst
Copy link
Collaborator

@thorst thorst commented Apr 18, 2014

Allow user to only pass in an object, with a key for url. This commit maintains backwards
compatibility.

This is optional, I like passing 1 (potentially complex) object to a function. This is cleaner
in my opinion, and for only a couple of lines I think its should be added in the base project.

I use this by defining a set of defaults I always want to use, then when I'm ready to call the
plugin I extend my setting array with the specifics of that call.

Again, this is purely preference, but I prefer this api, and others may also.

allow user to only pass in an object, with a key of url. maintains backwards compatibility.
@thorst thorst changed the title only object api Add object only api Apr 21, 2014
@thorst
Copy link
Collaborator Author

thorst commented Apr 21, 2014

Hows that?

@lencioni
Copy link
Collaborator

Looks good. Could you update the readme to reflect this change? @mkdynamic what do you think about this?

@thorst
Copy link
Collaborator Author

thorst commented Apr 22, 2014

Ill do that today.

@thorst
Copy link
Collaborator Author

thorst commented Jul 8, 2014

Any chance this could land?

@mkdynamic
Copy link
Owner

Looks good to me fwiw. @lencioni

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.

None yet

3 participants