-
Notifications
You must be signed in to change notification settings - Fork 42
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
Tweener の _updateTask で "Uncaught RangeError: Maximum call stack size exceeded" #171
Comments
callとsetのみはTweenerではなくupdateかenterframeイベントを使用 これで大丈夫じゃないかと思います |
clearはニュアンス的にアニメーション無くすような感じなのでclearでloopにfalseセットすれば、clearの方は大丈夫ですね |
たしかに call / set のみの tweener は、使う側で気を付けるのはありかも。wait いれれば、動かすこともできるし、 loop を clear で、初期化してないのは、何か理由があるのかな~?とか思ってました^^ clear しなくても _tasks が空で、loop == ture にすると、やっぱりひっかるので…
|
そこでチェック入れてもいいですが、普通に考えても何もアニメーション追加せずにsetLoop(true)するのはおかしいですよねw clearは意図的にアニメーションクリアするので、こっちでloop=falseするのは入れといたほうがいいですね。 |
なんとなく、どんなふうに使っても致命的なエラーには、ならないようにしておいた方が使う人にとっては良いかな~と思うところもあるんですよね。初心者な人とか特に。 call / set の方は、うまい解決方法が思いつかない、使う人が注意で 😄 |
call、setは一応、一度でもcallとset以外のアニメーションがセットされたかどうかのフラグを作ってそれでチェックすればできると思います。(このフラグはclearで消さないといけない) |
MenuDialog の方は、enterfarme にして、プルリクします。 |
tweener を使うときに以下の条件で_updateTask() の無限再帰呼び出しが発生します。
The text was updated successfully, but these errors were encountered: