Removed $q dep, opts passing, optimized promises#9
Removed $q dep, opts passing, optimized promises#9nyurik wants to merge 1 commit intotoutpt:masterfrom
Conversation
* in api, this.options was not passed to osmAPI * removed the need for $q - native promises are better * in many cases, there was a wrapping for promises
|
Apparently PhantomJS is the only component out there that doesn't support Promises... In any case, I think I will fork out the API component, as it is highly useful as a standalone feature outside of Angular. I think https://github.com/duivvv/generator-module-boilerplate would be a good starting point for it. |
|
I was about to start something like that for React, so creating kind of OSM API just in javascripts. This lib was one of the first I have created (jmfrancois === toutpt) |
|
@jmfrancois ideally, we should have a simple lib that can be used from the browser AND nodejs (which means XHR needs to be plug-able). The |
Please check if the PR fulfills these requirements
What is the current behavior? (You can also link to an open issue here)
What is the new behavior?
Does this PR introduce a breaking change?
If this PR contains a breaking change, please describe the impact and migration path for existing applications: ...
Other information: