Skip to content

Commit

Permalink
Fixed multiple clicks on PG
Browse files Browse the repository at this point in the history
  • Loading branch information
deltakosh committed Jun 27, 2017
1 parent 8fa157a commit 6338ee9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Playground/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@
xhr.onreadystatechange = function () {
if (xhr.readyState === 4) {
if (xhr.status === 200) {
xhr.onreadystatechange = null;
blockEditorChange = true;
jsEditor.setValue(xhr.responseText);
jsEditor.setPosition({ lineNumber: 0, column: 0 });
Expand Down Expand Up @@ -142,8 +143,8 @@
a.innerHTML = (index + 1) + " - " + scripts[index];
a.scriptLinkIndex = index + 1;
a.onclick = onScriptClick;
option.scriptLinkIndex = index + 1;
option.onclick = onScriptClick;
// option.scriptLinkIndex = index + 1;
// option.onclick = onScriptClick;

option.appendChild(a);

Expand Down

0 comments on commit 6338ee9

Please sign in to comment.