Skip to content
This repository has been archived by the owner on May 27, 2024. It is now read-only.

Commit

Permalink
Merge pull request #58 from chrishumboldt/dev-rocket
Browse files Browse the repository at this point in the history
Fixed no object check.
  • Loading branch information
chrishumboldt authored Jan 12, 2017
2 parents 07d39ba + d31b552 commit 099e540
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion build/js/form.js
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ var RockMod_Form;
}
function init(uOptions) {
if (!Rocket.is.object(uOptions)) {
return false;
uOptions = {};
}
var options = {
targets: Rocket.helper.setDefault(uOptions.targets, Rocket.defaults.form.targets),
Expand Down
4 changes: 1 addition & 3 deletions build/ts/form.ts
Original file line number Diff line number Diff line change
Expand Up @@ -187,11 +187,9 @@ module RockMod_Form {

// Initialiser
export function init (uOptions: any) {
// Catch
if (!Rocket.is.object(uOptions)) {
return false;
uOptions = {};
}
// Continue
const options = {
targets: Rocket.helper.setDefault(uOptions.targets, Rocket.defaults.form.targets),
colour: Rocket.helper.setDefault(uOptions.colour, Rocket.defaults.form.colour),
Expand Down
2 changes: 1 addition & 1 deletion js/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,6 +1,6 @@
{
"name": "rocket-form",
"version": "3.1.0",
"version": "3.1.1",
"description": "A universal form module.",
"main": "js/form.min.js",
"repository": {
Expand Down

0 comments on commit 099e540

Please sign in to comment.