Results 1 to 2 of 2

Thread: Typo in jsdoc of Ext.form.CheckboxGroup#getErrors

    Success! Looks like we've fixed this one. According to our records the fix was applied for EXTJS-15154 in 5.0.2.
  1. #1
    Sencha Premium Member rkleinkromhof's Avatar
    Join Date
    Apr 2013
    Location
    Enschede, The Netherlands
    Posts
    53

    Default Typo in jsdoc of Ext.form.CheckboxGroup#getErrors

    See http://docs-origin.sencha.com/ext/5....thod-getErrors

    The jsdoc of Ext.form.CheckboxGroup#getErrors seemingly contains a typo where is states that "...allowBlank is set to true..." when it should say "...set to false...".

    Lines 189 through 200 have:
    Code:
        /**
         * Runs CheckboxGroup's validations and returns an array of any errors. The only error by default is if allowBlank
         * is set to true and no items are checked.
         * @return {String[]} Array of all validation errors
         */
        getErrors: function() {
            var errors = [];
            if (!this.allowBlank && Ext.isEmpty(this.getChecked())) {
                errors.push(this.blankText);
            }
            return errors;
        },
    where it should be:
    Code:
        /**
         * Runs CheckboxGroup's validations and returns an array of any errors. The only error by default is if allowBlank
         * is set to false and no items are checked.
         * @return {String[]} Array of all validation errors
         */
        getErrors: function() {
            var errors = [];
            if (!this.allowBlank && Ext.isEmpty(this.getChecked())) {
                errors.push(this.blankText);
            }
            return errors;
        },

  2. #2
    Sencha User
    Join Date
    Feb 2013
    Location
    California
    Posts
    11,985

    Default

    Thanks for the report! I have opened a Documentation bug in our bug tracker.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •