Use // for single line comments
This commit is contained in:
parent
26350f4ccb
commit
f4af744519
43 changed files with 311 additions and 310 deletions
|
@ -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');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue