captureCalls(document, 'getElementById')
captureCalls('document.getElementById') // the same as the previous
document.getElementById.revertToOriginal()
captureCalls.stacktrace
true
: include stack traces in the output
captureCalls.logFileNames
true
: show URLs with line numbers, e.g. http://nv.github.io/captureCalls.js/demo/demo.js:7
captureCalls.logDetails
false
: show an object with details, e.g. {this: window, function: function() {[native]}}