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 DependencyChecker if branch that looks at attributes with a fixed value #672

Merged
merged 1 commit into from
Dec 8, 2016

Conversation

ibdknox
Copy link
Contributor

@ibdknox ibdknox commented Dec 8, 2016

Very strange symptoms are caused by this mistake which would prevent some blocks from running even when changes should've made them do so. Any block that looked for an attribute with a fixed value on a record with no tags would be skipped since attr cannot be both true and an object at the same time :(

@@ -120,7 +120,7 @@ export class DependencyChecker {
if(deps["any"]) {
let attr = deps["any"][a];
if(attr === true) return true;
if(attr === true && attr[v] === true) return true
if(attr && attr[v] === true) return true
Copy link
Contributor

Choose a reason for hiding this comment

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

😢

@joshuafcole joshuafcole merged commit 44b086e into master Dec 8, 2016
@cmontella cmontella deleted the fix-tagless-constant-attribute-checking branch December 8, 2016 23:01
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