Refactor the Vanilla ES6 example (#1626)
- Simplify the Template module. - Simplify the router. - Convert all of the View render commands to normal methods, and give them more meaningful names. - Convert all of the View bind synthetic events to binding methods, and give them more meaningful names. - Normalize the Store API. - Collapse the Model abstraction, since it consisted mainly of trampolines to methods on Store. - Remove unnecessary dynamic templating for the Clear completed button. - Put .footer inside .main since they are always hidden together. - Make .filter a div, and unnest the <a>s inside the <li>s to avoid unnecessary extra nodes and CSS. - Update the tests to work correctly with the new Vanilla ES6 markup. - Remove unnecessary object orientation in app.js. - Remove boolean traps from methods. - Do not modify the NodeList prototype. - Use cross-browser copmatible NodeList iteration in dispatchEvent of $delegate. - Fix the existing JSDoc comments. - Expand the existing JSDoc comments. - JSDoc more of the code. - Use Google Closure Compiler instead of Babel. It offers useful warnings and generates better code. - Author a learn.json section for the Vanilla ES6 example.
Showing
Please register or sign in to comment