From 4d1fbb8533a3a7c0aba4a70d3172cf18127c44ba Mon Sep 17 00:00:00 2001 From: rolux Date: Tue, 3 Dec 2013 18:14:36 +0100 Subject: [PATCH] cosmetic changes --- source/Ox.UI/js/Core/Message.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/source/Ox.UI/js/Core/Message.js b/source/Ox.UI/js/Core/Message.js index 16e4dcff..3e8cad2f 100644 --- a/source/Ox.UI/js/Core/Message.js +++ b/source/Ox.UI/js/Core/Message.js @@ -26,10 +26,6 @@ Ox.Message = (function() { // Defined here so one can just load Message.js in addtion to Ox.js Ox.$parent = { - postMessage: function(event, message) { - Ox.Message.post(Ox.$parent, event, message); - return this; - }, onMessage: function() { var callback; if (Ox.isObject(arguments[0])) { @@ -49,6 +45,10 @@ Ox.Message = (function() { }); } return this; + }, + postMessage: function(event, message) { + Ox.Message.post(Ox.$parent, event, message); + return this; } }; @@ -75,8 +75,8 @@ Ox.Message = (function() { : Ox.isElement(target[0]) ? target[0].contentWindow : Ox.$('#' + target)[0].contentWindow; target.postMessage(JSON.stringify({ - event: event, data: data, + event: event, oxid: window.oxid }), '*'); return that;