atom.io 0.23.4 → 0.23.5

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.
@@ -96,11 +96,11 @@ var Molecule = class _Molecule {
96
96
  }
97
97
  detach(child) {
98
98
  const childIndex = this.below.indexOf(child);
99
- if (childIndex !== void 0) {
99
+ if (childIndex !== -1) {
100
100
  this.below.splice(childIndex, 1);
101
101
  }
102
102
  const parentIndex = child.above.indexOf(this);
103
- if (parentIndex !== void 0) {
103
+ if (parentIndex !== -1) {
104
104
  child.above.splice(parentIndex, 1);
105
105
  }
106
106
  }
@@ -57,11 +57,11 @@ var Molecule = class _Molecule {
57
57
  }
58
58
  detach(child) {
59
59
  const childIndex = this.below.indexOf(child);
60
- if (childIndex !== void 0) {
60
+ if (childIndex !== -1) {
61
61
  this.below.splice(childIndex, 1);
62
62
  }
63
63
  const parentIndex = child.above.indexOf(this);
64
- if (parentIndex !== void 0) {
64
+ if (parentIndex !== -1) {
65
65
  child.above.splice(parentIndex, 1);
66
66
  }
67
67
  }
@@ -111,11 +111,11 @@ export class Molecule<Key extends Json.Serializable> {
111
111
 
112
112
  public detach(child: Molecule<any>): void {
113
113
  const childIndex = this.below.indexOf(child)
114
- if (childIndex !== undefined) {
114
+ if (childIndex !== -1) {
115
115
  this.below.splice(childIndex, 1)
116
116
  }
117
117
  const parentIndex = child.above.indexOf(this)
118
- if (parentIndex !== undefined) {
118
+ if (parentIndex !== -1) {
119
119
  child.above.splice(parentIndex, 1)
120
120
  }
121
121
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "atom.io",
3
- "version": "0.23.4",
3
+ "version": "0.23.5",
4
4
  "description": "Composable and testable reactive data library.",
5
5
  "homepage": "https://atom.io.fyi",
6
6
  "sideEffects": false,