Skip to content

fix for not detecting changes on json requests#9

Open
campey wants to merge 3 commits into
vkiryukhin:masterfrom
campey:fix-json-cross-domain
Open

fix for not detecting changes on json requests#9
campey wants to merge 3 commits into
vkiryukhin:masterfrom
campey:fix-json-cross-domain

Conversation

@campey
Copy link
Copy Markdown

@campey campey commented Oct 10, 2012

This fix copies stringify(data) into xhr.responseText if
xhr.responseText is undefined.

When making a cross-domain JSON query, the xhr.responseText comes back
as undefined. This meant that comparing this across calls wasn't working
to identify changes and smart updater wouldn't update on subsequent
calls.

Now it Works.

(sorry about the bad diff... windows fail I think)

This fix copies stringify(data) into xhr.responseText if
xhr.responseText is undefined.

When making a cross-domain JSON query, the xhr.responseText comes back
as undefined. This meant that comparing this across calls wasn't working
to identify changes and smart updater wouldn't update on subsequent
calls.

Now it Works.
@campey
Copy link
Copy Markdown
Author

campey commented Oct 10, 2012

According to this stackoverflow answer

Use the git merge option ignore-space-change or ignore-all-space for the recursive strategy.

This fix copies stringify(data) into xhr.responseText if
xhr.responseText is undefined.

When making a cross-domain JSON query, the xhr.responseText comes back
as undefined. This meant that comparing this across calls wasn't working
to identify changes and smart updater wouldn't update on subsequent
calls.

Now it Works. (hopefully not screwing around with whitespace)
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.

2 participants