VulpesOS/assets/webapps/keyboard.gaiamobile.org/js/settings/base_view.js
OverSu b38dea0597 Publish Vulpes Preview 15 sources for desktop, Android and Tundra
Share Gaia assets and adapters, keep private profiles and development documents local, and update both public READMEs.
2026-09-30 23:13:03 +02:00

1 line
No EOL
939 B
JavaScript

;'use strict';(function(exports){var BaseView=function(){this.childViews={};};BaseView.prototype.childViews=null;BaseView.prototype.CONTAINER_ID=null;BaseView.prototype.container=null;BaseView.prototype.start=function(){if(this.CONTAINER_ID){this.container=document.getElementById(this.CONTAINER_ID);}};BaseView.prototype.stop=function(){this.container=null;};BaseView.prototype.beforeShow=function(options){return Promise.all(Object.keys(this.childViews).map(name=>this.childViews[name].beforeShow(options)));};BaseView.prototype.show=function(){return Promise.all(Object.keys(this.childViews).map(name=>this.childViews[name].show()));};BaseView.prototype.beforeHide=function(){return Promise.all(Object.keys(this.childViews).map(name=>this.childViews[name].beforeHide()));};BaseView.prototype.hide=function(){return Promise.all(Object.keys(this.childViews).map(name=>this.childViews[name].hide()));};exports.BaseView=BaseView;})(window);