i18n-format
Advanced tools
Comparing version 3.0.0-pre.10 to 3.0.0-pre.11
@@ -298,3 +298,11 @@ /** | ||
this.templateElement = this.elements[n]; | ||
this.templateTextNode = dom(this.templateElement).childNodes[0]; | ||
let i = 0; | ||
do { | ||
this.templateTextNode = dom(this.templateElement).childNodes[i++]; | ||
if (!this.templateTextNode) { | ||
this.templateTextNode = dom(this.templateElement).childNodes[0]; | ||
break; | ||
} | ||
} | ||
while (this.templateTextNode.nodeType !== this.templateTextNode.TEXT_NODE); | ||
this.observer.observe(this.templateTextNode, { characterData: true }); | ||
@@ -301,0 +309,0 @@ } |
@@ -21,3 +21,3 @@ { | ||
"name": "i18n-format", | ||
"version": "3.0.0-pre.10", | ||
"version": "3.0.0-pre.11", | ||
"main": "i18n-format.js", | ||
@@ -24,0 +24,0 @@ "directories": { |
105762
1361