From 87dddd80ae9bd5efab8f16b3986fb2f83dafc695 Mon Sep 17 00:00:00 2001 From: Ahmed Hassan Date: Mon, 21 Apr 2014 15:00:56 +0200 Subject: [PATCH] fixed EventedMind/iron-router#606 , UI.body.events --- layout.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/layout.js b/layout.js index 24a8249..f0f546f 100644 --- a/layout.js +++ b/layout.js @@ -363,7 +363,9 @@ BlazeUIManager = function (router) { BlazeUIManager.prototype = { render: function (props, parentComponent) { - this._component = UI.render(Layout.extend(props || {}), parentComponent || UI.body); + // Layout extending UI.body to get into the lookup chain for events + var bodyLayout = UI.body.extend(Layout); + this._component = UI.render(bodyLayout.extend(props || {}), parentComponent || UI.body); return this._component; },