Skip to content

Commit

Permalink
remove or comment on things that sneaked in from other commits
Browse files Browse the repository at this point in the history
  • Loading branch information
dethe committed Sep 19, 2015
1 parent 23364f9 commit 99d78a4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions js/block.js
Expand Up @@ -1142,6 +1142,8 @@ function endDragBlock(evt){
if (dropTarget === BLOCK_MENU){
// Drop on script menu to delete block, always delete clone
deleteOriginalBlock(originalBlock, originalParent, nextElem);
// This looks like a work-around for mutation events not firing
// FIXME: get the mutation events working instead
Event.trigger(originalParent,'wb-removed',this);
dragTarget.parentElement.removeChild(dragTarget);
}else if(dragTarget.matches('wb-expression')){
Expand Down
4 changes: 2 additions & 2 deletions js/file.js
Expand Up @@ -93,7 +93,7 @@
}

function clearScripts(){
//bareUrl();
bareUrl();
var script = document.querySelector('wb-workspace > wb-contains');
script.innerHTML = "";
Undo.clearStacks();
Expand Down Expand Up @@ -236,7 +236,7 @@
Event.on(window, 'ui:load', null, loadCurrentScripts);
if (page === 'playground'){
Event.on(window, 'ui:beforeunload', null, saveCurrentScripts);
//Event.on(document.body, 'ui:wb-added', null, bareUrl); // Remove gist or other argument on script change
Event.on(document.body, 'ui:wb-added', null, bareUrl); // Remove gist or other argument on script change
Event.on(document.body, 'ui:wb-removed', null, bareUrl);
Event.on(document.body, 'ui:wb-changed', null, bareUrl);
}
Expand Down

0 comments on commit 99d78a4

Please sign in to comment.