only send init if iframe has src

This commit is contained in:
j 2014-09-23 23:58:53 +02:00
parent 728d6b1b7e
commit 4a2751839f

View file

@ -130,9 +130,11 @@
self.messageCallbacks = self.messageCallbacks || {};
that.on({
load: function init() {
// send oxid to iframe
that.postMessage({init: {oxid: that.oxid}});
self.initTimeout = setTimeout(init, 25);
if (that.attr('src')) {
// send oxid to iframe
that.postMessage({init: {oxid: that.oxid}});
self.initTimeout = setTimeout(init, 250);
}
}
}).bindEvent({
init: function() {