Comparing version 5.0.0 to 5.0.1-1539631428220
@@ -15,2 +15,3 @@ var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); | ||
import { ensureStrictPath, extractModuleProp, isComputedValue } from './utils'; | ||
import { Compute } from './Compute'; | ||
@@ -50,2 +51,5 @@ /* | ||
}); | ||
_this.on('mutation', function () { | ||
return _this.flagComputed(); | ||
}); | ||
_this.on('end', function () { | ||
@@ -73,4 +77,3 @@ return _this.flush(); | ||
/* | ||
Whenever components needs to be updated, this method | ||
can be called | ||
Flags computed as dirty related to mutations | ||
*/ | ||
@@ -80,2 +83,19 @@ | ||
_createClass(Controller, [{ | ||
key: 'flagComputed', | ||
value: function flagComputed() { | ||
var changes = this.model.changedPaths; | ||
var entities = this.dependencyStore.getUniqueEntities(changes); | ||
entities.forEach(function (entity) { | ||
if (entity instanceof Compute) { | ||
entity.isDirty = true; | ||
} | ||
}); | ||
} | ||
/* | ||
Whenever components needs to be updated, this method | ||
can be called | ||
*/ | ||
}, { | ||
key: 'flush', | ||
@@ -82,0 +102,0 @@ value: function flush(force) { |
@@ -63,3 +63,3 @@ var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); | ||
_this.version = "5.0.0"; | ||
_this.version = "5.0.1-1539631428220"; | ||
_this.debuggerWatchMap = {}; | ||
@@ -66,0 +66,0 @@ _this.debuggerComputedMap = {}; |
@@ -27,2 +27,4 @@ 'use strict'; | ||
var _Compute = require('./Compute'); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
@@ -68,2 +70,5 @@ | ||
}); | ||
_this.on('mutation', function () { | ||
return _this.flagComputed(); | ||
}); | ||
_this.on('end', function () { | ||
@@ -91,4 +96,3 @@ return _this.flush(); | ||
/* | ||
Whenever components needs to be updated, this method | ||
can be called | ||
Flags computed as dirty related to mutations | ||
*/ | ||
@@ -98,2 +102,19 @@ | ||
_createClass(Controller, [{ | ||
key: 'flagComputed', | ||
value: function flagComputed() { | ||
var changes = this.model.changedPaths; | ||
var entities = this.dependencyStore.getUniqueEntities(changes); | ||
entities.forEach(function (entity) { | ||
if (entity instanceof _Compute.Compute) { | ||
entity.isDirty = true; | ||
} | ||
}); | ||
} | ||
/* | ||
Whenever components needs to be updated, this method | ||
can be called | ||
*/ | ||
}, { | ||
key: 'flush', | ||
@@ -100,0 +121,0 @@ value: function flush(force) { |
@@ -81,3 +81,3 @@ 'use strict'; | ||
_this.version = "5.0.0"; | ||
_this.version = "5.0.1-1539631428220"; | ||
_this.debuggerWatchMap = {}; | ||
@@ -84,0 +84,0 @@ _this.debuggerComputedMap = {}; |
{ | ||
"name": "cerebral", | ||
"version": "5.0.0", | ||
"version": "5.0.1-1539631428220", | ||
"description": "A state controller with its own debugger", | ||
@@ -24,3 +24,3 @@ "main": "index.js", | ||
"es6-error": "^4.0.2", | ||
"function-tree": "^3.3.0" | ||
"function-tree": "^3.3.0-1539631428220" | ||
}, | ||
@@ -27,0 +27,0 @@ "scripts": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
790228
194
7935
1