wepy-ant
Version:
参见:[小程序框架wepy](https://github.com/wepyjs/wepy)
42 lines (32 loc) • 1.46 kB
JavaScript
Object.defineProperty(exports, "__esModule", {
value: true
});
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
var _class = function () {
function _class(name, source, type) {
_classCallCheck(this, _class);
this.active = true;
this.name = name;
this.source = source;
this.type = type;
}
_createClass(_class, [{
key: "$destroy",
value: function $destroy() {
this.active = false;
}
}, {
key: "$transfor",
value: function $transfor(wxevent) {
var k = 0;
for (k in wxevent) {
this[k] = wxevent[k];
}
}
}]);
return _class;
}();
exports.default = _class;
//# sourceMappingURL=event.js.map
;