modulor's People
modulor's Issues
extract dom_utils
- extract dom_utils.js from modulor.js
- still export them from modulor.js, mark deprecated
- make dom_utils suitable for functional programming
- implement currying of utils
- return element
//example:
const values = $lementsList.map(attr('foo'))
$lementsList.filter(filterFn).forEach(attr('foo', 'ok'))
attr('foo', 'ok', $element)
$lementsList.forEach(html('...'))
- add new functions
- implement
createElement
function - implement
append
function
//example
const $fragment = data.reduce(($frag, value) => {
return append($frag, createElement({ ... })))
}, document.createDocumentFragment());
- improve
html
function
- .html() should return refs
- allow .html() to take
DocumentFragment
orElement
as first argument (#10 )
- remove deprecated
QueriableArray
class and related tests
- subj
generate docs in commit hook
Create todomvc example
Create todomvc example using storybook
append and prepend should support markup string
append
and prepend
should support to append
|prepend
markup string
generate `build` directory on `npm publish`
Core: allow html() to take DocumentFragment as first argument
split this project into several ones
- extract delegate as standalone library
- extract router as standalone library
- extract dom_utils as standalone library
this.off is not a function. (In 'this.off()', 'this.off' is undefined)
Line 321 in 58d5010
On Safari and Safari UIWebView, this throws an error in case of continuous attach and detach.
when disconnectedCallback happens; if the modulor has not completely initialized, this .off stays undefined and throws error. My suggestion would be to make it this.off && this.off()
dom_utils createElement 'attributes' argument is not optional
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.