Skip to content

Commit ae889fd

Browse files
committed
fix(general) Get rid of cannot read property of undefined
1 parent a661563 commit ae889fd

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "fng-jq-upload",
3-
"version": "0.11.1",
3+
"version": "0.11.3",
44
"author": "Mark Chapman <support@forms-angular.org>",
55
"description": [
66
"jQuery file upload plugin for forms-angular, storing data in Mongo",

lib/fng-jq-upload.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ exports.FileSchema = {
99
size: Number
1010
};
1111
function Controller(fng, processArgs, options) {
12-
this.options = options;
12+
this.options = options || {};
1313
var modifiedOptions = Object.assign({}, fng.options);
1414
if (this.options.inhibitAuthentication) {
1515
delete modifiedOptions.authentication;

lib/fng-jq-upload.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export let FileSchema = {
1717

1818
export function Controller(fng: any, processArgs: (options: any, array: Array<any>) => Array<any>, options: JqUploadOptions) {
1919

20-
this.options = options;
20+
this.options = options || {};
2121
let modifiedOptions = Object.assign({}, fng.options);
2222
if (this.options.inhibitAuthentication) {
2323
delete modifiedOptions.authentication;

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "fng-jq-upload",
3-
"version": "0.11.2",
3+
"version": "0.11.3",
44
"author": "Mark Chapman <support@forms-angular.org>",
55
"description": "jQuery file upload plugin for forms-angular, storing data in Mongo. Pretty much a wrapper for BlueImp jquery-file-upload",
66
"scripts": {

0 commit comments

Comments
 (0)