Skip to content

Commit

Permalink
Merge pull request #48 from null-a/webppl-0.9.7-compat
Browse files Browse the repository at this point in the history
WebPPL 0.9.7 compatibility
  • Loading branch information
longouyang authored Jan 30, 2017
2 parents 1cfd96d + c478438 commit c9cd579
Show file tree
Hide file tree
Showing 5 changed files with 21,081 additions and 21,206 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: 1 addition & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1821,5 +1821,5 @@ <h3>error handling</h3>
</script>


<script src="//s3-us-west-2.amazonaws.com/cdn.webppl.org/webppl-v0.9.6.js"></script>
<script src="//s3-us-west-2.amazonaws.com/cdn.webppl.org/webppl-v0.9.7.js"></script>
</html>
10 changes: 2 additions & 8 deletions docs/webppl-editor.css
Original file line number Diff line number Diff line change
Expand Up @@ -416,9 +416,6 @@ div.CodeMirror span.CodeMirror-nonmatchingbracket {color: #f22;}
display: inline-block;
vertical-align: top;
margin-bottom: -30px;
/* Hack to make IE7 behave */
*zoom:1;
*display:inline;
}
.CodeMirror-gutter-wrapper {
position: absolute;
Expand Down Expand Up @@ -462,8 +459,8 @@ div.CodeMirror span.CodeMirror-nonmatchingbracket {color: #f22;}
position: relative;
overflow: visible;
-webkit-tap-highlight-color: transparent;
-webkit-font-variant-ligatures: none;
font-variant-ligatures: none;
-webkit-font-variant-ligatures: contextual;
font-variant-ligatures: contextual;
}
.CodeMirror-wrap pre {
word-wrap: break-word;
Expand Down Expand Up @@ -537,9 +534,6 @@ div.CodeMirror-dragcursors {
background: rgba(255, 255, 0, .4);
}

/* IE7 hack to prevent it from returning funny offsetTops on the spans */
.CodeMirror span { *vertical-align: text-bottom; }

/* Used to force a border model for a node */
.cm-force-border { padding-right: .1px; }

Expand Down
Loading

0 comments on commit c9cd579

Please sign in to comment.