babel-classes.js (1307B)
1 var rollupBabel6BabelClasses = (function () { 2 'use strict'; 3 4 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; }; }(); 5 6 function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } 7 8 function root() { 9 var Another = function () { 10 function Another() { 11 var _this = this; 12 13 _classCallCheck(this, Another); 14 15 this.bound = function () { 16 return _this; 17 }; 18 } 19 20 _createClass(Another, [{ 21 key: "method", 22 value: function method() { 23 24 console.log("pause here", Another, root); 25 } 26 }]); 27 28 return Another; 29 }(); 30 31 new Another().method(); 32 } 33 34 return root; 35 36 }()); 37 //# sourceMappingURL=babel-classes.js.map