Results 1 to 2 of 2

Thread: Unable to use mixins inline

    Looks like we can't reproduce the issue or there's a problem in the test case provided.
  1. #1
    Sencha Premium User
    Join Date
    Feb 2011
    Location
    Cambridge, MA
    Posts
    1,295

    Default Unable to use mixins inline

    See https://fiddle.sencha.com/#fiddle/8e0

    Code:
    items : [
       { 
            xtype: 'component',
            mixins: [
               'Ext.form.field.Field'
            ]
    Then get:
    • [COLOR=red !important]Uncaught TypeError: Cannot read property 'constructor' of undefined Component.js?_dc=1407150966725:1773[/COLOR]
      • [COLOR=red !important]Ext.define.beforeInitConfig[/COLOR]Component.js?_dc=1407150966725:1773
      • [COLOR=red !important]Ext.Configurator.configure[/COLOR]Configurator.js?_dc=1407150966725:459
      • [COLOR=red !important]Ext.Base.Base.addMembers.initConfig[/COLOR]Base.js?_dc=1407150966725:1425
      • [COLOR=red !important]Ext.define.constructor[/COLOR]Component.js?_dc=1407150966725:1684
      • [COLOR=red !important]constructor[/COLOR]Class.js?_dc=1407150966725:29

  2. #2
    Sencha Premium User
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    19,258

    Default

    This isn't a bug, mixins are only supported at define time.

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
  •