Skip to content

Add object only api#10

Open
thorst wants to merge 4 commits into
mkdynamic:masterfrom
thorst:object-only-api
Open

Add object only api#10
thorst wants to merge 4 commits into
mkdynamic:masterfrom
thorst:object-only-api

Conversation

@thorst
Copy link
Copy Markdown
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.

thorst added 2 commits April 18, 2014 13:30
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
Copy Markdown
Collaborator Author

thorst commented Apr 21, 2014

Hows that?

@lencioni
Copy link
Copy Markdown
Collaborator

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

@thorst
Copy link
Copy Markdown
Collaborator Author

thorst commented Apr 22, 2014

Ill do that today.

@thorst
Copy link
Copy Markdown
Collaborator Author

thorst commented Jul 8, 2014

Any chance this could land?

@mkdynamic
Copy link
Copy Markdown
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.

3 participants