diff --git a/experiments/outline-editor/editor.js b/experiments/outline-editor/editor.js index 893b3ce..1ae6492 100755 --- a/experiments/outline-editor/editor.js +++ b/experiments/outline-editor/editor.js @@ -281,13 +281,13 @@ var Outline = { indent = node node = 'focused' } var cur = this.get(node) - if(!cur){ + if(!cur){ return } var siblings = this.get(node, 'siblings') // deindent... if(!indent){ var parent = this.get(node, 'parent') - if(!parent.classList.contains('.outline')){ + if(parent != this.outline){ var children = siblings .slice(siblings.indexOf(cur)+1) parent.after(cur)