Skip to content

Commit 8cf571c

Browse files
committed
Merge branch 'release/0.2.0'
2 parents 4352762 + 7308b25 commit 8cf571c

File tree

7 files changed

+22
-13
lines changed

7 files changed

+22
-13
lines changed

CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Change Log
22

3+
## 0.2.0 - Oct 9, 2015
4+
5+
**Implemented enhancements:**
6+
7+
* Now supports React 0.14!
8+
39
## 0.1.17 - Oct 9, 2015
410

511
**Implemented enhancements, merged pull requrests:**

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ The notification object has the following properties:
9191

9292
### Dismissible
9393

94-
If set to false, the notification will not display the dismiss ('x') button and will only be dismissible programmatically. [See more](#removenotificationnotification)
94+
If set to false, the notification will not display the dismiss ('x') button and will only be dismissible programmatically or after autoDismiss timeout. [See more](#removenotificationnotification)
9595

9696
### Action
9797

example/build/app.js

+7-7
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

example/package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
"description": "",
55
"main": "src/app.js",
66
"dependencies": {
7-
"react": "^0.13.0"
7+
"react": "^0.14.0",
8+
"react-dom": "^0.14.0"
89
},
910
"devDependencies": {
1011
"browserify": "^10.1.0",

example/src/app.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
var React = require('react');
2+
var ReactDOM = require('react-dom');
23
var merge = require('object-assign');
34

45
var NotificationSystem = require('react-notification-system');
@@ -254,7 +255,7 @@ var NotificationSystemExample = React.createClass({
254255
<div className="col-xs-12 col-sm-7">
255256
{action}
256257
</div>
257-
<small className={error.dismissible}>This notification will be only dismissible programmatically.</small>
258+
<small className={error.dismissible}>This notification will be only dismissible programmatically or after 'autoDismiss' timeout.</small>
258259
</div>
259260

260261

@@ -274,7 +275,7 @@ var NotificationSystemExample = React.createClass({
274275
}
275276
});
276277

277-
React.render(
278+
ReactDOM.render(
278279
React.createElement(NotificationSystemExample),
279280
document.getElementById('app')
280281
);

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-notification-system",
3-
"version": "0.1.17",
3+
"version": "0.2.0",
44
"description": "A React Notification System fully customized",
55
"main": "dist/notification-system.js",
66
"scripts": {

src/notification-item.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
var React = require('react');
2+
var ReactDOM = require('react-dom');
23
var Constants = require('./constants');
34
var Styles = require('./styles');
45
var Helpers = require('./helpers');
@@ -149,7 +150,7 @@ var NotificationItem = React.createClass({
149150
var transitionEvent = whichTransitionEvent();
150151
var notification = this.props.notification;
151152

152-
var element = React.findDOMNode(this);
153+
var element = ReactDOM.findDOMNode(this);
153154

154155
this._height = element.offsetHeight;
155156

0 commit comments

Comments
 (0)