@angular-mdc/web
Version:
8 lines • 1.11 kB
JavaScript
/**
* @license
* Copyright (c) Dominic Carretto
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://github.com/trimox/angular-mdc-web/blob/master/LICENSE
*/
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define("@angular-mdc/web/base",["exports"],t):t(((e=e||self).ng=e.ng||{},e.ng.web=e.ng.web||{},e.ng.web.base={}))}(this,(function(e){"use strict";var t=function(){function e(e,t){for(var n=[],o=2;o<arguments.length;o++)n[o-2]=arguments[o];this._elementRef=e,this.initialize.apply(this,n),this._foundation=void 0===t?this.getDefaultFoundation():t}return e.prototype.initialize=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t]},e.prototype.getDefaultFoundation=function(){throw new Error("Subclasses must override getDefaultFoundation to return a properly configured foundation class")},e.prototype.destroy=function(){var e;null===(e=this._foundation)||void 0===e||e.destroy()},e}();e.MDCComponent=t,Object.defineProperty(e,"__esModule",{value:!0})}));