chore: there is no need to define _init (#22882)
This commit is contained in:
parent
4ba91c938e
commit
d74ad631e7
3 changed files with 0 additions and 16 deletions
|
@ -1,11 +1,5 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
const { EventEmitter } = require('events');
|
|
||||||
const { View } = process.electronBinding('view');
|
const { View } = process.electronBinding('view');
|
||||||
|
|
||||||
Object.setPrototypeOf(View.prototype, EventEmitter.prototype);
|
|
||||||
|
|
||||||
View.prototype._init = function () {
|
|
||||||
};
|
|
||||||
|
|
||||||
module.exports = View;
|
module.exports = View;
|
||||||
|
|
|
@ -5,9 +5,4 @@ const { ImageView } = process.electronBinding('image_view');
|
||||||
|
|
||||||
Object.setPrototypeOf(ImageView.prototype, View.prototype);
|
Object.setPrototypeOf(ImageView.prototype, View.prototype);
|
||||||
|
|
||||||
ImageView.prototype._init = function () {
|
|
||||||
// Call parent class's _init.
|
|
||||||
View.prototype._init.call(this);
|
|
||||||
};
|
|
||||||
|
|
||||||
module.exports = ImageView;
|
module.exports = ImageView;
|
||||||
|
|
|
@ -7,9 +7,4 @@ const { WebContentsView } = process.electronBinding('web_contents_view');
|
||||||
|
|
||||||
Object.setPrototypeOf(WebContentsView.prototype, View.prototype);
|
Object.setPrototypeOf(WebContentsView.prototype, View.prototype);
|
||||||
|
|
||||||
WebContentsView.prototype._init = function () {
|
|
||||||
// Call parent class's _init.
|
|
||||||
View.prototype._init.call(this);
|
|
||||||
};
|
|
||||||
|
|
||||||
module.exports = WebContentsView;
|
module.exports = WebContentsView;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue