8282 watch: {
8383 // new model loaded
8484 model : function (newModel , oldModel ) {
85- if (oldModel == newModel) // model got a new property, skip
85+ if (oldModel == newModel) // model property changed , skip
8686 return ;
8787
8888 if (newModel != null ) {
8989 this .$nextTick (() => {
90-
91- // console.log("Model changed!", oldModel, newModel);
9290 // Model changed!
9391 if (this .options .validateAfterLoad === true && this .isNewModel !== true )
9492 this .validate ();
@@ -197,13 +195,11 @@ div
197195
198196 // Validating the model properties
199197 validate () {
200- // console.log("Validate!", this.model);
201198 this .clearValidationErrors ();
202199
203200 each (this .$children , (child ) => {
204201 if (isFunction (child .validate ))
205202 {
206- // console.log("Validate ", child.model)
207203 let err = child .validate ();
208204 each (err, (err ) => {
209205 this .errors .push ({
@@ -225,12 +221,15 @@ div
225221 child .clearValidationErrors ();
226222 });
227223 },
224+
228225 modelUpdated (newVal , schema ){
229226 this .$emit (" model-updated" , newVal, schema);
230227 },
228+
231229 buttonVisibility (field ) {
232230 return field .buttons && field .buttons .length > 0 ;
233231 },
232+
234233 errorsVisibility (field ) {
235234 return field .errors && field .errors .length > 0 ;
236235 }
0 commit comments