Results 1 to 2 of 2

Thread: Override does not work with Ext.data.Validations

    Looks like we can't reproduce the issue or there's a problem in the test case provided.
  1. #1
    Sencha User
    Join Date
    Nov 2011
    Posts
    61
    Vote Rating
    2
      0  

    Default Override does not work with Ext.data.Validations

    Ext.data.Validations cannot be overridden. See the following test override:

    Code:
    Ext.define('MyApp.extend.override.Validations', {    override: 'Ext.data.Validations',
        test_function: function(config, value) {
            return config.list && Ext.Array.indexOf(config.list,value) == -1;
        }
    });

  2. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,556
    Vote Rating
    1272
      0  

    Default

    Ext.define to override a singleton is not supported. You can change the classes as it will be created right after it has been defined.
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    https://github.com/mitchellsimoens

Posting Permissions

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