@viewfly/platform-browser 2.0.0-alpha.7 → 2.0.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.
@@ -52,6 +52,10 @@ class DomRenderer extends NativeRenderer {
52
52
  node.textContent = '';
53
53
  }
54
54
  setProperty(node, key, value, namespace) {
55
+ if (value == null) {
56
+ this.removeProperty(node, key, namespace);
57
+ return;
58
+ }
55
59
  if (namespace) {
56
60
  const prefix = 'xlink:';
57
61
  if (key.startsWith(prefix)) {
package/bundles/index.js CHANGED
@@ -54,6 +54,10 @@ class DomRenderer extends core.NativeRenderer {
54
54
  node.textContent = '';
55
55
  }
56
56
  setProperty(node, key, value, namespace) {
57
+ if (value == null) {
58
+ this.removeProperty(node, key, namespace);
59
+ return;
60
+ }
57
61
  if (namespace) {
58
62
  const prefix = 'xlink:';
59
63
  if (key.startsWith(prefix)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@viewfly/platform-browser",
3
- "version": "2.0.0-alpha.7",
3
+ "version": "2.0.1",
4
4
  "description": "This project is used to enable the Viewfly framework to run in a browser.",
5
5
  "main": "./bundles/index.js",
6
6
  "module": "./bundles/index.esm.js",
@@ -14,7 +14,7 @@
14
14
  "license": "MIT",
15
15
  "keywords": [],
16
16
  "dependencies": {
17
- "@viewfly/core": "^2.0.0-alpha.7",
17
+ "@viewfly/core": "^2.0.0",
18
18
  "csstype": "^3.1.2"
19
19
  },
20
20
  "devDependencies": {