2018-05-24 07:56:02 +00:00
|
|
|
'use strict'
|
|
|
|
|
|
|
|
const electron = require('electron')
|
|
|
|
|
2018-09-13 16:10:51 +00:00
|
|
|
const { View } = electron
|
2019-03-18 19:37:06 +00:00
|
|
|
const { Button } = process.electronBinding('button')
|
2018-05-24 07:56:02 +00:00
|
|
|
|
|
|
|
Object.setPrototypeOf(Button.prototype, View.prototype)
|
|
|
|
|
|
|
|
Button.prototype._init = function () {
|
|
|
|
// Call parent class's _init.
|
|
|
|
View.prototype._init.call(this)
|
|
|
|
}
|
|
|
|
|
|
|
|
module.exports = Button
|