Remove extra newlines around comments
This commit is contained in:
parent
990dc30e8d
commit
030d2a843c
40 changed files with 103 additions and 425 deletions
|
@ -10,7 +10,6 @@ module.exports = CallbacksRegistry = (function() {
|
|||
}
|
||||
|
||||
CallbacksRegistry.prototype.add = function(callback) {
|
||||
|
||||
// The callback is already added.
|
||||
var filenameAndLine, id, location, match, ref, regexp, stackString, x;
|
||||
id = v8Util.getHiddenValue(callback, 'callbackId');
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
if (process.platform === 'linux' && process.type === 'renderer') {
|
||||
|
||||
// On Linux we could not access clipboard in renderer process.
|
||||
module.exports = require('electron').remote.clipboard;
|
||||
} else {
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
// Deprecate a method.
|
||||
var deprecate,
|
||||
slice = [].slice;
|
||||
|
@ -15,9 +14,7 @@ deprecate = function(oldName, newName, fn) {
|
|||
};
|
||||
};
|
||||
|
||||
|
||||
// The method is renamed.
|
||||
|
||||
deprecate.rename = function(object, oldName, newName) {
|
||||
var newMethod, warned;
|
||||
warned = false;
|
||||
|
@ -35,9 +32,7 @@ deprecate.rename = function(object, oldName, newName) {
|
|||
}
|
||||
};
|
||||
|
||||
|
||||
// Forward the method to member.
|
||||
|
||||
deprecate.member = function(object, method, member) {
|
||||
var warned;
|
||||
warned = false;
|
||||
|
@ -50,9 +45,7 @@ deprecate.member = function(object, method, member) {
|
|||
};
|
||||
};
|
||||
|
||||
|
||||
// Deprecate a property.
|
||||
|
||||
deprecate.property = function(object, property, method) {
|
||||
return Object.defineProperty(object, property, {
|
||||
get: function() {
|
||||
|
@ -67,9 +60,7 @@ deprecate.property = function(object, property, method) {
|
|||
});
|
||||
};
|
||||
|
||||
|
||||
// Deprecate an event.
|
||||
|
||||
deprecate.event = function(emitter, oldName, newName, fn) {
|
||||
var warned;
|
||||
warned = false;
|
||||
|
@ -92,16 +83,12 @@ deprecate.event = function(emitter, oldName, newName, fn) {
|
|||
});
|
||||
};
|
||||
|
||||
|
||||
// Print deprecation warning.
|
||||
|
||||
deprecate.warn = function(oldName, newName) {
|
||||
return deprecate.log(oldName + " is deprecated. Use " + newName + " instead.");
|
||||
};
|
||||
|
||||
|
||||
// Print deprecation message.
|
||||
|
||||
deprecate.log = function(message) {
|
||||
if (process.throwDeprecation) {
|
||||
throw new Error(message);
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
// Do not expose the internal modules to `require`.
|
||||
exports.hideInternalModules = function() {
|
||||
var globalPaths;
|
||||
|
@ -10,9 +9,7 @@ exports.hideInternalModules = function() {
|
|||
}
|
||||
};
|
||||
|
||||
|
||||
// Attaches properties to |exports|.
|
||||
|
||||
exports.defineProperties = function(exports) {
|
||||
return Object.defineProperties(exports, {
|
||||
|
||||
|
|
|
@ -4,9 +4,7 @@ deprecate = require('electron').deprecate;
|
|||
|
||||
nativeImage = process.atomBinding('native_image');
|
||||
|
||||
|
||||
// Deprecated.
|
||||
|
||||
deprecate.rename(nativeImage, 'createFromDataUrl', 'createFromDataURL');
|
||||
|
||||
module.exports = nativeImage;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue