From c417226e18265ef98f379e4d9e65250f648daf68 Mon Sep 17 00:00:00 2001 From: rolux Date: Mon, 25 Feb 2013 10:24:40 +0530 Subject: [PATCH] fix message controller --- source/Ox.UI/js/Core/Message.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/Ox.UI/js/Core/Message.js b/source/Ox.UI/js/Core/Message.js index 5849cd83..24178e99 100644 --- a/source/Ox.UI/js/Core/Message.js +++ b/source/Ox.UI/js/Core/Message.js @@ -43,8 +43,8 @@ Ox.Message = (function() { @*/ that.post = function(target, event, data) { target = target == Ox.$parent ? window.parent - : Ox.isElement(target[0]) ? target[0] - : $('#' + target)[0]; + : Ox.isElement(target[0]) ? target[0].contentWindow + : $('#' + target)[0].contentWindow; target.postMessage(JSON.stringify({ event: event, data: data,