@@ -194,7 +194,7 @@ angular.module('schemaForm').provider('sfBuilder', ['sfPathProvider', function(s
194
194
n . setAttribute ( 'ng-model' , modelValue ) ;
195
195
} else if ( conf === 'replaceAll' ) {
196
196
var attributes = n . attributes ;
197
- for ( var j = 0 ; attributes . length ; j ++ ) {
197
+ for ( var j = 0 ; j < attributes . length ; j ++ ) {
198
198
if ( attributes [ j ] . value && attributes [ j ] . value . indexOf ( '$$value' ) !== - 1 ) {
199
199
attributes [ j ] . value = attributes [ j ] . value . replace ( / \$ \$ v a l u e \$ \$ / g, modelValue ) ;
200
200
}
@@ -742,7 +742,7 @@ angular.module('schemaForm').provider('schemaFormDecorators',
742
742
attributes `builder` and `replace` are optional, and replace defaults to true.
743
743
*/
744
744
this . defineDecorator = function ( name , fields ) {
745
- decorators [ name ] = { '__name' : name } ; // TODO: this feels like a hack, come up with a better way. (ES6 Symbols would be a nice fit.)
745
+ decorators [ name ] = { '__name' : name } ; // TODO: this feels like a hack, come up with a better way.
746
746
747
747
angular . forEach ( fields , function ( field , type ) {
748
748
field . builder = field . builder || [ ] ;
@@ -816,7 +816,7 @@ angular.module('schemaForm').provider('schemaFormDecorators',
816
816
decorator : function ( name ) {
817
817
return decorators [ name ] || decorators [ defaultDecorator ] ;
818
818
} ,
819
- defaultDecorator : defaultDecorator ,
819
+ defaultDecorator : defaultDecorator
820
820
} ;
821
821
} ;
822
822
0 commit comments