Created
August 13, 2018 06:15
-
-
Save VSeryoga/996548b2017589567ce3d63d2a7a4ae1 to your computer and use it in GitHub Desktop.
Перехват функции js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function(doStaf) { | |
app.doStaf = function() { | |
// здесь выводим все аргументы, с которыми был вызван app.doStaf() | |
console.log('app.doStaf args', arguments); | |
return doStaf.apply(this, arguments); | |
}; | |
})(app.doStaf); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment