Results 1 to 5 of 5

Thread: Undefined Ext.log()

    Success! Looks like we've fixed this one. According to our records the fix was applied for TOUCH-920 in a recent build.
  1. #1
    Sencha Premium Member
    Join Date
    Oct 2011
    Location
    Paris, France
    Posts
    187
    Vote Rating
    3
      0  

    Default Undefined Ext.log()

    Triggered using item.setData(record.data).

    Code:
    sencha-touch-all-debug-w-comments.js:22810 : Uncaught TypeError: Property 'log' of object #<Object> is not a function
    Fixed with :

    Code:
    Ext.log = function(error) { return console.error(error); }

  2. #2
    Sencha User Jamie Avins's Avatar
    Join Date
    Mar 2007
    Location
    Redwood City, California
    Posts
    3,661
    Vote Rating
    19
      0  

    Default

    Thank you for the report.

  3. #3
    Sencha User edspencer's Avatar
    Join Date
    Jan 2009
    Location
    Palo Alto, California
    Posts
    1,939
    Vote Rating
    11
      0  

    Default

    Thanks, looks like we'd been missing an alias from Ext.Logger.log to Ext.log. I've added this back now, in the meantime your workaround should be sufficient
    Ext JS Senior Software Architect
    Personal Blog: http://edspencer.net
    Twitter: http://twitter.com/edspencer
    Github: http://github.com/edspencer

  4. #4
    Sencha User conrad.decker's Avatar
    Join Date
    Oct 2011
    Location
    Jacksonville Beach, Florida
    Posts
    6
    Vote Rating
    0
      0  

    Default

    I've thrown that code in App.js - is that the best place to do so?

  5. #5
    Sencha User edspencer's Avatar
    Join Date
    Jan 2009
    Location
    Palo Alto, California
    Posts
    1,939
    Vote Rating
    11
      0  

    Default

    Sure, that will do for now (it can go almost anywhere)
    Ext JS Senior Software Architect
    Personal Blog: http://edspencer.net
    Twitter: http://twitter.com/edspencer
    Github: http://github.com/edspencer

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •