From fb8ab582000e9cb2f216ca5b702fbf3fb10b0add Mon Sep 17 00:00:00 2001 From: evilaliv3 Date: Thu, 26 Nov 2015 22:15:25 +0100 Subject: [PATCH] Fix issue https://github.com/flowjs/fusty-flow.js/issues/9 --- src/fusty-flow.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/fusty-flow.js b/src/fusty-flow.js index 22b34c7..0f9a3d4 100644 --- a/src/fusty-flow.js +++ b/src/fusty-flow.js @@ -382,6 +382,10 @@ }, createForm: function() { var target = this.flowObj.opts.target; + if (typeof target === "function") { + target = target.apply(null); + } + var form = document.createElement('form'); form.encoding = "multipart/form-data"; form.method = "POST";