Comparing version 3.0.6 to 3.0.7
@@ -5,2 +5,7 @@ # Change Log | ||
<a name="3.0.7"></a> | ||
## [3.0.7](https://github.com/zerkalica/lom_atom/compare/v3.0.6...v3.0.7) (2017-11-30) | ||
<a name="3.0.6"></a> | ||
@@ -7,0 +12,0 @@ ## [3.0.6](https://github.com/zerkalica/lom_atom/compare/v3.0.5...v3.0.6) (2017-11-30) |
@@ -261,11 +261,16 @@ function _defineProperties(target, props) { | ||
var deepReset = Atom.deepReset; | ||
if (this.status === ATOM_STATUS_DEEP_RESET && !this.isComponent) { | ||
var isDeepReset = Atom.isDeepReset; | ||
Atom.isDeepReset = true; | ||
Atom.deepReset = deepReset || new Set(); | ||
this._push(this._pull()); | ||
Atom.isDeepReset = isDeepReset; | ||
} else if (this.status !== ATOM_STATUS_ACTUAL || Atom.isDeepReset && !this.manualReset) { | ||
Atom.deepReset = deepReset; | ||
} else if (deepReset !== undefined && !this.manualReset && !deepReset.has(this)) { | ||
deepReset.add(this); | ||
this._push(this._pull()); | ||
} else if (this.status !== ATOM_STATUS_ACTUAL) { | ||
this._push(this._pull()); | ||
} | ||
@@ -362,5 +367,4 @@ }; | ||
this._masters = new Set(); | ||
} | ||
} // if (master.manualReset) this.manualReset = true | ||
if (master.manualReset) this.manualReset = true; | ||
@@ -377,3 +381,3 @@ this._masters.add(master); | ||
return Atom; | ||
}(), _class.isDeepReset = false, _temp); | ||
}(), _class.deepReset = undefined, _temp); | ||
@@ -380,0 +384,0 @@ var scheduleNative = typeof requestAnimationFrame === 'function' ? function (handler) { |
@@ -265,11 +265,16 @@ 'use strict'; | ||
var deepReset = Atom.deepReset; | ||
if (this.status === ATOM_STATUS_DEEP_RESET && !this.isComponent) { | ||
var isDeepReset = Atom.isDeepReset; | ||
Atom.isDeepReset = true; | ||
Atom.deepReset = deepReset || new Set(); | ||
this._push(this._pull()); | ||
Atom.isDeepReset = isDeepReset; | ||
} else if (this.status !== ATOM_STATUS_ACTUAL || Atom.isDeepReset && !this.manualReset) { | ||
Atom.deepReset = deepReset; | ||
} else if (deepReset !== undefined && !this.manualReset && !deepReset.has(this)) { | ||
deepReset.add(this); | ||
this._push(this._pull()); | ||
} else if (this.status !== ATOM_STATUS_ACTUAL) { | ||
this._push(this._pull()); | ||
} | ||
@@ -366,5 +371,4 @@ }; | ||
this._masters = new Set(); | ||
} | ||
} // if (master.manualReset) this.manualReset = true | ||
if (master.manualReset) this.manualReset = true; | ||
@@ -381,3 +385,3 @@ this._masters.add(master); | ||
return Atom; | ||
}(), _class.isDeepReset = false, _temp); | ||
}(), _class.deepReset = undefined, _temp); | ||
@@ -384,0 +388,0 @@ var scheduleNative = typeof requestAnimationFrame === 'function' ? function (handler) { |
@@ -267,11 +267,16 @@ (function (global, factory) { | ||
var deepReset = Atom.deepReset; | ||
if (this.status === ATOM_STATUS_DEEP_RESET && !this.isComponent) { | ||
var isDeepReset = Atom.isDeepReset; | ||
Atom.isDeepReset = true; | ||
Atom.deepReset = deepReset || new Set(); | ||
this._push(this._pull()); | ||
Atom.isDeepReset = isDeepReset; | ||
} else if (this.status !== ATOM_STATUS_ACTUAL || Atom.isDeepReset && !this.manualReset) { | ||
Atom.deepReset = deepReset; | ||
} else if (deepReset !== undefined && !this.manualReset && !deepReset.has(this)) { | ||
deepReset.add(this); | ||
this._push(this._pull()); | ||
} else if (this.status !== ATOM_STATUS_ACTUAL) { | ||
this._push(this._pull()); | ||
} | ||
@@ -368,5 +373,4 @@ }; | ||
this._masters = new Set(); | ||
} | ||
} // if (master.manualReset) this.manualReset = true | ||
if (master.manualReset) this.manualReset = true; | ||
@@ -383,3 +387,3 @@ this._masters.add(master); | ||
return Atom; | ||
}(), _class.isDeepReset = false, _temp); | ||
}(), _class.deepReset = undefined, _temp); | ||
@@ -386,0 +390,0 @@ var scheduleNative = typeof requestAnimationFrame === 'function' ? function (handler) { |
{ | ||
"name": "lom_atom", | ||
"version": "3.0.6", | ||
"version": "3.0.7", | ||
"description": "Alternative implementation of eigenmethod mol_atom state management library", | ||
@@ -5,0 +5,0 @@ "publishConfig": { |
@@ -139,4 +139,2 @@ // @flow | ||
static isDeepReset = false | ||
value(next?: V | Error, forceCache?: boolean): V { | ||
@@ -183,2 +181,4 @@ const context = this._context | ||
static deepReset: Set<IAtom<*>> | void = undefined | ||
actualize(): void { | ||
@@ -199,12 +199,12 @@ if (this.status === ATOM_STATUS_PULLING) { | ||
const deepReset = Atom.deepReset | ||
if (this.status === ATOM_STATUS_DEEP_RESET && !this.isComponent) { | ||
const isDeepReset = Atom.isDeepReset | ||
Atom.isDeepReset = true | ||
Atom.deepReset = deepReset || new Set() | ||
this._push(this._pull()) | ||
Atom.isDeepReset = isDeepReset | ||
} else if ( | ||
this.status !== ATOM_STATUS_ACTUAL | ||
|| (Atom.isDeepReset && !this.manualReset) | ||
) { | ||
Atom.deepReset = deepReset | ||
} else if (deepReset !== undefined && !this.manualReset && !deepReset.has(this)) { | ||
deepReset.add(this) | ||
this._push(this._pull()) | ||
} else if (this.status !== ATOM_STATUS_ACTUAL) { | ||
this._push(this._pull()) | ||
} | ||
@@ -300,5 +300,5 @@ } | ||
} | ||
if (master.manualReset) this.manualReset = true | ||
// if (master.manualReset) this.manualReset = true | ||
this._masters.add(master) | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
325907
3385