@@ -194,7 +194,7 @@ angular.module('schemaForm').provider('sfBuilder', ['sfPathProvider', function(s
194194 n . setAttribute ( 'ng-model' , modelValue ) ;
195195 } else if ( conf === 'replaceAll' ) {
196196 var attributes = n . attributes ;
197- for ( var j = 0 ; attributes . length ; j ++ ) {
197+ for ( var j = 0 ; j < attributes . length ; j ++ ) {
198198 if ( attributes [ j ] . value && attributes [ j ] . value . indexOf ( '$$value' ) !== - 1 ) {
199199 attributes [ j ] . value = attributes [ j ] . value . replace ( / \$ \$ v a l u e \$ \$ / g, modelValue ) ;
200200 }
@@ -742,7 +742,7 @@ angular.module('schemaForm').provider('schemaFormDecorators',
742742 attributes `builder` and `replace` are optional, and replace defaults to true.
743743 */
744744 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.
746746
747747 angular . forEach ( fields , function ( field , type ) {
748748 field . builder = field . builder || [ ] ;
@@ -816,7 +816,7 @@ angular.module('schemaForm').provider('schemaFormDecorators',
816816 decorator : function ( name ) {
817817 return decorators [ name ] || decorators [ defaultDecorator ] ;
818818 } ,
819- defaultDecorator : defaultDecorator ,
819+ defaultDecorator : defaultDecorator
820820 } ;
821821 } ;
822822
0 commit comments