electron/lib/browser/api/views/button.js
Samuel Attard a524c5ec12
chore: move the view APIs to their own directory (#14722)
* chore: move the view APIs to their own directory

* move view api cpp files
2018-09-28 12:47:09 +10:00

15 lines
317 B
JavaScript

'use strict'
const electron = require('electron')
const { View } = electron
const { Button } = process.atomBinding('button')
Object.setPrototypeOf(Button.prototype, View.prototype)
Button.prototype._init = function () {
// Call parent class's _init.
View.prototype._init.call(this)
}
module.exports = Button