MCPcopy
hub / github.com/helloxz/onenav / completedPromise

Function completedPromise

static/jQuery-contextMenu/jquery.contextMenu.js:1534–1542  ·  view source on GitHub ↗
(opt, root, items)

Source from the content-addressed store, hash-verified

1532 opt.$node.addClass(root.classNames.iconLoadingClass);
1533
1534 function completedPromise(opt, root, items) {
1535 // Completed promise (dev called promise.resolve). We now have a list of items which can
1536 // be used to create the rest of the context menu.
1537 if (typeof items === 'undefined') {
1538 // Null result, dev should have checked
1539 errorPromise(undefined);//own error object
1540 }
1541 finishPromiseProcess(opt, root, items);
1542 }
1543
1544 function errorPromise(opt, root, errorItem) {
1545 // User called promise.reject() with an error item, if not, provide own error item.

Callers

nothing calls this directly

Calls 2

errorPromiseFunction · 0.85
finishPromiseProcessFunction · 0.85

Tested by

no test coverage detected