There is some JavaScript I want to debug (e.g. make something which was written for Ext JS 4 work with Ext JS 3). And there is function define, which is absent in version 3. I wanted just paste it's code, but don't know where it lies. I printed it:
>>> Ext.define.toString()
"function (i, j, h) { if (j.override) { return a.createOverride.apply(a, arguments); } return a.create.apply(a, arguments); }"
But still, I don't know what is a. How could I, having function object get the source for context of that object?
Ext.defineand then step into it using debugger.