Skip to content

Commit e19827c

Browse files
committed
Version++
1 parent 8326dc0 commit e19827c

File tree

2 files changed

+19
-5
lines changed

2 files changed

+19
-5
lines changed

lib/CodeExample.js

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ Object.defineProperty(exports, '__esModule', {
66

77
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; }; })();
88

9+
var _get = function get(_x, _x2, _x3) { var _again = true; _function: while (_again) { desc = parent = getter = undefined; _again = false; var object = _x,
10+
property = _x2,
11+
receiver = _x3; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { _x = parent; _x2 = property; _x3 = receiver; _again = true; continue _function; } } else if ('value' in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } } };
12+
913
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
1014

1115
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }
@@ -37,19 +41,29 @@ var defaultProps = {
3741
};
3842

3943
var CodeExample = (function (_React$Component) {
40-
function CodeExample() {
44+
function CodeExample(props) {
4145
_classCallCheck(this, CodeExample);
4246

43-
if (_React$Component != null) {
44-
_React$Component.apply(this, arguments);
45-
}
47+
_get(Object.getPrototypeOf(CodeExample.prototype), 'constructor', this).call(this, props);
48+
49+
this.update = this.update.bind(this);
4650
}
4751

4852
_inherits(CodeExample, _React$Component);
4953

5054
_createClass(CodeExample, [{
5155
key: 'componentDidMount',
5256
value: function componentDidMount() {
57+
this.update();
58+
}
59+
}, {
60+
key: 'componentDidUpdate',
61+
value: function componentDidUpdate() {
62+
this.update();
63+
}
64+
}, {
65+
key: 'update',
66+
value: function update() {
5367
if (_CodeMirrorSettings.CodeMirror === undefined) {
5468
return;
5569
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-playground",
3-
"version": "0.0.5",
3+
"version": "0.0.6",
44
"description": "React Playground",
55
"main": "lib/index.js",
66
"scripts": {

0 commit comments

Comments
 (0)