Success! Looks like we've fixed this one. According to our records the fix was applied for EXTJS-6672 in a recent build.
  1. #1
    Touch Premium Member
    Join Date
    Nov 2010
    Location
    Chicago
    Posts
    1,188
    Vote Rating
    102
    LesJ is a glorious beacon of light LesJ is a glorious beacon of light LesJ is a glorious beacon of light LesJ is a glorious beacon of light LesJ is a glorious beacon of light

      0  

    Default [4.1] 'Ext.app.Controller.addRef - modify to accept arrays

    [4.1] 'Ext.app.Controller.addRef - modify to accept arrays


    The public (but undocumented) Ext.app.Controller.addRef method currently accepts a single reference object, but it could also accept an array of such references by not converting the ref param to an array. There's no need to convert the param to an array since the ref method will do this conversion by calling Ext.Array.from(refs).

    Code:
    Ext.define('Ext.app.Controller', {
        ....
        ref: function(refs) {
            refs = Ext.Array.from(refs);
            
            ...
        },
    
        addRef: function(ref) {
            return this.ref([ref]); // <-- skip [] around ref and rename ref to refs
        },
        ....
    EDIT
    Also, the addRef method should not return this.ref since the ref method doesn't return a value, so just skip return. Basically, addRef would be an alias for the ref method
    Last edited by LesJ; 27 Jun 2012 at 10:59 AM. Reason: Don't return a value from addRef

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    35,704
    Vote Rating
    750
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    Thanks for the report.
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

Thread Participants: 1

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar