Skip to content

Commit

Permalink
This global is now made available by WebPPL.
Browse files Browse the repository at this point in the history
Introduced in WebPPL 0.9.7.
  • Loading branch information
null-a committed Jan 30, 2017
1 parent 1cfd96d commit fd5ce4a
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ preEls.map(function(el) { editor.setup(el, {language: 'webppl'}); });
- `editor.get([key])`: retrieves the object with key `key`. When called with no key, returns the entire store.
- `editor.MCMCProgress()`: displays a progress bar during MCMC inference (work in progress).
- `print` prints an object the results section (works both in WebPPL and vanilla Javascript).
- `resumeTrampoline`: resumes trampolining WebPPL code; used for external library functions that need to do asynchronous work.

We also ship the editor as `editor.ReactComponent`.

Expand Down
2 changes: 0 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,6 @@ var CodeEditor = React.createClass({
// undo global variable changes
global['console'] = nativeConsole;
global['print'] = null;
global['resumeTrampoline'] = null;
global['onerror'] = null;
wpEditor['makeResultContainer'] = null;

Expand Down Expand Up @@ -540,7 +539,6 @@ var CodeEditor = React.createClass({
endJob,
{errorHandlers: [handleRunError], debug: true, baseRunner: baseRunner});
comp.runner = baseRunner;
global['resumeTrampoline'] = prepared.runner;

comp.setState({execution: 'running'});

Expand Down

0 comments on commit fd5ce4a

Please sign in to comment.