sprockets-es6 0.1.1 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,34 +0,0 @@
1
- (function () {
2
- var self = typeof global === "undefined" ? window : global;
3
- var to5Runtime = self.to5Runtime = {};
4
- to5Runtime.extends = function (child, parent) {
5
- child.prototype = Object.create(parent.prototype, {
6
- constructor: {
7
- value: child,
8
- enumerable: false,
9
- writable: true,
10
- configurable: true
11
- }
12
- });
13
- child.__proto__ = parent;
14
- };
15
- to5Runtime.classProps = function (child, staticProps, instanceProps) {
16
- if (staticProps) Object.defineProperties(child, staticProps);
17
- if (instanceProps) Object.defineProperties(child.prototype, instanceProps);
18
- };
19
- to5Runtime.slice = Array.prototype.slice;
20
- to5Runtime.applyConstructor = function (Constructor, args) {
21
- var bindArgs = [null].concat(args);
22
-
23
- var Factory = Constructor.bind.apply(Constructor, bindArgs);
24
-
25
- return new Factory();
26
- };
27
- to5Runtime.taggedTemplateLiteral = function (strings, raw) {
28
- return Object.defineProperties(strings, {
29
- raw: {
30
- value: raw
31
- }
32
- });
33
- };
34
- })();