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.
@@ -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);
@@ -1,7 +1,7 @@
1
1
  module Babel
2
2
  module Source
3
- VERSION = "5.0.0.beta3"
4
- DATE = Time.at(1427554350)
3
+ VERSION = "5.0.0.beta4"
4
+ DATE = Time.at(1427809595)
5
5
  PATH = File.expand_path("../..", __FILE__)
6
6
  end
7
7
  end
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.beta3
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-28 00:00:00.000000000 Z
11
+ date: 2015-03-31 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description:
14
14
  email: sebmck@gmail.com