Created
January 20, 2016 11:41
-
-
Save keyserfaty/ce84258ef07e0f79915f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"use strict"; | |
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 Thing = (function() { | |
function Thing($q) { | |
_classCallCheck(this, Thing); | |
this.$q = $q; | |
} | |
_createClass(Thing, [{ | |
key: "doStuff", | |
value: function doStuff(a, b) { | |
var $q = this.$q; | |
return a + b; | |
} | |
}]); | |
return Thing; | |
})(); | |
exports["default"] = Thing; | |
module.exports = exports["default"]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment