Skip to content

Commit

Permalink
ensure socket dropdown calls have socket as this - use result.apply
Browse files Browse the repository at this point in the history
  • Loading branch information
cpirich committed Jun 22, 2017
1 parent e3b275b commit e388cd8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/controller.coffee
Expand Up @@ -2486,7 +2486,7 @@ Editor::getDropdownList = (socket) ->
if result.generate
result = result.generate
if 'function' is typeof result
result = result()
result = result.apply socket
else
result = socket.dropdown
if result.options
Expand Down

0 comments on commit e388cd8

Please sign in to comment.