Skip to content

Commit

Permalink
fix extra comma in conditionals.js causing minification error #2766
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh Pollock committed Nov 19, 2018
2 parents be6d6ea + 4d04990 commit a8fa334
Show file tree
Hide file tree
Showing 24 changed files with 6,666 additions and 4,743 deletions.
7 changes: 1 addition & 6 deletions assets/build/css/caldera-forms-front.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion assets/build/js/conditionals.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion assets/build/js/frontend-script-init.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion assets/css/caldera-forms-front.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion assets/js/caldera-forms-front.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! GENERATED SOURCE FILE caldera-forms - v1.7.4 - 2018-11-02 *//**
/*! GENERATED SOURCE FILE caldera-forms - v1.7.4 - 2018-11-19 *//**
* Simple event bindings for form state
*
* In general, access through CFState.events() not directly.
Expand Down
2 changes: 1 addition & 1 deletion assets/js/conditionals.js
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ var calders_forms_check_conditions, calders_forms_init_conditions;
return null;
}

function emitConditionalEvent(eventName,field,formId,){
function emitConditionalEvent(eventName,field,formId){
function createEventName(){
return 'cf.conditionals.' + eventName;
}
Expand Down
2 changes: 1 addition & 1 deletion assets/js/entry-viewer-2.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! GENERATED SOURCE FILE caldera-forms - v1.7.4 - 2018-11-02 *//**
/*! GENERATED SOURCE FILE caldera-forms - v1.7.4 - 2018-11-19 *//**
* API Client for Caldera Forms API for a single form
*
* @since 1.5.0
Expand Down
2 changes: 1 addition & 1 deletion assets/js/parsley.min.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! GENERATED SOURCE FILE caldera-forms - v1.7.4 - 2018-11-02 *//*!
/*! GENERATED SOURCE FILE caldera-forms - v1.7.4 - 2018-11-19 *//*!
* Parsley.js
* Version 2.8.1 - built Sat, Feb 3rd 2018, 2:27 pm
* http://parsleyjs.org
Expand Down
2 changes: 1 addition & 1 deletion assets/js/vue.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! GENERATED SOURCE FILE caldera-forms - v1.7.4 - 2018-11-02 *//*!
/*! GENERATED SOURCE FILE caldera-forms - v1.7.4 - 2018-11-19 *//*!
* Vue.js v2.1.6
* (c) 2014-2016 Evan You
* Released under the MIT License.
Expand Down
2 changes: 1 addition & 1 deletion cf2/Fields/RenderField.php
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ public function data()
'multiUploadText' => ! empty($this->field[ 'config' ]['multi_upload_text' ]) ? $this->field[ 'config' ]['multi_upload_text' ] : false,
'allowedTypes' => $this->getAllowedTypes(),
'control' => uniqid($this->getOuterIdAttr() ),
'usePreviews' => ! empty($this->field[ 'config']['use_image_previews']) ? $this->field[ 'config']['use_image_previews'] : false,
'usePreviews' => ! empty($this->field[ 'config']['use_image_previews']) ? true : false,
'previewWidth' => ! empty( $this->field[ 'config']['preview_width'] ) ? intval( $this->field[ 'config']['preview_width'] ) : 24,
'previewHeight' => ! empty( $this->field[ 'config']['preview_height'] ) ? intval( $this->field[ 'config']['preview_height'] ) : 24,
];
Expand Down
6 changes: 2 additions & 4 deletions classes/forms.php
Original file line number Diff line number Diff line change
Expand Up @@ -255,10 +255,8 @@ protected static function get_stored_forms() {

}
}
if( ! is_array( self::$stored_forms ) ){
self::$stored_forms = [];
}
return self::$stored_forms;

return is_array(self::$stored_forms ) ? self::$stored_forms : [];
}

/**
Expand Down
Loading

0 comments on commit a8fa334

Please sign in to comment.