diff --git a/src/net/net.js b/src/net/net.js index 9810097..6d50db9 100644 --- a/src/net/net.js +++ b/src/net/net.js @@ -905,12 +905,12 @@ _XDomainRequest.prototype = { /** - @name _XDomainRequest#send + @name _XDomainRequest#_send @private @function @description Send the request */ - send: function () { + _send: function () { this._addIframe(); this._addForm(); this._addTimeout(); @@ -928,8 +928,6 @@ this.iframe = glow.dom.create( '' ); - $('body').append(this.iframe); - var iframe = this.iframe[0], request = this, callback = function () { @@ -941,6 +939,7 @@ } else { iframe.onload = callback; } + $('body').append(this.iframe); }, /** diff --git a/test/testdata/xdomain/blank.html b/test/testdata/xdomain/blank.html new file mode 100644 index 0000000..e69de29 diff --git a/test/testdata/xdomain/windowdotname.html b/test/testdata/xdomain/windowdotname.html new file mode 100644 index 0000000..6b5e4d0 --- /dev/null +++ b/test/testdata/xdomain/windowdotname.html @@ -0,0 +1,14 @@ + + + + + + + + + + + +