comment the need of ownerDocument ajaxorg/ace#2003
This commit is contained in:
parent
b8c21d4c6f
commit
3ce44130d4
1 changed files with 2 additions and 1 deletions
|
|
@ -153,7 +153,8 @@ function init(packaged) {
|
|||
var scriptOptions = {};
|
||||
var scriptUrl = "";
|
||||
|
||||
var currentScript = (document.currentScript || document._currentScript );
|
||||
// Use currentScript.ownerDocument in case this file was loaded from imported document. (HTML Imports)
|
||||
var currentScript = (document.currentScript || document._currentScript ); // native or polyfill
|
||||
var currentDocument = currentScript && currentScript.ownerDocument || document;
|
||||
|
||||
var scripts = currentDocument.getElementsByTagName("script");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue