babel-source 4.7.4 → 4.7.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/babel.js +323 -327
- data/lib/babel/external-helpers.js +21 -0
- data/lib/babel/source.rb +2 -2
- metadata +2 -2
@@ -50,6 +50,27 @@
|
|
50
50
|
};
|
51
51
|
})();
|
52
52
|
|
53
|
+
babelHelpers.createComputedClass = (function () {
|
54
|
+
function defineProperties(target, rawProps) {
|
55
|
+
var props = {};
|
56
|
+
|
57
|
+
for (var i = 0; i < rawProps.length; i++) {
|
58
|
+
var prop = rawProps[i];
|
59
|
+
prop.configurable = true;
|
60
|
+
if (prop.value) prop.writable = true;
|
61
|
+
props[prop.key] = prop;
|
62
|
+
}
|
63
|
+
|
64
|
+
Object.defineProperties(target, props);
|
65
|
+
}
|
66
|
+
|
67
|
+
return function (Constructor, protoProps, staticProps) {
|
68
|
+
if (protoProps) defineProperties(Constructor.prototype, protoProps);
|
69
|
+
if (staticProps) defineProperties(Constructor, staticProps);
|
70
|
+
return Constructor;
|
71
|
+
};
|
72
|
+
})();
|
73
|
+
|
53
74
|
babelHelpers.applyConstructor = function (Constructor, args) {
|
54
75
|
var instance = Object.create(Constructor.prototype);
|
55
76
|
var result = Constructor.apply(instance, args);
|
data/lib/babel/source.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: babel-source
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.7.
|
4
|
+
version: 4.7.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sebastian McKenzie
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-03-
|
11
|
+
date: 2015-03-10 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description:
|
14
14
|
email: sebmck@gmail.com
|