Merge pull request #977 from cweider/loopback-avoidance

Loopback avoidance
This commit is contained in:
John McLear 2012-09-03 14:56:55 -07:00
commit c5be2eb418
3 changed files with 79 additions and 76 deletions

View file

@ -168,11 +168,9 @@ require.setGlobalKeyPath("require");\n\
buffer.push(KERNEL_BOOT);
buffer.push('<\/script>');
} else {
file = KERNEL_SOURCE;
buffer.push('<script type="application/javascript" src="' + KERNEL_SOURCE + '"><\/script>');
buffer.push('<script type="text/javascript">');
buffer.push(KERNEL_BOOT);
buffer.push('<\/script>');
// Remotely src'd script tag will not work in IE; it must be embedded, so
// throw an error if it is not.
throw new Error("Require script could not be embedded.");
}
}
function pushScriptsTo(buffer) {