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
    Jul 2010
    Posts
    9
    Vote Rating
    0
    goshawk is on a distinguished road

      0  

    Default config property is not applied

    config property is not applied


    Hi,

    I have this code:
    Code:
    Ext.define('app.component.window.D3', {
        extend: 'app.component.window.Window',
        config:{
        	title:'D3 window'	
        }
    });
    
    
    
    Ext.application({    name: 'appt',
        appFolder:'app',
        launch: function() {
            var win = Ext.create('app.component.window.D3', {
                layout: 'fit'
            });
            
            win.show();
            
        }
    });
    The code is splitted in the right directory, the window is displayed but the title is not set. It gets set only if i put

    Code:
    win.getTitle();
    after win.show(). Why is there this behaviour? I was thinking that It was setting a default value using config.

    Thanks

  2. #2
    Sencha Premium Member vadimv's Avatar
    Join Date
    Sep 2010
    Location
    Chisinau, Moldova
    Posts
    642
    Vote Rating
    25
    vadimv will become famous soon enough vadimv will become famous soon enough

      0  

    Default


    Class configs should not coincide with optional configs specified in config object, and the ones like "title" have by default accessor methods

  3. #3
    Sencha Premium Member
    Join Date
    Jul 2010
    Posts
    9
    Vote Rating
    0
    goshawk is on a distinguished road

      0  

    Default


    If it's so why in the examples they use title in config?

    Look at http://dev.sencha.com/deploy/ext-4.1...e/class_system 2. Configuration section

  4. #4
    Sencha Premium Member vadimv's Avatar
    Join Date
    Sep 2010
    Location
    Chisinau, Moldova
    Posts
    642
    Vote Rating
    25
    vadimv will become famous soon enough vadimv will become famous soon enough

      0  

    Default


    , they define there a class, they don't extend a extjs window class like you do.

  5. #5
    Sencha Premium Member vadimv's Avatar
    Join Date
    Sep 2010
    Location
    Chisinau, Moldova
    Posts
    642
    Vote Rating
    25
    vadimv will become famous soon enough vadimv will become famous soon enough

      0  

    Default


    if you need to do that, then..... go and study extjs documentation

Thread Participants: 1

Tags for this Thread