-
Notifications
You must be signed in to change notification settings - Fork 229
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
Conversation
incorrect call to angle function introduced in commit dcb1f0c This fixes bug https://bugs.dojotoolkit.org/ticket/17652
There was a problem hiding this 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; |
There was a problem hiding this comment.
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) ?
There was a problem hiding this comment.
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(){ |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
I am not sure what is going wrong. I did sign the CLA. In fact, it won't let me sign it again. |
OK, now the CLA is showing up ... |
There was a problem hiding this 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).
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