aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2011-12-09 11:57:14 +0500
committerWaqas Hussain <waqas20@gmail.com>2011-12-09 11:57:14 +0500
commit5cc76d979406b69055da5967865a7c35fe99bb8a (patch)
tree8e88785c404fd6e6ef1ec2ece17a1e56e396093f
parent9e2f76f84b533944602edd03768dba0e0c7fc59b (diff)
downloadprosody-5cc76d979406b69055da5967865a7c35fe99bb8a.tar.gz
prosody-5cc76d979406b69055da5967865a7c35fe99bb8a.zip
util.array: Make array:push() chainable.
-rw-r--r--util/array.lua1
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)