From 7f29c33436dbf4497b990c4d7fc441ae29e5acd2 Mon Sep 17 00:00:00 2001 From: Ali Ramezani Date: Mon, 3 Oct 2016 12:17:26 +0330 Subject: [PATCH] fix bug ### Work with local DOM // Insert to the local DOM change "toLocal" to "toInsert" --- app/1.0/docs/devguide/local-dom.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/1.0/docs/devguide/local-dom.md b/app/1.0/docs/devguide/local-dom.md index 833871262c..ea6331fc7f 100644 --- a/app/1.0/docs/devguide/local-dom.md +++ b/app/1.0/docs/devguide/local-dom.md @@ -236,7 +236,7 @@ Polymer.dom(this.root).appendChild(toLocal); // Insert to the local DOM var toInsert = document.createElement('div'); var beforeNode = Polymer.dom(this.root).childNodes[0]; -Polymer.dom(this.root).insertBefore(toLocal, beforeNode); +Polymer.dom(this.root).insertBefore(toInsert, beforeNode); ``` You can use the [automatic node finding](#node-finding) feature to locate