X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/7a654f8d43fdb43d78b63d90528bed6e86b608cc..3789b528d8dd8aad4558e38e22d775bcab1cbd36:/docs/source/Errors.html?ds=sidebyside diff --git a/docs/source/Errors.html b/docs/source/Errors.html index 7fbdbcfe..7e37e8e3 100644 --- a/docs/source/Errors.html +++ b/docs/source/Errors.html @@ -1,4 +1,21 @@ -
/**
+
+
+
+
+ The source code
+
+
+
+
+
+
+ /**
* @author Ed Spencer
* @class Ext.data.Errors
* @extends Ext.util.MixedCollection
@@ -16,14 +33,14 @@ var errors = myModel.validate();
errors.isValid(); //false
errors.length; //2
-errors.getByField('name'); // [{field: 'name', error: 'must be present'}]
-errors.getByField('title'); // [{field: 'title', error: 'is too short'}]
+errors.getByField('name'); // [{field: 'name', message: 'must be present'}]
+errors.getByField('title'); // [{field: 'title', message: 'is too short'}]
</code></pre>
*/
Ext.define('Ext.data.Errors', {
extend: 'Ext.util.MixedCollection',
- /**
+ /**
* Returns true if there are no errors in the collection
* @return {Boolean}
*/
@@ -31,7 +48,7 @@ Ext.define('Ext.data.Errors', {
return this.length === 0;
},
- /**
+ /**
* Returns all of the errors for the given field
* @param {String} fieldName The field to get errors for
* @return {Array} All errors for the given field
@@ -51,4 +68,6 @@ Ext.define('Ext.data.Errors', {
return errors;
}
});
-
\ No newline at end of file
+
+
+