Skip to content

Commit

Permalink
Fixes small bug in lua declaration
Browse files Browse the repository at this point in the history
Summary:
Ended up pushing an old version of the lua code that didn't properly test, this one passes.
Closes #231

Differential Revision: D6592106

Pulled By: JackUrb

fbshipit-source-id: 02806b9124b5b8f5f061bfb1f61a8e42df7c0fff
  • Loading branch information
JackUrb authored and facebook-github-bot committed Dec 18, 2017
1 parent f33ce29 commit 41bb0f6
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions th/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -268,9 +268,10 @@ M.update_window_opts = argcheck{
{name = 'opts', type = 'table'},
{name = 'env', type = 'string', opt = true},
call = function(self, win, opts, env)
local args = {win, opts}
local kwargs = {env = env}
return self:py_func{func = 'update_window_opts', args = args, kwargs = kwargs}
local args = {win, opts}
local kwargs = {env = env}
return self:py_func{func = 'update_window_opts', args = args, kwargs = kwargs}
end
}

M.updateTrace = argcheck{
Expand Down

0 comments on commit 41bb0f6

Please sign in to comment.