-
Notifications
You must be signed in to change notification settings - Fork 663
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
Possible bug? #125
Comments
What browser are you testing this in? As I can't replicate this. However you no longer have to call |
Ah sorry you only don't have to call |
I´m using chrome. Now its working!! Thanks |
Glad to hear it : ) - If you see it again though please let me know - I'm certain there's a runaway infinite loop under specific conditions and its getting harder to replicate as the framework matures. |
Matt, in this working pen http://codepen.io/tinchox5/pen/eJYLMM I defined an Actor (new ui.Actor),then I set some properties (.set), and finally I put .sync(), like this:
var box = new ui.Actor({
element: '.box'
});
box.set({
values: {
originX: 0,
originY: 0,
distance: 180,
angle: 240,
opacity: 1,
x: {
transform: fromAngleAndDistance
},
y: {
transform: fromAngleAndDistance
}
}
}).sync();
I wanted to simplify some lines of code, so I did it this:
var box = new ui.Actor({
element: '.box',
values: {
originX: 0,
originY: 0,
distance: 180,
angle: 240,
opacity: 1,
x: {
transform: fromAngleAndDistance
},
y: {
transform: fromAngleAndDistance
}
}
}).sync();
The code isn't working anymore and Console shows : "Uncaught RangeError: Maximum call stack size exceeded"
Here is the new pen http://codepen.io/tinchox5/pen/eJYqaj
The text was updated successfully, but these errors were encountered: