domql 1.5.39 → 1.5.40

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": "symbo.ls",
6
- "version": "1.5.39",
6
+ "version": "1.5.40",
7
7
  "repository": "https://github.com/domql/domql",
8
8
  "publishConfig": {
9
9
  "registry": "https://registry.npmjs.org"
@@ -8,15 +8,15 @@ import { exec, report } from '../../utils'
8
8
  */
9
9
  export default (params, element, node) => {
10
10
  const { __attr } = element
11
+ if (isNot('object')) report('HTMLInvalidAttr', params)
11
12
  if (params) {
12
- if (isNot('object')) report('HTMLInvalidAttr', params)
13
13
  for (const attr in params) {
14
- // if (!node) node = element.node
15
14
  const val = exec(params[attr], element)
16
- if (__attr[attr] === val) return
15
+ // if (__attr[attr] === val) return
17
16
  if (val && node.setAttribute) node.setAttribute(attr, val)
18
17
  else if (node.removeAttribute) node.removeAttribute(attr)
19
18
  __attr[attr] = val
20
19
  }
21
20
  }
21
+ console.groupEnd(params, __attr)
22
22
  }