Success! Looks like we've fixed this one. According to our records the fix was applied for EXTJS-6662 in a recent build.
  1. #1
    Touch Premium Member
    Join Date
    Nov 2010
    Location
    Chicago
    Posts
    1,329
    Vote Rating
    118
    LesJ is a name known to all LesJ is a name known to all LesJ is a name known to all LesJ is a name known to all LesJ is a name known to all LesJ is a name known to all

      0  

    Default [4.1] Ext.app.Controller.hasRef - use Ext.Array.indexOf to find reference

    [4.1] Ext.app.Controller.hasRef - use Ext.Array.indexOf to find reference


    The [].indexOf method below is not supported in some JS implementations. It should be replaced by Ext.Array.indexOf to make the hasRef method more robust.

    Code:
    Ext.define('Ext.app.Controller', {
        ...
        hasRef: function(ref) {
            return this.references && this.references.indexOf(ref.toLowerCase()) !== -1;
        },
        ...
    EDIT: 6/28/12
    ... or better yet use Ext.Array.contains
    Last edited by LesJ; 28 Jun 2012 at 10:52 AM. Reason: Add Ext.Array.contains comment

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,207
    Vote Rating
    856
    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