diff --git a/CHANGELOG b/CHANGELOG index 7c84e4d..8a035e8 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,5 +1,7 @@ *SVN* +* Fix missing "var" in Element#insert. Closes #10838. [Lantash] + * Add Test.Unit.MessageTemplate class. Add flunk, buildMessage and assertBlock methods to Test.Unit.Assertions. Refactor accordingly. [Tobie Langel] * Remove useless binding in Template#evaluate. [Tobie Langel] diff --git a/src/dom.js b/src/dom.js index db4b6cd..9296bc7 100644 --- a/src/dom.js +++ b/src/dom.js @@ -121,7 +121,7 @@ Element.Methods = { var content, insert, tagName, childNodes; - for (position in insertions) { + for (var position in insertions) { content = insertions[position]; position = position.toLowerCase(); insert = Element._insertionTranslations[position];