Skip to content

Commit

Permalink
v1.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
insin committed Jan 19, 2015
1 parent b428ef6 commit c9ee597
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 7 deletions.
1 change: 1 addition & 0 deletions .npmignore
Expand Up @@ -3,4 +3,5 @@ test
.gitignore
.jshintrc
.npmignore
CHANGES.md
gulpfile.js
7 changes: 7 additions & 0 deletions CHANGES.md
@@ -0,0 +1,7 @@
# 1.0.1 / 2015-01-19

Fixed: incorrect function names in error messages.

# 1.0.0 / 2015-01-19

First release.
8 changes: 4 additions & 4 deletions dist/get-form-data.js
@@ -1,5 +1,5 @@
/*!
* get-form-data 1.0.0 - https://github.com/insin/get-form-data
* get-form-data 1.0.1 - https://github.com/insin/get-form-data
* 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 f;"undefined"!=typeof window?f=window:"undefined"!=typeof global?f=global:"undefined"!=typeof self&&(f=self),f.getFormData=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){
Expand Down Expand Up @@ -32,7 +32,7 @@ var toString = Object.prototype.toString
*/
function getFormData(form) {
if (!form) {
throw new Error('A form is required by formElementData, was given form=' + form)
throw new Error('A form is required by getFormData, was given form=' + form)
}

var data = {}
Expand Down Expand Up @@ -75,10 +75,10 @@ function getFormData(form) {
*/
function getNamedFormElementData(form, elementName) {
if (!form) {
throw new Error('A form is required by getFieldData, but was given form=' + form)
throw new Error('A form is required by getNamedFormElementData, was given form=' + form)
}
if (!elementName) {
throw new Error('A form element name is required by getNamedFormElementData, but was given elementName=' + elementName)
throw new Error('A form element name is required by getNamedFormElementData, was given elementName=' + elementName)
}

var element = form.elements[elementName]
Expand Down
4 changes: 2 additions & 2 deletions dist/get-form-data.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
@@ -1,6 +1,6 @@
{
"name": "get-form-data",
"version": "1.0.0",
"version": "1.0.1",
"description": " Gets form data via form.elements",
"main": "./lib/index.js",
"standalone": "getFormData",
Expand Down

0 comments on commit c9ee597

Please sign in to comment.