-
Notifications
You must be signed in to change notification settings - Fork 210
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
4,625 additions
and
3,303 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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")); | ||
|
@@ -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 = { | ||
|
@@ -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; | ||
} | ||
|
@@ -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() { | ||
|
@@ -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)(); | ||
|
@@ -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) { | ||
|
@@ -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; | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.