- Refactoring (minor): Simplify (empty string is falsey)
- Refactoring (minor): Consistent HTML indenting/no-namespacing and title/icon use - Testing: Add browser bug test with reference to issue
This commit is contained in:
@@ -35,7 +35,7 @@ function setStrings (type, obj, ids) {
|
||||
switch (type) {
|
||||
case 'content':
|
||||
for (var i = 0, node; (node = elem.childNodes[i]); i++) {
|
||||
if (node.nodeType === 3 && node.textContent.trim() === '') {
|
||||
if (node.nodeType === 3 && node.textContent.trim()) {
|
||||
node.textContent = val;
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user