Sha256: a61a0767c93ae1755687fb1662d47cc58f44c7c7947c215795bb29fdbb0dc2ac
Contents?: true
Size: 847 Bytes
Versions: 3
Compression:
Stored size: 847 Bytes
Contents
"use strict"; const conversions = require("webidl-conversions"); const utils = require("./utils.js"); const UIEventInit = require("./UIEventInit"); module.exports = { convertInherit(obj, ret) { UIEventInit.convertInherit(obj, ret); let key, value; key = "relatedTarget"; value = obj === undefined || obj === null ? undefined : obj[key]; if (value !== undefined) { ret[key] = (value); } else { ret[key] = null; } }, convert(obj) { if (obj !== undefined && typeof obj !== "object") { throw new TypeError("Dictionary has to be an object"); } if (obj instanceof Date || obj instanceof RegExp) { throw new TypeError("Dictionary may not be a Date or RegExp object"); } const ret = Object.create(null); module.exports.convertInherit(obj, ret); return ret; } };
Version data entries
3 entries across 3 versions & 3 rubygems