replace __proto__ with Object.setPrototype
This commit is contained in:
parent
2c3cacdc08
commit
4e2f1311e0
10 changed files with 12 additions and 12 deletions
|
@ -87,7 +87,7 @@ var indexToInsertByPosition = function (items, position) {
|
|||
|
||||
const Menu = bindings.Menu
|
||||
|
||||
Menu.prototype.__proto__ = EventEmitter.prototype
|
||||
Object.setPrototypeOf(Menu.prototype, EventEmitter.prototype)
|
||||
|
||||
Menu.prototype._init = function () {
|
||||
this.commandsMap = {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue