Skip to content
This repository was archived by the owner on Jul 13, 2020. It is now read-only.

Make System global always. #170

Merged
merged 1 commit into from
Jun 27, 2014
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 4 additions & 6 deletions lib/system.js
Original file line number Diff line number Diff line change
Expand Up @@ -217,12 +217,6 @@
}
System.paths = { '*': '*.js' };

if (global.System && global.traceur)
global.traceurSystem = global.System;

if (isBrowser)
global.System = System;

// <script type="module"> support
// allow a data-init function callback once loaded
if (isBrowser) {
Expand Down Expand Up @@ -264,4 +258,8 @@
if (typeof exports === 'object')
module.exports = System;

if (global.System && global.traceur)
global.traceurSystem = global.System;
global.System = System;

})(typeof global !== 'undefined' ? global : this);