este-library-oldschool
Version:
Library for github.com/steida/este.git
43 lines (39 loc) • 1.49 kB
JavaScript
// Generated by github.com/steida/coffee2closure 900.1.18
/**
@fileoverview este.ui.InvisibleOverlay.
@see /demos/ui/invisibleoverlay.html
*/
var extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.superClass_ = parent.prototype; return child; },
hasProp = {}.hasOwnProperty;
goog.provide('este.ui.InvisibleOverlay');
goog.provide('este.ui.InvisibleOverlay.create');
goog.require('goog.ui.Component');
/**
@constructor
@extends {goog.ui.Component}
*/
este.ui.InvisibleOverlay = function() {
este.ui.InvisibleOverlay.superClass_.constructor.call(this);
}
extend(este.ui.InvisibleOverlay, superClass);
/**
@return {este.ui.InvisibleOverlay}
*/
este.ui.InvisibleOverlay.create = function() {
return new este.ui.InvisibleOverlay;
};
/**
@override
*/
este.ui.InvisibleOverlay.prototype.createDom = function() {
este.ui.InvisibleOverlay.superClass_.createDom.call(this);
this.decorateInternal(this.getElement());
};
/**
@override
*/
este.ui.InvisibleOverlay.prototype.decorateInternal = function(element) {
este.ui.InvisibleOverlay.superClass_.decorateInternal.call(this, element);
this.getElement().style.cssText = "position: fixed;\nleft: 0; right: 0; top: 0; bottom: 0;\nz-index: 2147483647;\nbackground-color: #000";
goog.style.setOpacity(this.getElement(), 0);
};