PDA

View Full Version : [FIXED] Undefined Ext.log()



olouvignes
21 Oct 2011, 5:03 AM
Triggered using item.setData(record.data).


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

Fixed with :


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

Jamie Avins
31 Oct 2011, 10:40 AM
Thank you for the report.

edspencer
3 Nov 2011, 3:05 PM
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

conrad.decker
7 Nov 2011, 1:43 PM
I've thrown that code in App.js - is that the best place to do so?

edspencer
7 Nov 2011, 3:36 PM
Sure, that will do for now (it can go almost anywhere)