const v8Util = process.atomBinding('v8_util');
var slice = [].slice;
-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; };
+var indexOf = [].indexOf;
var fileDialogProperties = {
openFile: 1 << 0,
const nativeImage = require('electron').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; };
+var indexOf = [].indexOf;
var getNextId = function() {
return ++nextId;
const callbacksRegistry = new CallbacksRegistry;
-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; };
+var indexOf = [].indexOf;
// Check for circular reference.
var isCircular = function(field, visited) {