You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
1.8 KiB
38 lines
1.8 KiB
'use strict'; |
|
|
|
var _classCallCheck = function (instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }; |
|
|
|
var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })(); |
|
|
|
var _inherits = function (subClass, superClass) { if (typeof superClass !== 'function' && superClass !== null) { throw new TypeError('Super expression must either be null or a function, not ' + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) subClass.__proto__ = superClass; }; |
|
|
|
/** |
|
* This component is necessary to get around a context warning |
|
* present in React 0.13.0. It sovles this by providing a separation |
|
* between the "owner" and "parent" contexts. |
|
*/ |
|
|
|
var React = require('react'); |
|
|
|
var ContextWrapper = (function (_React$Component) { |
|
function ContextWrapper() { |
|
_classCallCheck(this, ContextWrapper); |
|
|
|
if (_React$Component != null) { |
|
_React$Component.apply(this, arguments); |
|
} |
|
} |
|
|
|
_inherits(ContextWrapper, _React$Component); |
|
|
|
_createClass(ContextWrapper, [{ |
|
key: 'render', |
|
value: function render() { |
|
return this.props.children; |
|
} |
|
}]); |
|
|
|
return ContextWrapper; |
|
})(React.Component); |
|
|
|
module.exports = ContextWrapper; |