Skip to content

Commit

Permalink
v1.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
cheton committed Jun 27, 2016
1 parent f12506f commit 6457f7a
Show file tree
Hide file tree
Showing 5 changed files with 1,750 additions and 1,480 deletions.
10 changes: 9 additions & 1 deletion dist/react-sortable.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! react-sortablejs v1.0.0 | (c) 2016 Cheton Wu <cheton@gmail.com> | MIT | https://github.com/cheton/react-sortable */
/*! react-sortablejs v1.0.1 | (c) 2016 Cheton Wu <cheton@gmail.com> | MIT | https://github.com/cheton/react-sortable */
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"), require("react-dom"), require("sortablejs"));
Expand Down Expand Up @@ -168,6 +168,14 @@ return /******/ (function(modules) { // webpackBootstrap

this.sortable = _sortablejs2.default.create(_reactDom2.default.findDOMNode(this), options);
}
}, {
key: 'componentWillUnmount',
value: function componentWillUnmount() {
if (this.sortable) {
this.sortable.destroy();
this.sortable = null;
}
}
}, {
key: 'render',
value: function render() {
Expand Down
4 changes: 2 additions & 2 deletions dist/react-sortable.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 6457f7a

Please sign in to comment.