Created
November 16, 2012 09:18
-
-
Save jbrooksuk/4085787 to your computer and use it in GitHub Desktop.
JavaScript Proxy Pattern
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() { | |
var proxied = window.alert; | |
window.alert = function() { | |
return proxied.apply(this, arguments); | |
}; | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment