Clean up variable declarations
This commit is contained in:
parent
5a4a8e1fa7
commit
003de0debe
4 changed files with 9 additions and 9 deletions
|
@ -60,10 +60,10 @@ var fn = function(name) {
|
|||
return webContents.emit.apply(webContents, [name, event].concat(slice.call(args)));
|
||||
});
|
||||
};
|
||||
var i, len;
|
||||
var i, len, name;
|
||||
for (i = 0, len = ref1.length; i < len; i++) {
|
||||
var name = ref1[i];
|
||||
fn(name);
|
||||
name = ref1[i];
|
||||
fn(ref1[i]);
|
||||
}
|
||||
|
||||
// Deprecated.
|
||||
|
|
|
@ -163,8 +163,8 @@ module.exports = {
|
|||
|
||||
// Mark standard asynchronous functions.
|
||||
var ref1 = ['showMessageBox', 'showOpenDialog', 'showSaveDialog'];
|
||||
var j, len
|
||||
var j, len, api;
|
||||
for (j = 0, len = ref1.length; j < len; j++) {
|
||||
var api = ref1[j];
|
||||
api = ref1[j];
|
||||
v8Util.setHiddenValue(module.exports[api], 'asynchronous', true);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue