Skip to content

Commit b58cfd2

Browse files
authored
refactor(Formsy): Use arrow functions instead of manual bind (#44)
* Switch index.js to arrow function binding * Upgrade all dependencies * Update build files * Fix eslint
1 parent a1c0bbe commit b58cfd2

File tree

8 files changed

+375
-363
lines changed

8 files changed

+375
-363
lines changed

lib/Wrapper.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ function _possibleConstructorReturn(self, call) { if (!self) { throw new Referen
2929

3030
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
3131

32+
/* eslint-disable react/default-props-match-prop-types */
33+
3234
var convertValidationsToObject = function convertValidationsToObject(validations) {
3335
if (typeof validations === 'string') {
3436
return validations.split(/,(?![^{[]*[}\]])/g).reduce(function (validationsAccumulator, validation) {

0 commit comments

Comments
 (0)