# HG changeset patch # User jbe # Date 1498577780 -7200 # Node ID 9f9a67c8f6f5522485c6ad926cf7ede60e29901b # Parent 93ebbc1e5dbc116652ae308a04192e8b861abe63 Simplified implementation of slot.set_layout(...) when using request.is_in_progress() diff -r 93ebbc1e5dbc -r 9f9a67c8f6f5 framework/env/slot/set_layout.lua --- a/framework/env/slot/set_layout.lua Tue Jun 27 17:34:02 2017 +0200 +++ b/framework/env/slot/set_layout.lua Tue Jun 27 17:36:20 2017 +0200 @@ -9,12 +9,11 @@ --]]-- function slot.set_layout(layout_ident, content_type) - local in_progress = request.is_in_progress() request.configure(function() slot._current_layout = layout_ident slot._content_type = content_type - if in_progress then - slot._layout_set = true - end end) + if request.is_in_progress() then + slot._layout_set = true + end end