react-dom 15.4.0-rc.4 → 15.4.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.
@@ -0,0 +1,20 @@
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
+
12
+ 'use strict';
13
+
14
+ var nextDebugID = 1;
15
+
16
+ function getNextDebugID() {
17
+ return nextDebugID++;
18
+ }
19
+
20
+ module.exports = getNextDebugID;
@@ -17,6 +17,7 @@ var ReactCompositeComponent = require('./ReactCompositeComponent');
17
17
  var ReactEmptyComponent = require('./ReactEmptyComponent');
18
18
  var ReactHostComponent = require('./ReactHostComponent');
19
19
 
20
+ var getNextDebugID = require('./getNextDebugID');
20
21
  var invariant = require('fbjs/lib/invariant');
21
22
  var warning = require('fbjs/lib/warning');
22
23
 
@@ -49,8 +50,6 @@ function isInternalComponentType(type) {
49
50
  return typeof type === 'function' && typeof type.prototype !== 'undefined' && typeof type.prototype.mountComponent === 'function' && typeof type.prototype.receiveComponent === 'function';
50
51
  }
51
52
 
52
- var nextDebugID = 1;
53
-
54
53
  /**
55
54
  * Given a ReactNode, create an instance that will actually be mounted.
56
55
  *
@@ -101,7 +100,7 @@ function instantiateReactComponent(node, shouldHaveDebugID) {
101
100
  instance._mountImage = null;
102
101
 
103
102
  if (process.env.NODE_ENV !== 'production') {
104
- instance._debugID = shouldHaveDebugID ? nextDebugID++ : 0;
103
+ instance._debugID = shouldHaveDebugID ? getNextDebugID() : 0;
105
104
  }
106
105
 
107
106
  // Internal instances should fully constructed at this point, so they should
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-dom",
3
- "version": "15.4.0-rc.4",
3
+ "version": "15.4.0",
4
4
  "description": "React package for working with the DOM.",
5
5
  "main": "index.js",
6
6
  "repository": "facebook/react",
@@ -18,7 +18,7 @@
18
18
  "object-assign": "^4.1.0"
19
19
  },
20
20
  "peerDependencies": {
21
- "react": "^15.4.0-rc.4"
21
+ "react": "^15.4.0"
22
22
  },
23
23
  "files": [
24
24
  "LICENSE",