Use // for single line comments

This commit is contained in:
Kevin Sawicki 2016-01-14 10:35:29 -08:00
parent 26350f4ccb
commit f4af744519
43 changed files with 311 additions and 310 deletions

View file

@ -1,5 +1,5 @@
/* Deprecate a method. */
// Deprecate a method.
var deprecate,
slice = [].slice;
@ -16,7 +16,7 @@ deprecate = function(oldName, newName, fn) {
};
/* The method is renamed. */
// The method is renamed.
deprecate.rename = function(object, oldName, newName) {
var newMethod, warned;
@ -36,7 +36,7 @@ deprecate.rename = function(object, oldName, newName) {
};
/* Forward the method to member. */
// Forward the method to member.
deprecate.member = function(object, method, member) {
var warned;
@ -51,7 +51,7 @@ deprecate.member = function(object, method, member) {
};
/* Deprecate a property. */
// Deprecate a property.
deprecate.property = function(object, property, method) {
return Object.defineProperty(object, property, {
@ -68,7 +68,7 @@ deprecate.property = function(object, property, method) {
};
/* Deprecate an event. */
// Deprecate an event.
deprecate.event = function(emitter, oldName, newName, fn) {
var warned;
@ -77,7 +77,7 @@ deprecate.event = function(emitter, oldName, newName, fn) {
var args;
args = 1 <= arguments.length ? slice.call(arguments, 0) : [];
/* there is listeners for old API. */
// there is listeners for old API.
if (this.listenerCount(oldName) > 0) {
if (!(warned || process.noDeprecation)) {
warned = true;
@ -93,14 +93,14 @@ deprecate.event = function(emitter, oldName, newName, fn) {
};
/* Print deprecation warning. */
// Print deprecation warning.
deprecate.warn = function(oldName, newName) {
return deprecate.log(oldName + " is deprecated. Use " + newName + " instead.");
};
/* Print deprecation message. */
// Print deprecation message.
deprecate.log = function(message) {
if (process.throwDeprecation) {