| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
|
Thanks for your pull request. It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). 📝 Please visit https://cla.developers.google.com/ to sign. Once you've signed, please reply here (e.g. I signed it!) and we'll verify. Thanks.
|
Sorry, something went wrong.
|
CLAs look good, thanks! |
Sorry, something went wrong.
|
need to add a test to ensure that callback is actually executed to prevent such situations in the future |
Sorry, something went wrong.
|
I update the callback name test, it can be any function name. |
Sorry, something went wrong.
| nextRequestID(): string { return `__req${_nextRequestId++}`; } | ||
|
|
||
| requestCallback(id: string): string { return `${JSONP_HOME}${id}_finished`; } | ||
| requestCallback(id: string): string { return _getJsonpCallbackName(id); } |
There was a problem hiding this comment.
revert
Sorry, something went wrong.
| }); | ||
|
|
||
| it('callback name should not contain dots', () => { | ||
| it('callback name should be a function name', () => { |
There was a problem hiding this comment.
as we saw testing callback name doesn't actually verify anything.
Need a test for Uncaught ReferenceError: __ng_jsonp____req0_finished is not defined arror
Sorry, something went wrong.
There was a problem hiding this comment.
this callback name can be any validate function name, and I think it's enough. What to cause __ng_jsonp____req0_finished is not defined is the error of the data https://github.com/angular/angular/blob/master/modules/playground/src/jsonp/people.json#L2
Sorry, something went wrong.
|
@alxhub this pr will add callbacks to the global namespace (window). It may be very unexpected :) |
Sorry, something went wrong.
|
I actually think it's okay, and the behavior is correct. The callbacks are only there while the request is in progress, and some APIs have issues with dots in the callback names. |
Sorry, something went wrong.
|
ok :) |
Sorry, something went wrong.
|
so, If I need to resolve the conflicts? |
Sorry, something went wrong.
|
how about this? |
Sorry, something went wrong.
|
@doxiaodong it will be fixed in the new http module in 4.0 |
Sorry, something went wrong.
|
@doxiaodong What is the status of the task? @angular/http is deprecated, please closed PR |
Sorry, something went wrong.
|
ok |
Sorry, something went wrong.
|
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
fix #14267