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