diff --git a/.npmignore b/.npmignore new file mode 100644 index 0000000..70a271d --- /dev/null +++ b/.npmignore @@ -0,0 +1,4 @@ +**/* + +!src/ +!pkg/ \ No newline at end of file diff --git a/package.json b/package.json index 7ec8f77..8a3ea02 100644 --- a/package.json +++ b/package.json @@ -15,7 +15,8 @@ }, "scripts": { "build": "pack build", - "test": "testee test/connect.html test/disconnect.html test/change.html --browsers firefox" + "test": "testee test/connect.html test/disconnect.html test/change.html --browsers firefox", + "prepare": "npm run build" }, "repository": { "type": "git", diff --git a/src/registry.js b/src/registry.js index cb23605..46b1845 100644 --- a/src/registry.js +++ b/src/registry.js @@ -117,8 +117,7 @@ class CustomAttributeRegistry { } } // Attribute was removed - else if(newVal == null && !!inst.value) { - inst.value = newVal; + else if(newVal == null) { if(inst.disconnectedCallback) { inst.disconnectedCallback(); }