fix message controller
This commit is contained in:
parent
c18220cb4f
commit
c417226e18
1 changed files with 2 additions and 2 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue