Archive

Archive for February, 2012

Get javascript function definition through this trick

February 7, 2012 Leave a comment

In Google Chrome javascript console or Firefox firebug console, type the following and followed by Enter key:

function_name.prototype.constructor

where function_name is the function you want to find out its definition. Learned this trick through
http://stackoverflow.com/questions/5469691/find-js-function-with-firebug.

Advertisements
Categories: debugging, javascript