lib/collection/index.js
function(methodName, alternatives) {
	return function() {
		var callback = Array.prototype.slice.call(arguments).pop();
		if (!Array.isArray(alternatives)) {
			alternatives = [alternatives];
		}

		var alternativeString;
		if (alternatives.length === 1) {
			alternativeString = alternatives[0];
		} else {
			var lastItem = alternatives.pop();
			alternativeString = alternatives.join('", "') + '" or "' +
				lastItem;
		}
		callback(MongoError.create({
			message: 'Method "' + methodName + '" is deprecated, use "' +
				alternativeString + '" instead',
			driver: true
		}));
	};
}
function(methodName, alternatives) {
	return function() {
		var callback = Array.prototype.slice.call(arguments).pop();
		if (!Array.isArray(alternatives)) {
			alternatives = [alternatives];
		}

		var alternativeString;
		if (alternatives.length === 1) {
			alternativeString = alternatives[0];
		} else {
			var lastItem = alternatives.pop();
			alternativeString = alternatives.join('", "') + '" or "' +
				lastItem;
		}
		callback(MongoError.create({
			message: 'Method "' + methodName + '" is deprecated, use "' +
				alternativeString + '" instead',
			driver: true
		}));
	};
}
function ( methodName , alternatives ) { return function ( ) { var callback = Array . prototype . slice . call ( arguments ) . pop ( ) ; if ( ! Array . isArray ( alternatives ) ) { alternatives = [ alternatives ] ; } var alternativeString ; if ( alternatives . length === 1 ) { alternativeString = alternatives [ 0 ] ; } else { var lastItem = alternatives . pop ( ) ; alternativeString = alternatives . join ( '", "' ) + '" or "' + lastItem ; } callback ( MongoError . create ( { message : 'Method "' + methodName + '" is deprecated, use "' + alternativeString + '" instead' , driver : true } ) ) ; } ; }
override deprecated methods, throw error
override deprecated methods throw error