@lukekaalim/act-web 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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/prop.js +2 -2
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@lukekaalim/act-web",
3
3
  "main": "entry.js",
4
4
  "type": "module",
5
- "version": "1.3.0",
5
+ "version": "1.3.1",
6
6
  "sideEffects": false,
7
7
  "scripts": {
8
8
  "test": "cd ../..; npm test",
package/prop.js CHANGED
@@ -58,7 +58,7 @@ export const setAttributeProp = (
58
58
  export const setDOMTokenList = (
59
59
  list/*: DOMTokenList*/,
60
60
  prop/*: PropDiff*/
61
- ) => {
61
+ )/*: void*/ => {
62
62
  const next = prop.next;
63
63
  if (typeof prop.next === 'string')
64
64
  // $FlowFixMe
@@ -82,7 +82,7 @@ export const setHTMLProp = (
82
82
  setStylesProp(element, prop);
83
83
  else if (prop.key in element && !propBlacklist.has(prop.key) && element instanceof HTMLElement) {
84
84
  const htmlElement = (element/*: Object*/);
85
- if (typeof htmlElement[prop.key] === DOMTokenList)
85
+ if (htmlElement[prop.key] instanceof DOMTokenList)
86
86
  setDOMTokenList(htmlElement[prop.key], prop);
87
87
  else
88
88
  htmlElement[prop.key] = prop.next;