Skip to content

Commit

Permalink
docs: update doc/comment to be more true to updated torus v0.4.4
Browse files Browse the repository at this point in the history
  • Loading branch information
thesephist committed May 11, 2019
1 parent 07dc445 commit 9bac08a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/static/js/main.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ <h1>./static/js/main.js <span class="fade">annotated source</span></h1>
<div class="line"><div class="doc"><p>Percentage of the editor size that the preview pane takes up.</p>
</div><pre class="source javascript"><strong class="lineNumber">59</strong> this.paneWidth = 50;</pre></div>
<div class="line"><div class="doc"></div><pre class="source javascript"><strong class="lineNumber">60</strong></pre></div>
<div class="line"><div class="doc"><p>We create an iframe manually and insert it into the component DOM, so as to avoid the iframe being re-fetched and re-rendered every time the preview pane is rendered.</p>
<div class="line"><div class="doc"><p>We create an iframe manually and insert it into the component DOM, so we can replace its URL when the preview URL changes, rather than simply having Torus set it and adding unnecessary history entries in the browser.</p>
</div><pre class="source javascript"><strong class="lineNumber">64</strong> this.iframe = document.createElement('iframe');</pre></div>
<div class="line"><div class="doc"></div><pre class="source javascript"><strong class="lineNumber">65</strong> this.iframe.setAttribute('frameborder', 0);</pre></div>
<div class="line"><div class="doc"></div><pre class="source javascript"><strong class="lineNumber">66</strong></pre></div>
Expand Down
4 changes: 2 additions & 2 deletions static/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ class PreviewPane extends StyledComponent {
this.paneWidth = 50;

//> We create an iframe manually and insert it into the component DOM,
// so as to avoid the iframe being re-fetched and re-rendered every time
// the preview pane is rendered.
// so we can replace its URL when the preview URL changes, rather than
// simply having Torus set it and adding unnecessary history entries in the browser.
this.iframe = document.createElement('iframe');
this.iframe.setAttribute('frameborder', 0);

Expand Down

0 comments on commit 9bac08a

Please sign in to comment.