diff options
author | Bernhard Posselt <dev@bernhard-posselt.com> | 2015-10-25 13:34:15 +0100 |
---|---|---|
committer | Bernhard Posselt <dev@bernhard-posselt.com> | 2015-10-25 13:34:15 +0100 |
commit | bf7ff10a5114c0517cd7082ee95ccecb0c7f807d (patch) | |
tree | 1f9487f4a90a3d095791e36a9a83b661b7534655 /js/vendor/es6-shim/es6-sham.js | |
parent | 66092f836580bc4a6e0bb203015d9772560c1cb0 (diff) |
update bower deps
Diffstat (limited to 'js/vendor/es6-shim/es6-sham.js')
-rw-r--r-- | js/vendor/es6-shim/es6-sham.js | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/js/vendor/es6-shim/es6-sham.js b/js/vendor/es6-shim/es6-sham.js index 09d6218cb..851b83046 100644 --- a/js/vendor/es6-shim/es6-sham.js +++ b/js/vendor/es6-shim/es6-sham.js @@ -2,8 +2,8 @@ * https://github.com/paulmillr/es6-shim * @license es6-shim Copyright 2013-2015 by Paul Miller (http://paulmillr.com) * and contributors, MIT License - * es6-sham: v0.33.3 - * see https://github.com/paulmillr/es6-shim/blob/0.33.3/LICENSE + * es6-sham: v0.33.8 + * see https://github.com/paulmillr/es6-shim/blob/0.33.8/LICENSE * Details and documentation: * https://github.com/paulmillr/es6-shim/ */ @@ -106,11 +106,14 @@ // Safari, old Firefox, many others setPrototypeOf = function (origin, proto) { // if proto is not null - return getPrototypeOf(origin) ? + if (getPrototypeOf(origin)) { // use __proto__ to promote - ((origin.__proto__ = proto), origin) : + origin.__proto__ = proto; + return origin; + } else { // otherwise unable to promote: fallback - createAndCopy(origin, proto); + return createAndCopy(origin, proto); + } }; } } |