mirror of
https://github.com/odoo/owl.git
synced 2025-10-06 19:59:41 +07:00
reorganize files
This commit is contained in:
+16
@@ -0,0 +1,16 @@
|
||||
import {init} from './snabbdom';
|
||||
import {attributesModule} from './modules/attributes'; // for setting attributes on DOM elements
|
||||
import {classModule} from './modules/class'; // makes it easy to toggle classes
|
||||
import {propsModule} from './modules/props'; // for setting properties on DOM elements
|
||||
import {styleModule} from './modules/style'; // handles styling on elements with support for animations
|
||||
import {eventListenersModule} from './modules/eventlisteners'; // attaches event listeners
|
||||
import {h} from './h'; // helper function for creating vnodes
|
||||
var patch = init([ // Init patch function with choosen modules
|
||||
attributesModule,
|
||||
classModule,
|
||||
propsModule,
|
||||
styleModule,
|
||||
eventListenersModule
|
||||
]) as (oldVNode: any, vnode: any) => any;
|
||||
export const snabbdomBundle = { patch, h: h as any };
|
||||
export default snabbdomBundle;
|
||||
Reference in New Issue
Block a user