Skip to content

Commit

Permalink
refactor(Formsy): Use arrow functions instead of manual bind (#44)
Browse files Browse the repository at this point in the history
* Switch index.js to arrow function binding
* Upgrade all dependencies
* Update build files
* Fix eslint
  • Loading branch information
rkuykendall authored Dec 13, 2017
1 parent a1c0bbe commit b58cfd2
Show file tree
Hide file tree
Showing 8 changed files with 375 additions and 363 deletions.
2 changes: 2 additions & 0 deletions lib/Wrapper.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ function _possibleConstructorReturn(self, call) { if (!self) { throw new Referen

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; }

/* eslint-disable react/default-props-match-prop-types */

var convertValidationsToObject = function convertValidationsToObject(validations) {
if (typeof validations === 'string') {
return validations.split(/,(?![^{[]*[}\]])/g).reduce(function (validationsAccumulator, validation) {
Expand Down
Loading

0 comments on commit b58cfd2

Please sign in to comment.