Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha - Community Support Team mystix's Avatar
    Join Date
    Mar 2007
    Location
    Singapore
    Posts
    6,236
    Vote Rating
    5
    mystix will become famous soon enough

      0  

    Exclamation Ext.Map - maprender event's 2nd argument is always null

    Ext.Map - maprender event's 2nd argument is always null


    Original bug report from http://www.sencha.com/forum/showthread.php?t=260445 (marked fixed, but still broken in Touch 2.2.1).

    Ext.Map's maprender event always returns null as the 2nd argument because a direct reference to the private map variable is used.

    Ext.Map#onTilesLoaded needs to use a proper getter instead:
    Code:
    Ext.define('Ext.bugfix.Map', {
        override: 'Ext.Map',
    
        onTilesLoaded: function() {
            // this.fireEvent('maprender', this, this.map); // wrong
            this.fireEvent('maprender', this, this.getMap()); // right
        }
    });
    Tested on Touch 2.2.1.

  2. #2
    Sencha - Support Team
    Join Date
    Oct 2011
    Posts
    3,978
    Vote Rating
    132
    fmoseley is a name known to all fmoseley is a name known to all fmoseley is a name known to all fmoseley is a name known to all fmoseley is a name known to all fmoseley is a name known to all

      0  

    Default


    Thanks for bringing this our attention. I see that this has already been fixed in Touch 2.3.0.
    Get more personalized support via a support subscription.

    Want to learn Sencha Touch 2? Check out
    Sencha training
    Sencha Touch in Action

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

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

    Need to include a test case use:
    The official Sencha Fiddle

Thread Participants: 1