taijiweb / domcom Goto Github PK
View Code? Open in Web Editor NEWthe web framework to provide dom component
License: MIT License
the web framework to provide dom component
License: MIT License
emit 'beforeAttach' and 'afterDetach' for component and all it's offspring component
Consider always emit 'beforeAttach' and 'afterDetach' for component and all it's offspring component, if the listeners of the offspring component is not empty.
Register error handler callback by using dc.onerror
Execute this callback while the error is throw
Now "each" component is not a TransformComponent subclass any more. Instead, it just becomes a List component with some additional field and method. some works are done in 'willRender' and 'didRender' compnent event.
It is possible to generalize the new solution for "each" component to all TransformComponent, and remove TransformComponent class hierarchy. But I does not get the whole solution for now. The difficult exists in multiple level chained transformation and one baseComponent can be used in different places. Expect more ideas about this.
minify the removing and reinsert of node as possible
A B C D -> B C D A, should only removing and reinsert A, because only A's succ is changed
A B C D -> D A B C, should only removing reinsert D, because only D's succ is changed.
method:
record parent and nextNode, and the status of whether they are lived in dom
Component.alive field
Now There is basically enough Chinese document, which has covered many aspects of domcom. But more English document is required. Hope someone can help to add more English documents. Your contribution are very appreciated and welcomed! Thanks!
The getBaseComponent method was used some time ago, but it was removed in the latest big refactor. Now I think it may be better to add it back, and only removeNode and attachNode when oldBaseComponent != newBaseComponent
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.