classes.js (1523B)
1 var rollupBabel6Classes = (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 one = 1; 10 11 var Thing = function () { 12 function Thing() { 13 _classCallCheck(this, Thing); 14 } 15 16 _createClass(Thing, [{ 17 key: "one", 18 value: function one() { 19 console.log("pause here"); 20 } 21 }]); 22 23 return Thing; 24 }(); 25 26 var Another = function () { 27 function Another() { 28 _classCallCheck(this, Another); 29 } 30 31 _createClass(Another, [{ 32 key: "method", 33 value: function method() { 34 35 console.log("pause here", Another, one, Thing, root); 36 } 37 }]); 38 39 return Another; 40 }(); 41 42 new Another().method(); 43 new Thing().one(); 44 } 45 46 return root; 47 48 }()); 49 //# sourceMappingURL=classes.js.map