comment the need of ownerDocument ajaxorg/ace#2003

This commit is contained in:
Tomek Wytrebowicz 2014-06-16 13:48:18 +02:00
commit 3ce44130d4

View file

@ -153,7 +153,8 @@ function init(packaged) {
var scriptOptions = {}; var scriptOptions = {};
var scriptUrl = ""; 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 currentDocument = currentScript && currentScript.ownerDocument || document;
var scripts = currentDocument.getElementsByTagName("script"); var scripts = currentDocument.getElementsByTagName("script");