Gelmiş geçmiş en büyük porno sitemiz olan 2pe de her zaman en kaliteli pornoları sunmayı hedefledik. Diğer video sitemiz olan vuam da ise hd porno ağırlıklı çalışmalara başladık.

  1. #1
    Sencha Premium Member
    Join Date
    Sep 2010
    Posts
    89
    Vote Rating
    0
    xun is an unknown quantity at this point

      0  

    Default Unanswered: Extend a form.panel component?

    Unanswered: Extend a form.panel component?


    I found a strange thing about a custom component that extending a form panel, a dummy component would be as the following

    Ext.define('Dummy', {
    extend: 'Ext.form.Panel',
    border: false,


    items: [],
    defaults: {
    border: 0
    },

    initComponent: function () {
    var me = this;
    me.items.push({ html: 'to', style: "width:20px;padding:5px" });


    me.callParent();


    }
    }

    Now try to create the dummy component in another panel twice, as the following


    var item1 = Ext.create('Dummy', {
    });


    var item2 = Ext.create('Dummy', {
    });
    this.items = [item1, item2];

    Instead of 2 form panels with their respective items, the second panel somehow grabs the items from the first form panel and add them to itself.

    Why?

    What is the proper way to extend from panel?

  2. #2
    Sencha Premium Member
    Join Date
    Sep 2010
    Posts
    89
    Vote Rating
    0
    xun is an unknown quantity at this point

      0  

    Default


    Found my mistake.

    Should not be

    me.items.push(...).

    rather, should be simply
    me.items = [];

    thanks anyway