diff options
Diffstat (limited to 'js/dist/button.js')
-rw-r--r-- | js/dist/button.js | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/js/dist/button.js b/js/dist/button.js index 4139b4bd34..7e6b55a600 100644 --- a/js/dist/button.js +++ b/js/dist/button.js @@ -34,7 +34,17 @@ function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; - subClass.__proto__ = superClass; + + _setPrototypeOf(subClass, superClass); + } + + function _setPrototypeOf(o, p) { + _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { + o.__proto__ = p; + return o; + }; + + return _setPrototypeOf(o, p); } /** @@ -134,8 +144,8 @@ _createClass(Button, null, [{ key: "DATA_KEY", - // Getters - get: function get() { + get: // Getters + function get() { return DATA_KEY; } }]); |