Skip to content
This repository has been archived by the owner on Jun 3, 2020. It is now read-only.

Commit

Permalink
Version bump to 2.1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
balloob committed May 15, 2016
1 parent 5bcdd24 commit 2cf92ff
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion dist-modules/sidebar.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ var Sidebar = (function (_React$Component) {
touchCurrentY: null,

// if touch is supported by the browser
dragSupported: (typeof window === 'undefined' ? 'undefined' : _typeof(window)) === 'object' && 'ontouchstart' in window
dragSupported: false
};

_this.overlayClicked = _this.overlayClicked.bind(_this);
Expand All @@ -110,6 +110,9 @@ var Sidebar = (function (_React$Component) {
_createClass(Sidebar, [{
key: 'componentDidMount',
value: function componentDidMount() {
this.setState({
dragSupported: (typeof window === 'undefined' ? 'undefined' : _typeof(window)) === 'object' && 'ontouchstart' in window
});
this.saveSidebarWidth();
}
}, {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-sidebar",
"version": "2.1.1",
"version": "2.1.2",
"author": "Paulus Schoutsen <[email protected]>",
"description": "A sidebar component for React.",
"main": "dist-modules/index.js",
Expand Down

0 comments on commit 2cf92ff

Please sign in to comment.