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

@ -11,7 +11,7 @@ module.exports = CallbacksRegistry = (function() {
CallbacksRegistry.prototype.add = function(callback) {
/* The callback is already added. */
// The callback is already added.
var filenameAndLine, id, location, match, ref, regexp, stackString, x;
id = v8Util.getHiddenValue(callback, 'callbackId');
if (id != null) {

View file

@ -1,6 +1,6 @@
if (process.platform === 'linux' && process.type === 'renderer') {
/* On Linux we could not access clipboard in renderer process. */
// On Linux we could not access clipboard in renderer process.
module.exports = require('electron').remote.clipboard;
} else {
module.exports = process.atomBinding('clipboard');

View file

@ -22,7 +22,7 @@ CrashReporter = (function() {
}
this.productName = options.productName, companyName = options.companyName, submitURL = options.submitURL, autoSubmit = options.autoSubmit, ignoreSystemCrashHandler = options.ignoreSystemCrashHandler, extra = options.extra;
/* Deprecated. */
// Deprecated.
deprecate = electron.deprecate;
if (options.submitUrl) {
if (submitURL == null) {

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) {

View file

@ -1,25 +1,25 @@
/* Do not expose the internal modules to `require`. */
// Do not expose the internal modules to `require`.
exports.hideInternalModules = function() {
var globalPaths;
globalPaths = require('module').globalPaths;
if (globalPaths.length === 3) {
/* Remove the "common/api/lib" and "browser-or-renderer/api/lib". */
// Remove the "common/api/lib" and "browser-or-renderer/api/lib".
return globalPaths.splice(0, 2);
}
};
/* Attaches properties to |exports|. */
// Attaches properties to |exports|.
exports.defineProperties = function(exports) {
return Object.defineProperties(exports, {
/* Common modules, please sort with alphabet order. */
// Common modules, please sort with alphabet order.
clipboard: {
/* Must be enumerable, otherwise it woulde be invisible to remote module. */
// Must be enumerable, otherwise it woulde be invisible to remote module.
enumerable: true,
get: function() {
return require('../clipboard');
@ -44,7 +44,7 @@ exports.defineProperties = function(exports) {
}
},
/* The internal modules, invisible unless you know their names. */
// The internal modules, invisible unless you know their names.
CallbacksRegistry: {
get: function() {
return require('../callbacks-registry');

View file

@ -5,7 +5,7 @@ deprecate = require('electron').deprecate;
nativeImage = process.atomBinding('native_image');
/* Deprecated. */
// Deprecated.
deprecate.rename(nativeImage, 'createFromDataUrl', 'createFromDataURL');