Don't set cursor inside added child when using add_child()
authorMatthew Wild <mwild1@gmail.com>
Sun, 26 Oct 2008 14:39:52 +0000 (14:39 +0000)
committerMatthew Wild <mwild1@gmail.com>
Sun, 26 Oct 2008 14:39:52 +0000 (14:39 +0000)
util/stanza.lua

index bbd4776d08b7892b6f9e3c0c91e265bfe18d0fc8..3fa8ba662173daafad2ce84f3d22c8a4f011e7bf 100644 (file)
@@ -53,7 +53,6 @@ end
 
 function stanza_mt:add_child(child)
        (self.last_add[#self.last_add] or self):add_direct_child(child);
-       t_insert(self.last_add, s);
        return self;
 end