|
437 |
return deferred; |
437 |
return deferred; |
438 |
}, |
438 |
}, |
439 |
|
439 |
|
|
|
440 |
validate: function() { |
441 |
return this.getInvalidWidgets().length === 0; |
442 |
}, |
443 |
|
444 |
getInvalidWidgets: function() { |
445 |
var widgets = []; |
446 |
|
447 |
umc.tools.forIn(this._widgets, function(iname, iwidget) { |
448 |
if ( iwidget.validate !== undefined ) { |
449 |
if ( iwidget._maskValidSubsetError !== undefined ) { |
450 |
iwidget._maskValidSubsetError = false; |
451 |
} |
452 |
if ( ! iwidget.validate() ) { |
453 |
widgets.push( iname ); |
454 |
} |
455 |
} |
456 |
} ); |
457 |
|
458 |
return widgets; |
459 |
}, |
460 |
|
440 |
onSaved: function(/*Boolean*/ success) { |
461 |
onSaved: function(/*Boolean*/ success) { |
441 |
// event stub |
462 |
// event stub |
442 |
}, |
463 |
}, |