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

Full body response on onError option for spf.navigate #402

Merged
merged 1 commit into from
May 20, 2016
Merged

Full body response on onError option for spf.navigate #402

merged 1 commit into from
May 20, 2016

Conversation

tchiotludo
Copy link
Contributor

For now, we just received on simple detail.err string for failed navigate on option onError, I've added a detail.xhr with the full XMLHttpRequest in order to have more detail and responseText for debuging or displaying

* @private
*/
spf.nav.handleNavigateError_ = function(options, url, err) {
spf.nav.handleNavigateError_ = function(options, url, err, xhr) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: Optional fields should be named opt_*

@nicksay nicksay added this to the SPF 24 (v2.4.0) milestone May 18, 2016
@DavidCPhillips
Copy link
Contributor

Whoops, this one slipped a bit.

The changes look good. Could you squash the commits into one? Then we'll go ahead and merge it in.

@tchiotludo
Copy link
Contributor Author

it's done.
Thanks

@DavidCPhillips
Copy link
Contributor

LGTM

@DavidCPhillips DavidCPhillips merged commit 2b61bf2 into youtube:master May 20, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants