Commits

Anthony Catel committed 824aa17

Remove IFRAME injection in case of long polling (transport 0) and thus avoid document.domain.

Comments (0)

Files changed (1)

 		}.bind(this);
 
 		//set document.domain
-		if (config.transport != 6 && config.transport != 2) {
+		if (config.transport != 6 && config.transport != 2 && config.transport != 0) {
 			if (config.domain != 'auto') document.domain = config.domain;
 			if (config.domain == 'auto') document.domain = document.domain;
 		}
 			else iframe.contentWindow.APE.init(config);
 		});
 
-		if (config.transport == 2 || config.transport == 6) {//Special case for JSONP
+		if (config.transport == 2 || config.transport == 6 || config.transport == 0) {
 			var doc = iframe.contentDocument;
 			if (!doc) doc = iframe.contentWindow.document;