val is automatically undefined.

This commit is contained in:
Timothy Farrell 2017-01-18 08:56:23 -06:00
parent 05200ebee3
commit ef0a93b57d

View File

@ -1,8 +1,8 @@
export function computed(fn, dependencies = []) {
const subscribers = new Set();
const dependents = new Set();
let val = undefined;
let isDirty = true;
let val;
function _computedDirtyReporter() {
if (!isDirty) {