babel-source 4.6.6 → 4.7.0
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 +1106 -709
- data/lib/babel/external-helpers.js +17 -4
- data/lib/babel/source.rb +2 -2
- metadata +2 -2
@@ -32,10 +32,23 @@
|
|
32
32
|
return obj;
|
33
33
|
};
|
34
34
|
|
35
|
-
babelHelpers.
|
36
|
-
|
37
|
-
|
38
|
-
|
35
|
+
babelHelpers.createClass = (function () {
|
36
|
+
function defineProperties(target, props) {
|
37
|
+
for (var key in props) {
|
38
|
+
var prop = props[key];
|
39
|
+
prop.configurable = true;
|
40
|
+
if (prop.value) prop.writable = true;
|
41
|
+
}
|
42
|
+
|
43
|
+
Object.defineProperties(target, props);
|
44
|
+
}
|
45
|
+
|
46
|
+
return function (Constructor, protoProps, staticProps) {
|
47
|
+
if (protoProps) defineProperties(Constructor.prototype, protoProps);
|
48
|
+
if (staticProps) defineProperties(Constructor, staticProps);
|
49
|
+
return Constructor;
|
50
|
+
};
|
51
|
+
})();
|
39
52
|
|
40
53
|
babelHelpers.applyConstructor = function (Constructor, args) {
|
41
54
|
var instance = Object.create(Constructor.prototype);
|
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.
|
4
|
+
version: 4.7.0
|
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-06 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description:
|
14
14
|
email: sebmck@gmail.com
|