babel-source 5.0.0.beta3 → 5.0.0.beta4
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 +4211 -912
- data/lib/babel/external-helpers.js +13 -1
- data/lib/babel/source.rb +2 -2
- metadata +2 -2
@@ -73,7 +73,7 @@
|
|
73
73
|
}
|
74
74
|
}
|
75
75
|
|
76
|
-
initializers[key] = descriptor.initializer;
|
76
|
+
if (initializers) initializers[key] = descriptor.initializer;
|
77
77
|
}
|
78
78
|
|
79
79
|
Object.defineProperty(target, key, descriptor);
|
@@ -310,4 +310,16 @@
|
|
310
310
|
};
|
311
311
|
|
312
312
|
babelHelpers.selfGlobal = typeof global === "undefined" ? self : global;
|
313
|
+
|
314
|
+
babelHelpers.defaultProps = function (defaultProps, props) {
|
315
|
+
if (defaultProps) {
|
316
|
+
for (var propName in defaultProps) {
|
317
|
+
if (typeof props[propName] === "undefined") {
|
318
|
+
props[propName] = defaultProps[propName];
|
319
|
+
}
|
320
|
+
}
|
321
|
+
}
|
322
|
+
|
323
|
+
return props;
|
324
|
+
};
|
313
325
|
})(typeof global === "undefined" ? self : global);
|
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: 5.0.0.
|
4
|
+
version: 5.0.0.beta4
|
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-31 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description:
|
14
14
|
email: sebmck@gmail.com
|