diff options
author | Waqas Hussain <waqas20@gmail.com> | 2011-12-09 11:57:14 +0500 |
---|---|---|
committer | Waqas Hussain <waqas20@gmail.com> | 2011-12-09 11:57:14 +0500 |
commit | 5cc76d979406b69055da5967865a7c35fe99bb8a (patch) | |
tree | 8e88785c404fd6e6ef1ec2ece17a1e56e396093f | |
parent | 9e2f76f84b533944602edd03768dba0e0c7fc59b (diff) | |
download | prosody-5cc76d979406b69055da5967865a7c35fe99bb8a.tar.gz prosody-5cc76d979406b69055da5967865a7c35fe99bb8a.zip |
util.array: Make array:push() chainable.
-rw-r--r-- | util/array.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/util/array.lua b/util/array.lua index cbb051d3..fdf3c9a3 100644 --- a/util/array.lua +++ b/util/array.lua @@ -105,6 +105,7 @@ end function array_methods:push(x) table.insert(self, x); + return self; end function array_methods:pop(x) |