Comparing version 0.2.4 to 0.2.5
@@ -6,3 +6,3 @@ var is = require('../is'); | ||
// Special case when length is two, for performance | ||
arr.length === 2 ? arr[0](arr[1]) : arr[0].apply(undefined, arr.splice(1)); | ||
arr.length === 2 ? arr[0](arr[1]) : arr[0].apply(undefined, arr.slice(1)); | ||
}; | ||
@@ -9,0 +9,0 @@ } |
{ | ||
"name": "snabbdom", | ||
"version": "0.2.4", | ||
"version": "0.2.5", | ||
"description": "A virtual DOM library with focus on simplicity, modularity, powerful features and performance.", | ||
@@ -5,0 +5,0 @@ "main": "snabbdom.js", |
@@ -135,2 +135,5 @@ # Snabbdom | ||
Hooks are a way to hook into the lifecycle of DOM nodes. Snabbdom offers a rich | ||
selection of hooks. | ||
#### Overview | ||
@@ -179,3 +182,3 @@ | ||
This describes the core modules. | ||
This describes the core modules. All modules are optional. | ||
@@ -210,3 +213,3 @@ ### The class module | ||
}, 'Say my name, and every colour illuminates'); | ||
`````` | ||
``` | ||
@@ -224,4 +227,11 @@ #### Delayed properties | ||
This makes it easy to declaratively animate the entry of elements. | ||
#### Set properties on `remove` | ||
Styles set in the `remove` property will take effect once the element is about | ||
to be moved from the DOM. The applied styles should be animated with CSS | ||
transitions. Only once all the styles is done animating will the element be | ||
removed from the DOM. | ||
```javascript | ||
@@ -234,2 +244,4 @@ h('span', { | ||
This makes it easy to declaratively animate the removal of elements. | ||
#### Set properties on `destroy` | ||
@@ -236,0 +248,0 @@ |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
482701
290