domql 1.3.0 → 1.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "DOM rendering Javascript framework at early stage.",
4
4
  "private": false,
5
5
  "author": "rackai",
6
- "version": "1.3.0",
6
+ "version": "1.3.1",
7
7
  "repository": "https://github.com/rackai/domql",
8
8
  "publishConfig": {
9
9
  "registry": "https://registry.npmjs.org"
@@ -71,6 +71,11 @@ const create = (element, parent, key, options = {}) => {
71
71
  return assignNode(element, parent, assignedKey)
72
72
  }
73
73
 
74
+ // run `on.init`
75
+ if (element.on && isFunction(element.on.init)) {
76
+ on.init(element.on.init, element, element.state)
77
+ }
78
+
74
79
  // generate a CLASS name
75
80
  assignClass(element)
76
81
 
@@ -86,11 +91,6 @@ const create = (element, parent, key, options = {}) => {
86
91
  element.log = log
87
92
  }
88
93
 
89
- // run `on.init`
90
- if (element.on && isFunction(element.on.init)) {
91
- on.init(element.on.init, element, element.state)
92
- }
93
-
94
94
  // enable TRANSFORM in data
95
95
  if (!element.transform) element.transform = {}
96
96