-
Notifications
You must be signed in to change notification settings - Fork 22
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
ns.ViewCollection баг обновления ноды вида #590
Comments
После фикса тесты не упали, плохо покрыли :/ |
Судя по коду, да https://github.com/yandex-ui/noscript/search?utf8=✓&q=ns.replaceNode |
Подебажил на тестовом проекте - вроде бы всё корректно работает в текущей реализации https://github.com/chestozo/noscript-demo. |
Почитал внимательно комменты |
У нас был как-то nullreference тут. |
Возможно, тоже связано #579 |
Вот тут:
https://github.com/yandex-ui/noscript/blob/master/src/ns.viewCollection.js#L671
ns.replaceNode(view._extractNode(newNode), view.node);
но если посмотреть на
ns.replaceNode
https://github.com/yandex-ui/noscript/blob/master/src/ns.dom.js#L9:Ну т.е. по ощущениям должно быть наоборот:
ns.replaceNode(view.node, view._extractNode(newNode));
Я прав / не прав?
The text was updated successfully, but these errors were encountered: