react 15.5.2 → 15.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,41 +0,0 @@
1
- /**
2
- * Copyright 2013-present, Facebook, Inc.
3
- * All rights reserved.
4
- *
5
- * This source code is licensed under the BSD-style license found in the
6
- * LICENSE file in the root directory of this source tree. An additional grant
7
- * of patent rights can be found in the PATENTS file in the same directory.
8
- *
9
- */
10
-
11
- 'use strict';
12
-
13
- var _assign = require('object-assign');
14
-
15
- var ReactComponent = require('./ReactComponent');
16
- var ReactNoopUpdateQueue = require('./ReactNoopUpdateQueue');
17
-
18
- var emptyObject = require('fbjs/lib/emptyObject');
19
-
20
- /**
21
- * Base class helpers for the updating state of a component.
22
- */
23
- function ReactPureComponent(props, context, updater) {
24
- // Duplicated from ReactComponent.
25
- this.props = props;
26
- this.context = context;
27
- this.refs = emptyObject;
28
- // We initialize the default updater but the real one gets injected by the
29
- // renderer.
30
- this.updater = updater || ReactNoopUpdateQueue;
31
- }
32
-
33
- function ComponentDummy() {}
34
- ComponentDummy.prototype = ReactComponent.prototype;
35
- ReactPureComponent.prototype = new ComponentDummy();
36
- ReactPureComponent.prototype.constructor = ReactPureComponent;
37
- // Avoid an extra prototype jump for these methods.
38
- _assign(ReactPureComponent.prototype, ReactComponent.prototype);
39
- ReactPureComponent.prototype.isPureReactComponent = true;
40
-
41
- module.exports = ReactPureComponent;