Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
brainfood
/
frontend-uploads
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
105c8f2a
authored
2016-07-06 17:44:26 -0500
by
Adam Heath
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Flow doesn't handle accept=undefined on the incoming options correctly.
1 parent
a90ccb0c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
src/scripts/Upload.js
src/scripts/Upload.js
View file @
105c8f2
...
...
@@ -186,9 +186,11 @@ define(function(require) {
var
eventHandler
=
Upload
.
flowEventHandlers
[
eventName
]
||
makeFallbackFlowEventHandler
(
eventName
);
flow
.
on
(
eventName
,
_
.
bind
(
eventHandler
,
instance
));
});
flow
.
assignBrowse
(
el
,
true
,
false
,
{
accept
:
model
.
get
(
'accept'
),
});
var
assignOptions
=
{};
if
(
locals
.
accept
)
{
assignOptions
.
accept
=
locals
.
accept
;
}
flow
.
assignBrowse
(
el
,
true
,
false
,
assignOptions
);
flow
.
assignDrop
(
el
);
instance
.
view
=
rivets
.
bind
(
$
(
el
).
contents
(),
this
.
view
.
models
);
return
{};
...
...
Please
register
or
sign in
to post a comment