diff options
| author | Johann-S <[email protected]> | 2018-06-11 22:25:37 +0200 |
|---|---|---|
| committer | XhmikosR <[email protected]> | 2019-02-20 22:05:45 +0200 |
| commit | 4510e7e61db27b264c1fadc125beb2d4c80f07df (patch) | |
| tree | a29d16a23ffff6732423f16e07cfb64782b081f5 /js/src/util.js | |
| parent | b4a3b00ac8635b51b6216f540ac59219432c0d65 (diff) | |
| download | bootstrap-4510e7e61db27b264c1fadc125beb2d4c80f07df.tar.xz bootstrap-4510e7e61db27b264c1fadc125beb2d4c80f07df.zip | |
fix(util): remove extend
Diffstat (limited to 'js/src/util.js')
| -rw-r--r-- | js/src/util.js | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/js/src/util.js b/js/src/util.js index 0b7f492fe..7a97411bb 100644 --- a/js/src/util.js +++ b/js/src/util.js @@ -114,28 +114,6 @@ const Util = { } }, - extend(obj1, ...others) { - const obj2 = others.shift() - for (const secondProp in obj2) { - if (Object.prototype.hasOwnProperty.call(obj2, secondProp)) { - const secondVal = obj2[secondProp] - // Is this value an object? If so, iterate over its properties, copying them over - if (secondVal && Object.prototype.toString.call(secondVal) === '[object Object]') { - obj1[secondProp] = obj1[secondProp] || {} - Util.extend(obj1[secondProp], secondVal) - } else { - obj1[secondProp] = secondVal - } - } - } - - if (others.length) { - this.extend(obj1, ...others) - } - - return obj1 - }, - makeArray(nodeList) { if (typeof nodeList === 'undefined' || nodeList === null) { return [] |
