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 | c4e0cdb9f5320543e2decfab0241114d7987b984 (patch) | |
tree | 8e88785c404fd6e6ef1ec2ece17a1e56e396093f /util/array.lua | |
parent | 5ff78636e02bf0375c53b19c436f0a419d247c93 (diff) | |
download | prosody-c4e0cdb9f5320543e2decfab0241114d7987b984.tar.gz prosody-c4e0cdb9f5320543e2decfab0241114d7987b984.zip |
util.array: Make array:push() chainable.
Diffstat (limited to 'util/array.lua')
-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) |