* luci/libs/cbi: implement commit hooks in cbi maps
[project/luci.git] / libs / cbi / luasrc / cbi.lua
index d2de868..97c453c 100644 (file)
@@ -288,6 +288,9 @@ function Map.parse(self)
                for i, config in ipairs(self.parsechain) do
                        self.uci:unload(config)
                end
+               if type(self.commit_handler) == "function" then
+                       self:commit_handler()
+               end
        end
 end