Skip to content

Commit

Permalink
v1.2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
insin committed May 1, 2015
1 parent b6e4ff6 commit 2d94848
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 7 deletions.
2 changes: 2 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# 1.2.2 / 2015-05-01

Updated to get-form-data v1.2.2 - ignore inputs with no name or id.

# 1.2.1 / 2015-03-05
Expand Down
8 changes: 4 additions & 4 deletions dist/react-auto-form.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/*!
* react-auto-form 1.2.1 - https://github.com/insin/react-auto-form
* react-auto-form 1.2.2 - https://github.com/insin/react-auto-form
* MIT Licensed
*/
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var o;"undefined"!=typeof window?o=window:"undefined"!=typeof global?o=global:"undefined"!=typeof self&&(o=self),o.AutoForm=e()}}(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.AutoForm = f()}})(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
'use strict';

var getFormData = require('get-form-data')
Expand Down Expand Up @@ -103,7 +103,7 @@ function getFormData(form, options) {
continue
}
elementName = element.name || element.id
if (!elementNameLookup[elementName]) {
if (elementName && !elementNameLookup[elementName]) {
elementNames.push(elementName)
elementNameLookup[elementName] = true
}
Expand Down Expand Up @@ -133,7 +133,7 @@ function getNamedFormElementData(form, elementName, options) {
if (!form) {
throw new Error('A form is required by getNamedFormElementData, was given form=' + form)
}
if (!elementName) {
if (!elementName && toString.call(elementName) !== '[object String]') {
throw new Error('A form element name is required by getNamedFormElementData, was given elementName=' + elementName)
}

Expand Down
4 changes: 2 additions & 2 deletions dist/react-auto-form.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "react-auto-form",
"description": "A React component which simplifies getting user input from forms via nChange and onSubmit",
"version": "1.2.1",
"version": "1.2.2",
"main": "./lib/index.js",
"standalone": "AutoForm",
"homepage": "https://github.com/insin/react-auto-form",
Expand Down

0 comments on commit 2d94848

Please sign in to comment.