lib/api/deprecate.js
function deprecateRenamedMethod(book, key, instance, oldName, newName, msg) {
    msg = msg || ('"' + oldName + '" is deprecated, use "' + newName + '()" instead');
    var fn = objectPath.get(instance, newName);

    instance[oldName] = deprecateMethod(book, key, fn, msg);
}
function deprecateRenamedMethod(book, key, instance, oldName, newName, msg) {
    msg = msg || ('"' + oldName + '" is deprecated, use "' + newName + '()" instead');
    var fn = objectPath.get(instance, newName);

    instance[oldName] = deprecateMethod(book, key, fn, msg);
}
function deprecateRenamedMethod ( book , key , instance , oldName , newName , msg ) { msg = msg || ( '"' + oldName + '" is deprecated, use "' + newName + '()" instead' ) ; var fn = objectPath . get ( instance , newName ) ; instance [ oldName ] = deprecateMethod ( book , key , fn , msg ) ; }
Deprecate a method in favor of another one

@param {Book} book
@param {String} key
@param {Object} instance
@param {String} oldName
@param {String} newName
Deprecate a method in favor of another one