UNPKG

gluebert

Version:

gluebert.js is a tiny helper orchestrating interactive html elements with on demand dynamic import Edit

1 lines 784 B
"use strict";var _createClass=function(){function a(a,b){for(var c,d=0;d<b.length;d++)c=b[d],c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(a,c.key,c)}return function(b,c,d){return c&&a(b.prototype,c),d&&a(b,d),b}}();Object.defineProperty(exports,"__esModule",{value:!0});function _classCallCheck(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}var ControllerAbstract=function(){function a(b,c,d,e){_classCallCheck(this,a),this._element=b,this._data=c,this._elements=d,this._dependencies=e||null,this._dependencies&&this._dependencies.inject(this)}return _createClass(a,[{key:"destruct",value:function destruct(){this._data.unsubscribe(this)}}]),a}();exports.ControllerAbstract=ControllerAbstract;