gadicc / meteor-famous-views

Famous, the Meteor Way (with Reactive Blaze Templates/Views)
http://famous-views.meteor.com/
GNU Lesser General Public License v3.0
332 stars 27 forks source link

Fix issue for destroying node #270

Open PankajJatav opened 8 years ago

PankajJatav commented 8 years ago

Hi Gadicc,

Thanks for designing the grate package for meteor + famous. While working this package I found that

"While moving form one route to other routes (or page). Basically your package delete root node of that page and children, sub-children and so on.But I found issue in node deleting method. That only delete odd number of child of a node. Let me explain by an example let suppose i have a node with 5 children, children info save in a array. So when destroy method delete child one, then all children index rearrange in array from 0 to 3. Now while deleting second child it's delete the child whose index 1(third child) and so on and all even number of child remain in DOM."

Please check it and let me know you thoughts.