UNPKG

este-library-oldschool

Version:

Library for github.com/steida/este.git

33 lines (30 loc) 794 B
// Generated by github.com/steida/coffee2closure 900.1.18 /** @fileoverview Show page, hide previous. */ goog.provide('este.labs.app.SimplePagesContainer'); goog.require('este.labs.app.PagesContainer'); /** @constructor @implements {este.labs.app.PagesContainer} */ este.labs.app.SimplePagesContainer = function() {} /** @type {este.labs.app.Page} @protected */ este.labs.app.SimplePagesContainer.prototype.previous = null; /** @override */ este.labs.app.SimplePagesContainer.prototype.show = function(page, container, data) { if (this.previous) { this.previous.hide(); container.removeChild(this.previous.getElement()); } if (page.getElement()) { container.appendChild(page.getElement()); } page.show(container, data); return this.previous = page; };