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(){ | |
function scan(thing){ | |
var proto = thing.prototype, | |
keys = Object.keys(proto), | |
keyValuePairs = keys.map(function(key){ |
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 deprecate(msg){ | |
var err = new Error(), | |
stack = err.stack, | |
lines = stack.split('\n').slice(3) | |
console.log("Deprecated method "+msg+"\n"+ lines.join('\n')) | |
} |