Bugfix for misplaced hook call
This commit is contained in:
parent
37c0d279c1
commit
7304a9ef3f
|
@ -233,13 +233,14 @@ require.setGlobalKeyPath("require");\n\
|
||||||
iframeHTML.push(doctype);
|
iframeHTML.push(doctype);
|
||||||
iframeHTML.push("<html><head>");
|
iframeHTML.push("<html><head>");
|
||||||
|
|
||||||
|
hooks.callAll("aceInitInnerdocbodyHead", {
|
||||||
|
iframeHTML: iframeHTML
|
||||||
|
});
|
||||||
|
|
||||||
// For compatability's sake transform in and out.
|
// For compatability's sake transform in and out.
|
||||||
for (var i = 0, ii = iframeHTML.length; i < ii; i++) {
|
for (var i = 0, ii = iframeHTML.length; i < ii; i++) {
|
||||||
iframeHTML[i] = JSON.stringify(iframeHTML[i]);
|
iframeHTML[i] = JSON.stringify(iframeHTML[i]);
|
||||||
}
|
}
|
||||||
hooks.callAll("aceInitInnerdocbodyHead", {
|
|
||||||
iframeHTML: iframeHTML
|
|
||||||
});
|
|
||||||
for (var i = 0, ii = iframeHTML.length; i < ii; i++) {
|
for (var i = 0, ii = iframeHTML.length; i < ii; i++) {
|
||||||
iframeHTML[i] = JSON.parse(iframeHTML[i]);
|
iframeHTML[i] = JSON.parse(iframeHTML[i]);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue