Skip to content

Commit

Permalink
Fixed unpack -> table.unpack
Browse files Browse the repository at this point in the history
  • Loading branch information
PenguinToast committed Oct 1, 2015
1 parent 33efc86 commit 45e6937
Show file tree
Hide file tree
Showing 7 changed files with 4 additions and 4 deletions.
Empty file modified .gitignore
100644 → 100755
Empty file.
Empty file modified LICENSE.md
100644 → 100755
Empty file.
2 changes: 1 addition & 1 deletion PenguinGUI.modinfo
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"dependencies": [],
"metadata": {
"author": "PenguinToast",
"version": "0.4",
"version": "0.4.1",
"description": "Extensible object-oriented GUI library in LUA for canvases",
"support_url": "http://penguintoast.github.io/PenguinGUI"
}
Expand Down
Empty file modified README.md
100644 → 100755
Empty file.
Empty file modified Test.lua
100644 → 100755
Empty file.
4 changes: 2 additions & 2 deletions penguingui.lua
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
-- "version": "Beta v. Upbeat Giraffe",
-- "author": "PenguinToast",
-- "version": "0.4",
-- "version": "0.4.1",
-- "support_url": "http://penguintoast.github.io/PenguinGUI"
-- This script contains all the scripts in this library, so you only need to
-- include this script for production purposes.
Expand Down Expand Up @@ -604,7 +604,7 @@ local createFunction = function(f)
getters[i] = getter
end
out.valueChanged = function(binding, old, new)
out.value = f(unpack(getters))
out.value = f(table.unpack(getters))
end
for i = 1, numArgs, 1 do
local value = args[i]
Expand Down
2 changes: 1 addition & 1 deletion penguingui/BindingFunctions.lua
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ local createFunction = function(f)
getters[i] = getter
end
out.valueChanged = function(binding, old, new)
out.value = f(unpack(getters))
out.value = f(table.unpack(getters))
end
for i = 1, numArgs, 1 do
local value = args[i]
Expand Down

0 comments on commit 45e6937

Please sign in to comment.