Skip to content

Commit 45e6937

Browse files
committed
Fixed unpack -> table.unpack
1 parent 33efc86 commit 45e6937

7 files changed

Lines changed: 4 additions & 4 deletions

File tree

.gitignore

100644100755
File mode changed.

LICENSE.md

100644100755
File mode changed.

PenguinGUI.modinfo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"dependencies": [],
66
"metadata": {
77
"author": "PenguinToast",
8-
"version": "0.4",
8+
"version": "0.4.1",
99
"description": "Extensible object-oriented GUI library in LUA for canvases",
1010
"support_url": "http://penguintoast.github.io/PenguinGUI"
1111
}

README.md

100644100755
File mode changed.

Test.lua

100644100755
File mode changed.

penguingui.lua

100644100755
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
-- "version": "Beta v. Upbeat Giraffe",
22
-- "author": "PenguinToast",
3-
-- "version": "0.4",
3+
-- "version": "0.4.1",
44
-- "support_url": "http://penguintoast.github.io/PenguinGUI"
55
-- This script contains all the scripts in this library, so you only need to
66
-- include this script for production purposes.
@@ -604,7 +604,7 @@ local createFunction = function(f)
604604
getters[i] = getter
605605
end
606606
out.valueChanged = function(binding, old, new)
607-
out.value = f(unpack(getters))
607+
out.value = f(table.unpack(getters))
608608
end
609609
for i = 1, numArgs, 1 do
610610
local value = args[i]

penguingui/BindingFunctions.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ local createFunction = function(f)
2727
getters[i] = getter
2828
end
2929
out.valueChanged = function(binding, old, new)
30-
out.value = f(unpack(getters))
30+
out.value = f(table.unpack(getters))
3131
end
3232
for i = 1, numArgs, 1 do
3333
local value = args[i]

0 commit comments

Comments
 (0)