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

AMD conversion for axial (z-axis) vectors, fix incorrect call angle function call #275

Closed
wants to merge 1 commit into from

Conversation

bvds
Copy link
Contributor

@bvds bvds commented Jul 14, 2017

Add AMD conversion for axial (z-axis) vectors.
Fix incorrect call to angle function introduced in commit
dcb1f0c
This fixes bug https://bugs.dojotoolkit.org/ticket/17652

incorrect call to angle function introduced in commit
   dcb1f0c
This fixes bug https://bugs.dojotoolkit.org/ticket/17652
@jsf-clabot
Copy link

jsf-clabot commented Jul 14, 2017

CLA assistant check
All committers have signed the CLA.

Copy link
Member

@dylans dylans left a comment

Choose a reason for hiding this comment

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

Looks reasonable, a couple of small thoughts... make sure to please click through and approve the revised CLA when you get a chance as well.

var angle = positioning.angle(obj.start, obj);
angle<0 ? angle = 360 + angle : angle;
var angle = this.util.angle(obj);
angle = angle<0 ? 360 + angle : angle;
Copy link
Member

Choose a reason for hiding this comment

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

Perhaps to avoid this type of mistake again, we should make it angle = (angle<0) ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I believe that operator precedence makes the parentheses superfluous, but you can certainly add it for clarity.

@@ -352,7 +351,11 @@ if(0 && dojox.drawing.defaults.zAxisEnabled){
}
},this);
};
dojo.connect(this, "onRenderStencil", this, function(){ if(this.zSelected){ this.zDeselect(this.zSelected)}});
dojo.connect(this, "onRenderStencil", this, function(){
Copy link
Member

Choose a reason for hiding this comment

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

Given the other changes, it would be nice to replace connect statements with dojo/on and/or aspect.after, but I realize that's non-trivial.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'd like to get this fix in now, since the fix has been sitting there for four years.

@bvds
Copy link
Contributor Author

bvds commented Jul 14, 2017

I am not sure what is going wrong. I did sign the CLA. In fact, it won't let me sign it again.

@bvds bvds closed this Jul 14, 2017
@bvds bvds reopened this Jul 14, 2017
@bvds
Copy link
Contributor Author

bvds commented Jul 14, 2017

OK, now the CLA is showing up ...

Copy link
Member

@dylans dylans left a comment

Choose a reason for hiding this comment

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

Fair enough, I'll land this and a few others when I get some time (hopefully within the week).

@dylans dylans added this to the 1.12.3 milestone Aug 10, 2017
@dylans
Copy link
Member

dylans commented Aug 10, 2017

Thanks. Closed via 8cf64ec. Backported as 6dfd719 (1.12), 5498de1 (1.11), 4b7efa2 (1.10), and 8172877 (1.9).

@dylans dylans closed this Aug 10, 2017
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.

3 participants