You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
snabbdom/snabbdom.bundle.js

12 lines
581 B
JavaScript

var snabbdom = require('./snabbdom');
var patch = snabbdom.init([ // Init patch function with choosen modules
require('./modules/attributes'), // makes it easy to toggle classes
require('./modules/class'), // makes it easy to toggle classes
require('./modules/props'), // for setting properties on DOM elements
require('./modules/style'), // handles styling on elements with support for animations
require('./modules/eventlisteners'), // attaches event listeners
]);
var h = require('./h'); // helper function for creating vnodes
module.exports = { patch: patch, h: h }