Skip to content

Commit

Permalink
Bump to 1.5.1
Browse files Browse the repository at this point in the history
  • Loading branch information
cheton committed Feb 18, 2019
1 parent f21ed7f commit ae5308b
Show file tree
Hide file tree
Showing 6 changed files with 4,625 additions and 3,303 deletions.
30 changes: 23 additions & 7 deletions dist/react-sortable.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! react-sortablejs v1.5.0 | (c) 2019 Cheton Wu <[email protected]> | MIT | https://github.com/SortableJS/react-sortablejs */
/*! react-sortablejs v1.5.1 | (c) 2019 Cheton Wu <[email protected]> | MIT | https://github.com/SortableJS/react-sortablejs */
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"), require("sortablejs"));
Expand Down Expand Up @@ -148,12 +148,12 @@ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) ===

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }

function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }

function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }

var store = {
Expand All @@ -179,7 +179,7 @@ function (_Component) {

_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Sortable)).call.apply(_getPrototypeOf2, [this].concat(args)));

_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "sortable", null);
_defineProperty(_assertThisInitialized(_this), "sortable", null);

return _this;
}
Expand Down Expand Up @@ -240,6 +240,17 @@ function (_Component) {
});
this.sortable = _sortablejs.default.create(this.node, options);
}
}, {
key: "shouldComponentUpdate",
value: function shouldComponentUpdate(nextProps) {
// If onChange is null, it is an UnControlled component
// Don't let React re-render it by setting return to false
if (!nextProps.onChange) {
return false;
}

return true;
}
}, {
key: "componentWillUnmount",
value: function componentWillUnmount() {
Expand Down Expand Up @@ -297,7 +308,7 @@ exports.default = _default;
* LICENSE file in the root directory of this source tree.
*/

if (false) { var throwOnDirectAccess, isValidElement, REACT_ELEMENT_TYPE; } else {
if (false) { var throwOnDirectAccess, ReactIs; } else {
// By explicitly using `prop-types` you are opting into new production behavior.
// http://fb.me/prop-types-in-prod
module.exports = __webpack_require__(3)();
Expand All @@ -321,6 +332,8 @@ if (false) { var throwOnDirectAccess, isValidElement, REACT_ELEMENT_TYPE; } else
var ReactPropTypesSecret = __webpack_require__(4);

function emptyFunction() {}
function emptyFunctionWithReset() {}
emptyFunctionWithReset.resetWarningCache = emptyFunction;

module.exports = function() {
function shim(props, propName, componentName, location, propFullName, secret) {
Expand Down Expand Up @@ -354,16 +367,19 @@ module.exports = function() {
any: shim,
arrayOf: getShim,
element: shim,
elementType: shim,
instanceOf: getShim,
node: shim,
objectOf: getShim,
oneOf: getShim,
oneOfType: getShim,
shape: getShim,
exact: getShim
exact: getShim,

checkPropTypes: emptyFunctionWithReset,
resetWarningCache: emptyFunction
};

ReactPropTypes.checkPropTypes = emptyFunction;
ReactPropTypes.PropTypes = ReactPropTypes;

return ReactPropTypes;
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 ae5308b

Please sign in to comment.