Migrate to block comments
This commit is contained in:
parent
630cd091a0
commit
403870a27e
44 changed files with 538 additions and 437 deletions
|
@ -1,16 +1,16 @@
|
|||
# Do not expose the internal modules to `require`.
|
||||
### Do not expose the internal modules to `require`. ###
|
||||
exports.hideInternalModules = ->
|
||||
{globalPaths} = require 'module'
|
||||
if globalPaths.length is 3
|
||||
# Remove the "common/api/lib" and "browser-or-renderer/api/lib".
|
||||
### Remove the "common/api/lib" and "browser-or-renderer/api/lib". ###
|
||||
globalPaths.splice 0, 2
|
||||
|
||||
# Attaches properties to |exports|.
|
||||
### Attaches properties to |exports|. ###
|
||||
exports.defineProperties = (exports) ->
|
||||
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: -> require '../clipboard'
|
||||
crashReporter:
|
||||
|
@ -22,7 +22,7 @@ exports.defineProperties = (exports) ->
|
|||
shell:
|
||||
enumerable: true
|
||||
get: -> require '../shell'
|
||||
# The internal modules, invisible unless you know their names.
|
||||
### The internal modules, invisible unless you know their names. ###
|
||||
CallbacksRegistry:
|
||||
get: -> require '../callbacks-registry'
|
||||
deprecate:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue