Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

snabbdom

Package Overview
Dependencies
Maintainers
1
Versions
61
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

snabbdom - npm Package Compare versions

Comparing version 0.2.4 to 0.2.5

2

modules/eventlisteners.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc