Commit Graph

45 Commits (fe7e82dd72f5bc1a53bde1afa2c7666336cf381b)

Author SHA1 Message Date
Matt Kaemmerer e1d93dca97 Defer splitting namespace until needed 8 years ago
Matt Kaemmerer 12bd7dd770 Call setAttributeNS instead of setAttribute for keys with a known namespace 8 years ago
fix-fix 95913ee3ca Don't treat Object.prototype properties as boolean attributes
Keep boolean properties in an object without prototype to prevent
false positive checks against attributes with the same name as Object.prototype
properties.
9 years ago
K. 4139431794 Optimization invoking handler with multiple arguments. 9 years ago
K. cf4793c10a Removing 'elm changed' case. 9 years ago
Kayo Phoenix 174941c6a4 Added vnode as last argument to event handler 9 years ago
Kayo Phoenix 831bd0e1ee Optimizations for eventlistener.js 9 years ago
K. 8ca33c916b New implementation of eventlisteners module 9 years ago
Simon Friis Vindum 6c41430677 Merge pull request #102 from yyx990803/master
Return early in module update functions
9 years ago
kay999 2222b945ed fixed indentation 9 years ago
kay999 cebc630487 eventlisteners works if a listener is removed
In the current version, a event-listener is never removed, which leads to problems in certain use cases. This patch fixes this.
9 years ago
Evan You 69a7c72d72 Return early in module update functions 9 years ago
hville 4ab41ba8d2 Completed tests and matched indendation to spaces 9 years ago
hville 5b164c780a new dataset Module and Test 9 years ago
paldepind 88501771bd Remove backtics 9 years ago
André Staltz 394168f730 Fix safety check for requestAnimationFrame
Doing `window &&` does not achieve the expected behavior, it instead crashes with an error `ReferenceError: window is not defined`. This fix is simple and necessary for server-side rendering.
9 years ago
Garth Williams daba67692e Fix cursor jumping to the end of "controlled" inputs
DOM `INPUT.value` should never be updated when it matches the new vnode.

This fixes issues where typing into an INPUT with a sync event handler
cause a render (such as for validation feedback) where setting
`INPUT.value` also pushes the cursor to the end of the input.
9 years ago
Garth Williams 0425b2e5ed Ensure that class, props and style artefacts are not left after re-render 9 years ago
Simon Friis Vindum b0999ad634 Merge pull request #51 from SkaterDad/hero-develop
Hero module updates
9 years ago
Mike Montoya cd0eff09b8 Safety check for requestAnimationFrame 9 years ago
Mike Montoya 164164518e Copy ALL inherited CSS properties except vendor prefixed ones. 9 years ago
Mike Montoya 31d2e1e24c Cache more inherited properties in destroy() 9 years ago
Mike Montoya 870e9ba87e Re-apply saved inherited styles using a for..in loop for flexibility. 9 years ago
Mike Montoya 1a45b9dcfd Now works with hero text that changes size and alignment. 9 years ago
chenxsan 7ba68b9a24 Fixed 'Uncaught ReferenceError'
When using snabbdom with webpack, the webpack output file is in strict mode, and that would cause error:

> Uncaught ReferenceError: requestAnimationFrame is not defined at ...

This pull request fixed it.
9 years ago
Mike Montoya 7aa7fc10d9 Better text handling, etc. 9 years ago
Mike Montoya 8454c580bc Hero: Save bounding rectangle in 'destroy' hook, use it later. Set width/height/margin before animating. 9 years ago
yelouafi f86608cd25 replaced Regex with object dict for boolean attributes 10 years ago
yelouafi 379f736254 Support boolean attributes 10 years ago
yelouafi 05ff217997 remove boolean attributes if value is falsy 10 years ago
yelouafi 5c6bea76ce updated docs 10 years ago
Yassine Elouafi dec59f6584 created attribute module 10 years ago
paldepind d9fe2a4cd6 Do not mutate event listener parameter array 10 years ago
paldepind d0a2f5176e Invoke event listener with several arguments in array #13 10 years ago
paldepind a6a814c9eb Snabbdom will always remove an element from its proper parent, even if the element has been changed 10 years ago
paldepind 4c1893423a Add attachTo helper 10 years ago
paldepind 24206f430a Add attachTo module 10 years ago
paldepind c67611f509 Non array event listeners can be replaced 10 years ago
paldepind 529fdde299 Properly update event handler and value in array event listeners 10 years ago
paldepind 39926a9cfb New syntax for delayed style 10 years ago
paldepind f43fe5a107 Add module for hero animations 10 years ago
paldepind 4b8409d8cb Add styles for destroy hook 10 years ago
paldepind 8420b6cd3d Update syntax for style on removal 10 years ago
paldepind 36377a5468 Style module supports element removal styles 10 years ago
paldepind c066feb080 Huge modularizing refactor 10 years ago