Merge pull request #1391 from casperlamboo/feature/script-src-property

Make the location of the system.js script accessible
This commit is contained in:
Guy Bedford 2016-08-02 17:16:51 +02:00 committed by GitHub
commit 29f93d2c70

View File

@ -53,6 +53,9 @@ hookConstructor(function(constructor) {
// support map and paths
this.map = {};
// make the location of the system.js script accessible
if ($__curScript !== undefined) this.scriptSrc = $__curScript.src;
// global behaviour flags
this.warnings = false;
this.defaultJSExtensions = false;