Skip to content
This repository was archived by the owner on Aug 13, 2018. It is now read-only.

Commit b3b8aab

Browse files
committed
Update to React 0.14.3
1 parent eec25f3 commit b3b8aab

File tree

5 files changed

+423
-342
lines changed

5 files changed

+423
-342
lines changed

data/components/main-toolbar.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ define(function(require, exports/*, module*/) {
66

77
// Dependencies
88
const React = require("react");
9+
const ReactDOM = require("react-dom");
910

1011
// Firebug.SDK
1112
const { createFactories } = require("reps/rep-utils");
@@ -31,12 +32,12 @@ var MainToolbar = React.createClass({
3132
},
3233

3334
componentDidMount: function() {
34-
var toolbar = this.refs.toolbar.getDOMNode();
35+
var toolbar = ReactDOM.findDOMNode(this.refs.toolbar);
3536
SearchBox.create(toolbar);
3637
},
3738

3839
componentWillUnmount: function() {
39-
var toolbar = this.refs.toolbar.getDOMNode();
40+
var toolbar = ReactDOM.findDOMNode(this.refs.toolbar);
4041
SearchBox.destroy(toolbar);
4142
},
4243

data/config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ require.config({
88
scriptType: "application/javascript;version=1.8",
99
paths: {
1010
"react": "./lib/react/react",
11+
"react-dom": "./lib/react/react-dom",
1112
"redux": "./lib/redux/redux",
1213
"react-redux": "./lib/redux/react-redux",
1314
"reps": "../node_modules/firebug.sdk/lib/reps",

data/lib/react/react-dom.js

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
/**
2+
* ReactDOM v0.14.3
3+
*
4+
* Copyright 2013-2015, Facebook, Inc.
5+
* All rights reserved.
6+
*
7+
* This source code is licensed under the BSD-style license found in the
8+
* LICENSE file in the root directory of this source tree. An additional grant
9+
* of patent rights can be found in the PATENTS file in the same directory.
10+
*
11+
*/
12+
// Based off https://github.com/ForbesLindesay/umd/blob/master/template.js
13+
;(function(f) {
14+
// CommonJS
15+
if (typeof exports === "object" && typeof module !== "undefined") {
16+
module.exports = f(require('react'));
17+
18+
// RequireJS
19+
} else if (typeof define === "function" && define.amd) {
20+
define(['react'], f);
21+
22+
// <script>
23+
} else {
24+
var g
25+
if (typeof window !== "undefined") {
26+
g = window;
27+
} else if (typeof global !== "undefined") {
28+
g = global;
29+
} else if (typeof self !== "undefined") {
30+
g = self;
31+
} else {
32+
// works providing we're not in "use strict";
33+
// needed for Java 8 Nashorn
34+
// see https://github.com/facebook/react/issues/3037
35+
g = this;
36+
}
37+
g.ReactDOM = f(g.React);
38+
}
39+
40+
})(function(React) {
41+
return React.__SECRET_DOM_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
42+
});

0 commit comments

Comments
 (0)