aboutsummaryrefslogtreecommitdiffstats
path: root/util/array.lua
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
commitc4e0cdb9f5320543e2decfab0241114d7987b984 (patch)
tree8e88785c404fd6e6ef1ec2ece17a1e56e396093f /util/array.lua
parent5ff78636e02bf0375c53b19c436f0a419d247c93 (diff)
downloadprosody-c4e0cdb9f5320543e2decfab0241114d7987b984.tar.gz
prosody-c4e0cdb9f5320543e2decfab0241114d7987b984.zip
util.array: Make array:push() chainable.
Diffstat (limited to 'util/array.lua')
-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)