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

Fix Issue #12 idempotent #18

Merged
merged 2 commits into from
May 26, 2015
Merged

Fix Issue #12 idempotent #18

merged 2 commits into from
May 26, 2015

Conversation

cmprescott
Copy link
Owner

Now correctly returns when the module changes element text or not.

This should fail in the travis build job. I have a promising fix locally! However, I want to make sure this fails CI before applying the fix, so others can more easily verify my fix.
Refactored code to check if the target (text or attr val) is different before setting anything. If not in check mode and target changed; then set the new value.
cmprescott added a commit that referenced this pull request May 26, 2015
Fix Issue #12 not idempotent. Always returned changed.
@cmprescott cmprescott merged commit 6c58095 into master May 26, 2015
@cmprescott cmprescott deleted the feature/#12_Idempotent branch May 26, 2015 14:11
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.

1 participant