From 5a01923aff6dcb460b0b04d30be86eb25a7abc90 Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Fri, 3 Feb 2012 13:53:23 +0000 Subject: Allow viewtype override in clientdata in mvc --- lua/mvc.lua | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lua/mvc.lua') diff --git a/lua/mvc.lua b/lua/mvc.lua index 731f297..c53d576 100755 --- a/lua/mvc.lua +++ b/lua/mvc.lua @@ -177,6 +177,11 @@ dispatch = function (self, userprefix, userctlr, useraction, clientdata) controller.worker.mvc.post_exec ( controller ) end + -- Before we start checking for views, set the viewtype + if self.clientdata.viewtype then + self.conf.viewtype = self.clientdata.viewtype + end + if not self.conf.suppress_view then local viewfunc, p1, p2, p3 = controller:view_resolver() viewfunc (viewtable, p1, p2, p3) -- cgit v1.2.3