Use const
		
	This commit is contained in:
		
					parent
					
						
							
								1779701445
							
						
					
				
			
			
				commit
				
					
						ab8908a4af
					
				
			
		
					 7 changed files with 29 additions and 49 deletions
				
			
		|  | @ -1,16 +1,15 @@ | |||
| var getNextId, ipcRenderer, isValid, nativeImage, nextId, ref, | ||||
|   indexOf = [].indexOf || function(item) { for (var i = 0, l = this.length; i < l; i++) { if (i in this && this[i] === item) return i; } return -1; }; | ||||
| const ipcRenderer = require('electron').ipcRenderer; | ||||
| const nativeImage = require('electron').ref.nativeImage; | ||||
| 
 | ||||
| ref = require('electron'), ipcRenderer = ref.ipcRenderer, nativeImage = ref.nativeImage; | ||||
| var nextId = 0; | ||||
| var indexOf = [].indexOf || function(item) { for (var i = 0, l = this.length; i < l; i++) { if (i in this && this[i] === item) return i; } return -1; }; | ||||
| 
 | ||||
| nextId = 0; | ||||
| 
 | ||||
| getNextId = function() { | ||||
| var getNextId = function() { | ||||
|   return ++nextId; | ||||
| }; | ||||
| 
 | ||||
| // |options.type| can not be empty and has to include 'window' or 'screen'.
 | ||||
| isValid = function(options) { | ||||
| var isValid = function(options) { | ||||
|   return ((options != null ? options.types : void 0) != null) && Array.isArray(options.types); | ||||
| }; | ||||
| 
 | ||||
|  |  | |||
|  | @ -1,6 +1,4 @@ | |||
| var common; | ||||
| 
 | ||||
| common = require('../../../../common/api/lib/exports/electron'); | ||||
| const common = require('../../../../common/api/lib/exports/electron'); | ||||
| 
 | ||||
| // Import common modules.
 | ||||
| common.defineProperties(exports); | ||||
|  |  | |||
|  | @ -1,14 +1,11 @@ | |||
| var EventEmitter, binding, ipcRenderer, v8Util, | ||||
|   slice = [].slice; | ||||
| const EventEmitter = require('events').EventEmitter; | ||||
| const binding = process.atomBinding('ipc'); | ||||
| const v8Util = process.atomBinding('v8_util'); | ||||
| 
 | ||||
| EventEmitter = require('events').EventEmitter; | ||||
| 
 | ||||
| binding = process.atomBinding('ipc'); | ||||
| 
 | ||||
| v8Util = process.atomBinding('v8_util'); | ||||
| var slice = [].slice; | ||||
| 
 | ||||
| // Created by init.coffee.
 | ||||
| ipcRenderer = v8Util.getHiddenValue(global, 'ipc'); | ||||
| const ipcRenderer = v8Util.getHiddenValue(global, 'ipc'); | ||||
| 
 | ||||
| ipcRenderer.send = function() { | ||||
|   var args; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Jessica Lord
				Jessica Lord