Skip to content

Commit 6457f7a

Browse files
committed
v1.0.1
1 parent f12506f commit 6457f7a

File tree

5 files changed

+1750
-1480
lines changed

5 files changed

+1750
-1480
lines changed

dist/react-sortable.js

+9-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! react-sortablejs v1.0.0 | (c) 2016 Cheton Wu <[email protected]> | MIT | https://github.com/cheton/react-sortable */
1+
/*! react-sortablejs v1.0.1 | (c) 2016 Cheton Wu <[email protected]> | MIT | https://github.com/cheton/react-sortable */
22
(function webpackUniversalModuleDefinition(root, factory) {
33
if(typeof exports === 'object' && typeof module === 'object')
44
module.exports = factory(require("react"), require("react-dom"), require("sortablejs"));
@@ -168,6 +168,14 @@ return /******/ (function(modules) { // webpackBootstrap
168168

169169
this.sortable = _sortablejs2.default.create(_reactDom2.default.findDOMNode(this), options);
170170
}
171+
}, {
172+
key: 'componentWillUnmount',
173+
value: function componentWillUnmount() {
174+
if (this.sortable) {
175+
this.sortable.destroy();
176+
this.sortable = null;
177+
}
178+
}
171179
}, {
172180
key: 'render',
173181
value: function render() {

dist/react-sortable.min.js

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

0 commit comments

Comments
 (0)