MCPcopy Create free account
hub / github.com/OpenWebCAD/node-occ / onComplete

Function onComplete

jasmine-1.1.0.js:1763–1789  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1761 var completedSynchronously = false;
1762
1763 var onComplete = function () {
1764 if (jasmine.Queue.LOOP_DONT_RECURSE && calledSynchronously) {
1765 completedSynchronously = true;
1766 return;
1767 }
1768
1769 if (self.blocks[self.index].abort) {
1770 self.abort = true;
1771 }
1772
1773 self.offset = 0;
1774 self.index++;
1775
1776 var now = new Date().getTime();
1777 if (self.env.updateInterval && now - self.env.lastUpdate > self.env.updateInterval) {
1778 self.env.lastUpdate = now;
1779 self.env.setTimeout(function() {
1780 self.next_();
1781 }, 0);
1782 } else {
1783 if (jasmine.Queue.LOOP_DONT_RECURSE && completedSynchronously) {
1784 goAgain = true;
1785 } else {
1786 self.next_();
1787 }
1788 }
1789 };
1790 self.blocks[self.index].execute(onComplete);
1791
1792 calledSynchronously = false;

Callers 1

jasmine-1.1.0.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected