diff --git a/phantomas_custom/modules/jQYLT/jQYLT.js b/phantomas_custom/modules/jQYLT/jQYLT.js index 149fce0..e33e1b6 100644 --- a/phantomas_custom/modules/jQYLT/jQYLT.js +++ b/phantomas_custom/modules/jQYLT/jQYLT.js @@ -62,6 +62,7 @@ exports.module = function(phantomas) { 'delegate', 'undelegate', 'one', + 'bind', 'unbind', // more events @@ -182,29 +183,6 @@ exports.module = function(phantomas) { phantomas.leaveContext(moreData); }) || phantomas.log('jQuery: can not measure jQuerySizzleCalls (jQuery used on the page is too old)!'); - - // $().bind - jQuery.bind - // works for jQuery v?.? - phantomas.spy(jQueryFn, 'bind', function(eventTypes, func) { - - phantomas.enterContext({ - type: 'jQuery - bind', - callDetails: { - context: { - length: this.length, - firstElementPath: phantomas.getDOMPath(this[0]), - selector: this.selector - }, - arguments: [eventTypes, func] - }, - backtrace: phantomas.getBacktrace() - }); - - }, function(result) { - phantomas.leaveContext(); - }) || phantomas.log('jQuery: can not measure jQueryBindCalls (jQuery used on the page is too old)!'); - - // Add spys on many jQuery functions jQueryFunctions.forEach(function(functionName) {