(opt, root, items)
| 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. |
nothing calls this directly
no test coverage detected