Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions views/implementing.jade
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,17 @@ block content
function fulfill(result) {
state = FULFILLED;
value = result;

handlers.forEach(handle);
handlers = null;
}

function reject(error) {
state = REJECTED;
value = error;

handlers.forEach(handle);
handlers = null;
}
}

Expand All @@ -87,11 +93,17 @@ block content
function fulfill(result) {
state = FULFILLED;
value = result;

handlers.forEach(handle);
handlers = null;
}

function reject(error) {
state = REJECTED;
value = error;

handlers.forEach(handle);
handlers = null;
}

function resolve(result) {
Expand Down