val is automatically undefined.

This commit is contained in:
Timothy Farrell 2017-01-18 08:56:23 -06:00
parent d5c1cd852b
commit 5591c2f423

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) {