Skip to content

Commit

Permalink
Merge branch 'release/0.2.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
igorprado committed Oct 9, 2015
2 parents 4352762 + 7308b25 commit 8cf571c
Show file tree
Hide file tree
Showing 7 changed files with 22 additions and 13 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Change Log

## 0.2.0 - Oct 9, 2015

**Implemented enhancements:**

* Now supports React 0.14!

## 0.1.17 - Oct 9, 2015

**Implemented enhancements, merged pull requrests:**
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ The notification object has the following properties:

### Dismissible

If set to false, the notification will not display the dismiss ('x') button and will only be dismissible programmatically. [See more](#removenotificationnotification)
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)

### Action

Expand Down
14 changes: 7 additions & 7 deletions example/build/app.js

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
"description": "",
"main": "src/app.js",
"dependencies": {
"react": "^0.13.0"
"react": "^0.14.0",
"react-dom": "^0.14.0"
},
"devDependencies": {
"browserify": "^10.1.0",
Expand Down
5 changes: 3 additions & 2 deletions example/src/app.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
var React = require('react');
var ReactDOM = require('react-dom');
var merge = require('object-assign');

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


Expand All @@ -274,7 +275,7 @@ var NotificationSystemExample = React.createClass({
}
});

React.render(
ReactDOM.render(
React.createElement(NotificationSystemExample),
document.getElementById('app')
);
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-notification-system",
"version": "0.1.17",
"version": "0.2.0",
"description": "A React Notification System fully customized",
"main": "dist/notification-system.js",
"scripts": {
Expand Down
3 changes: 2 additions & 1 deletion src/notification-item.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
var React = require('react');
var ReactDOM = require('react-dom');
var Constants = require('./constants');
var Styles = require('./styles');
var Helpers = require('./helpers');
Expand Down Expand Up @@ -149,7 +150,7 @@ var NotificationItem = React.createClass({
var transitionEvent = whichTransitionEvent();
var notification = this.props.notification;

var element = React.findDOMNode(this);
var element = ReactDOM.findDOMNode(this);

this._height = element.offsetHeight;

Expand Down

0 comments on commit 8cf571c

Please sign in to comment.