Skip to content

Commit bcf1bd4

Browse files
committed
wait, that's not how for loops work!
1 parent 2292877 commit bcf1bd4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/services/builder.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ angular.module('schemaForm').provider('sfBuilder', ['sfPathProvider', function(s
5252
n.setAttribute('ng-model', modelValue);
5353
} else if (conf === 'replaceAll') {
5454
var attributes = n.attributes;
55-
for (var j = 0; attributes.length; j++) {
55+
for (var j = 0; j < attributes.length; j++) {
5656
if (attributes[j].value && attributes[j].value.indexOf('$$value') !== -1) {
5757
attributes[j].value = attributes[j].value.replace(/\$\$value\$\$/g, modelValue);
5858
}

0 commit comments

Comments
 (0)